![](images/misc/native/top-left3.gif) |
![](images/statusicon/native/post_old.gif)
11-15-2007, 01:18 PM
|
![Paul's Avatar](images/avatars/_Oddworld_-_Scrab_Cakes.gif) |
Outlaw Sniper
|
|
: Jun 2007
: MilkyWay
: 1,535
Rep Power: 19
|
|
Its just courrpted games files, thats the only reason it will fail, I've seen the asm for this function.
Here it is:
:
00496480 /$ 57 PUSH EDI
00496481 |. 8B7C24 08 MOV EDI,DWORD PTR SS:[ESP+8]
00496485 |. 57 PUSH EDI
00496486 |. E8 05410000 CALL abeWin.0049A590
0049648B |. 83C4 04 ADD ESP,4
0049648E |. 84C0 TEST AL,AL
00496490 |. 75 2E JNZ SHORT abeWin.004964C0
00496492 |. 0FBF47 06 MOVSX EAX,WORD PTR DS:[EDI+6]
00496496 |. 0FBF4F 04 MOVSX ECX,WORD PTR DS:[EDI+4]
0049649A |. 0FBF57 02 MOVSX EDX,WORD PTR DS:[EDI+2]
0049649E |. 50 PUSH EAX
0049649F |. 51 PUSH ECX
004964A0 |. 0FBF07 MOVSX EAX,WORD PTR DS:[EDI]
004964A3 |. 52 PUSH EDX
004964A4 |. 50 PUSH EAX
004964A5 |. 68 30874E00 PUSH abeWin.004E8730 ; ASCII "LoadImage: BAD RECT (%ld %ld %ld %ld (IMPORTANT NUMBERS)) !!!"
004964AA |. 68 6D020000 PUSH 26D
004964AF |. 68 70874E00 PUSH abeWin.004E8770 ; ASCII "E:\Abe\PSXEmu\LIBGPU.C"
004964B4 |. E8 B77EFFFF CALL abeWin.0048E370
004964B9 |. 83C4 1C ADD ESP,1C
004964BC |. 33C0 XOR EAX,EAX
004964BE |. 5F POP EDI
004964BF |. C3 RETN
004964C0 |> 68 2064AC00 PUSH abeWin.00AC6420
004964C5 |. E8 4694FFFF CALL abeWin.0048F910
004964CA |. 83C4 04 ADD ESP,4
004964CD |. 85C0 TEST EAX,EAX
004964CF |. 0F84 BC000000 JE abeWin.00496591
004964D5 |. 0FBF4F 02 MOVSX ECX,WORD PTR DS:[EDI+2]
004964D9 |. 0FBF17 MOVSX EDX,WORD PTR DS:[EDI]
004964DC |. C1E1 0A SHL ECX,0A
004964DF |. 56 PUSH ESI
004964E0 |. 03CA ADD ECX,EDX
004964E2 |. 0FBF57 04 MOVSX EDX,WORD PTR DS:[EDI+4]
004964E6 |. 55 PUSH EBP
004964E7 |. 53 PUSH EBX
004964E8 |. 0FBF5F 06 MOVSX EBX,WORD PTR DS:[EDI+6]
004964EC |. A1 2464AC00 MOV EAX,DWORD PTR DS:[AC6424]
004964F1 |. D1E2 SHL EDX,1
004964F3 |. 0FAFDA IMUL EBX,EDX
004964F6 |. 8D0448 LEA EAX,DWORD PTR DS:[EAX+ECX*2]
004964F9 |. 8B4C24 18 MOV ECX,DWORD PTR SS:[ESP+18]
004964FD |. 8BF1 MOV ESI,ECX
004964FF |. 03D9 ADD EBX,ECX
00496501 |. 83FA 20 CMP EDX,20
00496504 |. 897424 14 MOV DWORD PTR SS:[ESP+14],ESI
00496508 |. 75 47 JNZ SHORT abeWin.00496551
0049650A |. 3BCB CMP ECX,EBX
0049650C |. 73 6C JNB SHORT abeWin.0049657A
0049650E |. 83C1 08 ADD ECX,8
00496511 |> 8B51 F8 /MOV EDX,DWORD PTR DS:[ECX-8]
00496514 |. 83C1 20 |ADD ECX,20
00496517 |. 8910 |MOV DWORD PTR DS:[EAX],EDX
00496519 |. 8B51 DC |MOV EDX,DWORD PTR DS:[ECX-24]
0049651C |. 8950 04 |MOV DWORD PTR DS:[EAX+4],EDX
0049651F |. 8B51 E0 |MOV EDX,DWORD PTR DS:[ECX-20]
00496522 |. 8950 08 |MOV DWORD PTR DS:[EAX+8],EDX
00496525 |. 8B51 E4 |MOV EDX,DWORD PTR DS:[ECX-1C]
00496528 |. 8950 0C |MOV DWORD PTR DS:[EAX+C],EDX
0049652B |. 8B51 E8 |MOV EDX,DWORD PTR DS:[ECX-18]
0049652E |. 8950 10 |MOV DWORD PTR DS:[EAX+10],EDX
00496531 |. 8B51 EC |MOV EDX,DWORD PTR DS:[ECX-14]
00496534 |. 8950 14 |MOV DWORD PTR DS:[EAX+14],EDX
00496537 |. 8B51 F0 |MOV EDX,DWORD PTR DS:[ECX-10]
0049653A |. 8950 18 |MOV DWORD PTR DS:[EAX+18],EDX
0049653D |. 8B51 F4 |MOV EDX,DWORD PTR DS:[ECX-C]
00496540 |. 8950 1C |MOV DWORD PTR DS:[EAX+1C],EDX
00496543 |. 8D51 F8 |LEA EDX,DWORD PTR DS:[ECX-8]
00496546 |. 05 00080000 |ADD EAX,800
0049654B |. 3BD3 |CMP EDX,EBX
0049654D |.^72 C2 \JB SHORT abeWin.00496511
0049654F |. EB 29 JMP SHORT abeWin.0049657A
00496551 |> 3BCB CMP ECX,EBX
00496553 |. 73 25 JNB SHORT abeWin.0049657A
00496555 |> 8BCA /MOV ECX,EDX
00496557 |. 8BF8 |MOV EDI,EAX
00496559 |. 8BE9 |MOV EBP,ECX
0049655B |. 05 00080000 |ADD EAX,800
00496560 |. C1E9 02 |SHR ECX,2
00496563 |. F3:A5 |REP MOVS DWORD PTR ES:[EDI],DWORD PTR D>
00496565 |. 8BCD |MOV ECX,EBP
00496567 |. 83E1 03 |AND ECX,3
0049656A |. F3:A4 |REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:>
0049656C |. 8B7424 14 |MOV ESI,DWORD PTR SS:[ESP+14]
00496570 |. 03F2 |ADD ESI,EDX
00496572 |. 3BF3 |CMP ESI,EBX
00496574 |. 897424 14 |MOV DWORD PTR SS:[ESP+14],ESI
00496578 |.^72 DB \JB SHORT abeWin.00496555
0049657A |> 68 2064AC00 PUSH abeWin.00AC6420
0049657F |. E8 7C94FFFF CALL abeWin.0048FA00
00496584 |. 83C4 04 ADD ESP,4
00496587 |. B8 01000000 MOV EAX,1
0049658C |. 5B POP EBX
0049658D |. 5D POP EBP
0049658E |. 5E POP ESI
0049658F |. 5F POP EDI
00496590 |. C3 RETN
00496591 |> 68 88874E00 PUSH abeWin.004E8788 ; ASCII "LoadImage: can't lock the _psxemu_videomem"
00496596 |. 6A FF PUSH -1
00496598 |. 68 95020000 PUSH 295
0049659D |. 68 B4874E00 PUSH abeWin.004E87B4 ; ASCII "E:\Abe\PSXEmu\LIBGPU.C"
004965A2 |. E8 1978FFFF CALL abeWin.0048DDC0
004965A7 |. 83C4 10 ADD ESP,10
004965AA |. B8 01000000 MOV EAX,1
004965AF |. 5F POP EDI
004965B0 \. C3 RETN
|
|
|
|
![](images/misc/native/top-right3.gif) |