dream3R
|
|
« Reply #347 on: February 06, 2016, 04:07:08 PM »
|
|
|
ROM:47E6 ROM:47E6 ; =============== S U B R O U T I N E ======================================= ROM:47E6 ROM:47E6 ROM:47E6 sub_47E6: ; CODE XREF: ROM:42FAp ROM:47E6 mov [-r0], r13 ROM:47E8 mov [-r0], r12 ROM:47EA mov [-r0], r9 ROM:47EC mov [-r0], r8 ROM:47EE mov [-r0], r7 ROM:47F0 mov [-r0], r6 ROM:47F2 mov r6, r14 ROM:47F4 mov r7, r15 ROM:47F6 mov r9, #0 ROM:47F8 ROM:47F8 loc_47F8: ; CODE XREF: sub_47E6+B2j ROM:47F8 mov r4, r9 ROM:47FA shl r4, #2 ROM:47FC sub r4, r9 ROM:47FE shl r4, #2 ROM:4800 mov r10, [r4+418Ch] ROM:4804 mov r11, [r4+418Eh] ROM:4808 mov r4, [r0+8] ROM:480C mov r5, [r0+0Ah] ROM:4810 sub r4, r10 ROM:4812 subc r5, r11 ROM:4814 jmpr cc_C, loc_4894 ROM:4816 mov r4, #4190h ROM:481A mov r5, r9 ROM:481C shl r5, #2 ROM:481E sub r5, r9 ROM:4820 shl r5, #2 ROM:4822 add r4, r5 ROM:4824 mov r10, [r4+] ROM:4826 mov r11, [r4] ROM:4828 mov r4, [r0+8] ROM:482C mov r5, [r0+0Ah] ROM:4830 sub r4, r10 ROM:4832 subc r5, r11 ROM:4834 jmpr cc_NC, loc_4894 ROM:4836 mov r12, r9 ROM:4838 callr sub_478C ROM:483A mov r8, r4 ROM:483C cmp r4, #0 ROM:483E jmpr cc_Z, loc_4844 ROM:4840 mov r4, r8 ROM:4842 jmpr cc_UC, loc_489E ROM:4844 ; --------------------------------------------------------------------------- ROM:4844 ROM:4844 loc_4844: ; CODE XREF: sub_47E6+58j ROM:4844 mov r4, r9 ROM:4846 shl r4, #2 ROM:4848 sub r4, r9 ROM:484A shl r4, #2 ROM:484C mov r10, [r4+4190h] ROM:4850 mov r11, [r4+4192h] ROM:4854 sub r10, r6 ROM:4856 subc r11, r7 ROM:4858 jmpr cc_ULE, loc_485E ROM:485A mov r4, #0 ROM:485C jmpr cc_UC, loc_489E ROM:485E ; --------------------------------------------------------------------------- ROM:485E ROM:485E loc_485E: ; CODE XREF: sub_47E6+72j ROM:485E add r9, #1 ROM:4860 jmpr cc_UC, loc_4890 ROM:4862 ; --------------------------------------------------------------------------- ROM:4862 ROM:4862 loc_4862: ; CODE XREF: sub_47E6+ACj ROM:4862 mov r1, r9 ROM:4864 shl r1, #2 ROM:4866 sub r1, r9 ROM:4868 shl r1, #2 ROM:486A mov r4, [r1+418Ch] ROM:486E mov r5, [r1+418Eh] ROM:4872 sub r4, r6 ROM:4874 subc r5, r7 ROM:4876 jmpr cc_UGT, loc_488E ROM:4878 mov r4, [r1+4190h] ROM:487C mov r5, [r1+4192h] ROM:4880 sub r4, r6 ROM:4882 subc r5, r7 ROM:4884 jmpr cc_ULE, loc_488E ROM:4886 mov r12, r9 ROM:4888 calla cc_UC, sub_478C ROM:488C jmpr cc_UC, loc_489E ROM:488E ; --------------------------------------------------------------------------- ROM:488E ROM:488E loc_488E: ; CODE XREF: sub_47E6+90j ROM:488E ; sub_47E6+9Ej ROM:488E add r9, #1 ROM:4890 ROM:4890 loc_4890: ; CODE XREF: sub_47E6+7Aj ROM:4890 cmp r9, #5 ROM:4892 jmpr cc_C, loc_4862 ROM:4894 ROM:4894 loc_4894: ; CODE XREF: sub_47E6+2Ej ROM:4894 ; sub_47E6+4Ej ROM:4894 add r9, #1 ROM:4896 cmp r9, #5 ROM:4898 jmpr cc_C, loc_47F8 ROM:489A mov r4, #0FFFCh ROM:489E ROM:489E loc_489E: ; CODE XREF: sub_47E6+5Cj ROM:489E ; sub_47E6+76j ... ROM:489E mov r6, [r0+] ROM:48A0 mov r7, [r0+] ROM:48A2 mov r8, [r0+] ROM:48A4 mov r9, [r0+] ROM:48A6 add r0, #4 ROM:48A8 ret ROM:48A8 ; End of function sub_47E6 ROM:48A8 ROM:48AA ROM:48AA ; =============== S U B R O U T I N E ======================================= ROM:48AA ROM:48AA ROM:48AA sub_48AA: ; CODE XREF: ROM:4248p ROM:48AA mov r12, #0 ROM:48AC ROM:48AC loc_48AC: ; CODE XREF: sub_48AA+40j ROM:48AC mov r13, r12 ROM:48AE shl r13, #2 ROM:48B0 sub r13, r12 ROM:48B2 shl r13, #2 ROM:48B4 mov r4, [r13+418Ch] ROM:48B8 mov r5, [r13+418Eh] ROM:48BC sub r4, word_41C8 ROM:48C0 subc r5, word_41CA ROM:48C4 jmpr cc_UGT, loc_48E0 ROM:48C6 mov r4, [r13+4190h] ROM:48CA mov r5, [r13+4192h] ROM:48CE sub r4, word_41C8 ROM:48D2 subc r5, word_41CA ROM:48D6 jmpr cc_ULE, loc_48E0 ROM:48D8 movb rl4, #1 ROM:48DA movb [r12+0F768h], rl4 ROM:48DE jmpr cc_UC, loc_48E6 ROM:48E0 ; --------------------------------------------------------------------------- ROM:48E0 ROM:48E0 loc_48E0: ; CODE XREF: sub_48AA+1Aj ROM:48E0 ; sub_48AA+2Cj ROM:48E0 movb rl4, #0 ROM:48E2 movb [r12+0F768h], rl4 ROM:48E6 ROM:48E6 loc_48E6: ; CODE XREF: sub_48AA+34j ROM:48E6 add r12, #1 ROM:48E8 cmp r12, #5 ROM:48EA jmpr cc_C, loc_48AC ROM:48EC ret ROM:48EC ; End of function sub_48AA ROM:48EC ROM:48EE ROM:48EE ; =============== S U B R O U T I N E ======================================= ROM:48EE ROM:48EE ROM:48EE sub_48EE: ; CODE XREF: ROM:434EP ROM:48EE ; ROM:43DCP ... ROM:48EE push r5 ROM:48F0 push r4 ROM:48F2 rets ROM:48F2 ; End of function sub_48EE ROM:48F2 ROM:48F4 ROM:48F4 ; =============== S U B R O U T I N E ======================================= ROM:48F4 ROM:48F4 ROM:48F4 sub_48F4: ; CODE XREF: sub_46DA+3AP ROM:48F4 ; sub_4738+26P ROM:48F4 exts r5, #1 ROM:48F6 mov r10, [r4] ROM:48F8 add r4, #2 ROM:48FA addc r5, #0 ROM:48FC exts r5, #1 ROM:48FE mov r11, [r4] ROM:4900 rets ROM:4900 ; End of function sub_48F4
I'd love to see the IDB for that checksum bit out of pure curiosity, might also be able to get you a non code patch, there might be different checksum for code block for example.
|