Function at 0x4f8297
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
mov eax, dword [esp + 0xdc]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [ecx + 0x28]
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
push esi
push edi
push edx
push eax
push str.ImDecompress__w___d__h___d__n
push 2
push 0x69b720
mov dword [esp + 0x48], ebx
call fcn.00479850
mov ecx, dword [ebx]
mov edx, dword [ecx]
push 8
push edx
lea eax, [esp + 0x44]
push eax
call sub.MSVCR71.dll_memmove
mov al, byte [ebx + 0x30]
mov ecx, 1
add esp, 0x20
test cl, al
je 0x4f8089
mov dword [esp + 0x20], ecx
jmp 0x4f8091
movsx edx, word [ebx + 0x18]
mov dword [esp + 0x20], edx
movsx eax, word [esp + 0x28]
mov edi, dword [ebx + 0x24]
cmp edi, eax
jg 0x4f80a3
mov dword [esp + 0x18], ecx
jmp 0x4f80bc
lea esi, [eax - 1]
mov eax, edi
cdq
idiv esi
imul esi, eax
inc esi
cmp edi, esi
mov dword [esp + 0x18], eax
jle 0x4f80bc
inc eax
mov dword [esp + 0x18], eax
movsx eax, word [esp + 0x2a]
mov esi, dword [ebx + 0x28]
cmp esi, eax
jg 0x4f80ce
mov dword [esp + 0x10], ecx
jmp 0x4f80e7
lea ecx, [eax - 1]
mov eax, esi
cdq
idiv ecx
imul ecx, eax
inc ecx
cmp esi, ecx
mov dword [esp + 0x10], eax
jle 0x4f80e7
inc eax
mov dword [esp + 0x10], eax
mov esi, ebx
lea eax, [esp + 0xc0]
call fcn.004f7920
mov ecx, dword [ebx + 0x20]
push eax
push ecx
lea edx, [esp + 0xb4]
push edx
call fcn.005f0530
mov ecx, dword [esp + 0x2c]
xor eax, eax
xor edi, edi
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x14], edi
jle 0x4f83a5
push ebp
jmp 0x4f8130
xor eax, eax
jmp 0x4f8130
mov ecx, dword [esp + 0xec]
movsx ebp, word [ecx + 0x18]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
lea esi, [edx + ebp]
mov edx, dword [ecx + edi*4]
mov dword [esp + 0x64], edx
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x68], ecx
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x84], eax
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + edi*4]
push edx
push edi
push str._plane___d__srcBlockSize___d_n
push 2
push 0x69b720
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x60], esi
call fcn.00479850
add esp, 0x14
cmp ebp, esi
jge 0x4f837c
lea esp, [esp]
mov eax, dword [esp + 0xec]
movsx esi, word [eax + 0x1a]
movsx ecx, word [esp + 0x32]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
lea ecx, [esi + edx]
movsx edx, word [esp + 0x2c]
mov dword [esp + 0x34], ecx
movsx ecx, word [eax + 0x18]
mov eax, ebp
sub eax, ecx
lea ecx, [edx - 1]
imul eax, ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x20], edx
add edx, eax
cmp edx, ecx
mov dword [esp + 0x44], eax
jle 0x4f81e9
sub ecx, eax
mov dword [esp + 0x20], ecx
cmp esi, dword [esp + 0x34]
jge 0x4f836b
mov eax, dword [esp + 0x10]
imul eax, ebp
add eax, esi
lea eax, [eax*4 + 8]
mov dword [esp + 0x10], eax
jmp 0x4f8210
mov ecx, dword [esp + 0xec]
movsx edx, word [ecx + 0x1a]
movsx ebp, word [esp + 0x2e]
mov eax, esi
sub eax, edx
lea ecx, [ebp - 1]
imul eax, ecx
mov ecx, dword [ebx + 0x28]
lea edx, [eax + ebp]
cmp edx, ecx
mov dword [esp + 0x48], eax
jle 0x4f823c
sub ecx, eax
mov ebp, ecx
mov eax, dword [ebx]
mov edi, dword [eax + edi*4]
add edi, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x44]
push edi
push ecx
call sub.MSVCR71.dll_memmove
push 4
add edi, 4
lea edx, [esp + 0x4c]
push edi
push edx
call sub.MSVCR71.dll_memmove
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
push edi
push eax
mov eax, dword [esp + 0x48]
push ecx
movsx ecx, word [esp + 0x50]
push edx
movsx edx, word [esp + 0x56]
mov edi, dword [esp + 0x40]
dec ecx
imul ecx, eax
dec edx
imul edx, esi
push ebp
push ecx
push edx
push esi
push eax
push edi
push str.p___d__s___d__d___d__x___3d__y___3d__w___3d__h___3d__off___x__nextOff___x__offAdd___x__n
push 2
push 0x69b720
call fcn.00479850
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
add eax, ecx
sub ebx, ecx
add esp, 0x4c
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
call fcn.004f7840
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x60]
push ecx
push 1
push 0x4000
mov dword [esp + 0x64], edx
mov edx, dword [0x69b718]
push 0
push edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], eax
call fcn.004d8370
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4f8312
push eax
call fcn.0044b1f0
add esp, 4
mov eax, dword [0x69b71c]
push eax
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [esp + 0xc4]
mov edx, dword [0x69b718]
push edi
push edx
call fcn.004d8450
add esp, 0x18
test eax, eax
jne 0x4f8347
push eax
call fcn.0044b1f0
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x10], ecx
jl 0x4f8210
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x28], ebp
jl 0x4f81a0
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi*4]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x24]
mov dword [ecx + edi*4], edx
mov edx, dword [ebx + 0x30]
and edx, 0xfffffbff
inc edi
cmp edi, eax
mov dword [ebx + 0x30], edx
mov dword [esp + 0x18], edi
jl 0x4f8121
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xd8
ret