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

Disassembly:
sub esp, 0x80
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
mov eax, 2
push ebp
xor ebp, ebp
mov ebx, 1
push esi
mov esi, ecx
add dword [esi + 0xe4], ebx
mov ecx, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xd4]
push edi
mov edi, 8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
jb 0x4f0dfb
cmp byte [esi + 0x123], 0
je 0x4f0c0d
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xe8]
add eax, ebx
push eax
push ebp
push ecx
mov dword [esi + 0xe4], ebp
call fcn.00508d80
add esp, 0xc
jmp 0x4f0b97
mov edi, 8
xor ebp, ebp
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x4f0c08
mov edx, dword [esi + 0xcc]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x30]
mov edi, dword [esp + ecx + 0x14]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
test byte [esi + 0x74], 2
mov ebp, eax
mov dword [esi + 0xe0], ebp
jne 0x4f0bf8
mov eax, dword [esi + 0xd0]
sub eax, dword [esp + ecx + 0x68]
mov edi, dword [esp + ecx + 0x4c]
xor edx, edx
lea eax, [eax + edi - 1]
div edi
test eax, eax
mov dword [esi + 0xd4], eax
je 0x4f0b90
test ebp, ebp
je 0x4f0b90
cmp bl, 7
jb 0x4f0dfb
mov edi, 8
xor ebp, ebp
mov ebx, 1
test byte [esi + 0x70], 0x20
jne 0x4f0d94
lea ecx, [esp + 0x13]
mov byte [esp + 0x84], 0x49
mov byte [esp + 0x85], 0x44
mov byte [esp + 0x86], 0x41
mov byte [esp + 0x87], 0x54
mov byte [esp + 0x88], 0
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ebx
nop
cmp dword [esi + 0x7c], ebp
jne 0x4f0d55
cmp dword [esi + 0x10c], ebp
jne 0x4f0d1b
xor eax, eax
mov ecx, esi
call fcn.004ecf50
mov ecx, esi
call fcn.004ecdf0
mov dword [esi + 0x10c], eax
mov eax, 4
lea ecx, [esp + 0x84]
lea edx, [esi + 0x11c]
lea ecx, [ecx]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4f0ca8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4f0c90
cmp eax, ebp
je 0x4f0d05
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4f0cf7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x4f0d05
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4f0cf7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x4f0d05
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4f0cf7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x4f0d05
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x4f0d05
cmp edi, ebp
mov eax, 1
jg 0x4f0d07
or eax, 0xffffffff
jmp 0x4f0d07
xor eax, eax
cmp eax, ebp
jne 0x4f0e14
cmp dword [esi + 0x10c], ebp
je 0x4f0c65
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0x10c]
cmp ecx, edx
mov eax, dword [esi + 0xb0]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], eax
jbe 0x4f0d3a
mov dword [esi + 0x7c], edx
mov ebx, dword [esi + 0x7c]
call fcn.004ecee0
mov eax, dword [esi + 0x7c]
sub dword [esi + 0x10c], eax
mov edi, 8
xor ebp, ebp
lea ebx, [edi - 7]
lea ecx, [esi + 0x78]
push ecx
call fcn.004f13b0
add esp, 4
cmp eax, ebx
je 0x4f0e20
cmp eax, ebp
jne 0x4f0e46
cmp dword [esi + 0x88], ebp
jne 0x4f0c50
mov ecx, str.Extra_compressed_data
call fcn.004dfbf0
or dword [esi + 0x6c], edi
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], ebp
cmp dword [esi + 0x10c], ebp
jne 0x4f0da1
cmp dword [esi + 0x7c], ebp
je 0x4f0dab
mov ecx, str.Extra_compression_data
call fcn.004dfbf0
lea ecx, [esi + 0x78]
cmp ecx, ebp
je 0x4f0df8
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x4f0df8
mov dword [eax + 0x1c], ebp
mov dword [ecx + 0x14], ebp
mov dword [ecx + 8], ebp
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x30], ebx
lea ecx, [eax + 0x530]
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x14], 0x8000
mov dword [eax + 0x20], ebp
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x30], ebp
mov dword [eax + 0x38], ebp
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x4c], ecx
or dword [esi + 0x6c], edi
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ff939
add esp, 0x80
ret
mov edi, str.Not_enough_image_data
mov eax, esi
jmp fcn.004dfbd0
cmp dword [esi + 0x88], ebp
je 0x4f0d7d
cmp dword [esi + 0x7c], ebp
jne 0x4f0d7d
cmp dword [esi + 0x10c], ebp
je 0x4f0d87
jmp 0x4f0d7d
mov eax, dword [esi + 0x90]
cmp eax, ebp
jne 0x4f0e55
mov eax, str.Decompression_Error
mov edi, eax
mov eax, esi
jmp fcn.004dfbd0