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

Disassembly:
sub esp, 0x80
mov eax, 2
push ebx
xor ebx, ebx
mov edx, 1
push esi
mov esi, dword [esp + 0x8c]
add dword [esi + 0xe8], edx
mov ecx, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xe8]
cmp eax, dword [esi + 0xd4]
push edi
mov edi, 8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
jb 0x438a24
cmp byte [esi + 0x127], bl
push ebp
je 0x4387d9
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xec]
add eax, edx
push eax
push ebx
push ecx
mov dword [esi + 0xe8], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x438767
mov edi, 8
add byte [esi + 0x128], 1
mov bl, byte [esi + 0x128]
cmp bl, 7
jae 0x4387d2
mov edx, dword [esi + 0xcc]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x3c]
mov edi, dword [esp + ecx + 0x20]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
test byte [esi + 0x74], 2
mov edi, eax
mov dword [esi + 0xe4], edi
jne 0x4387c4
mov eax, dword [esi + 0xd0]
sub eax, dword [esp + ecx + 0x74]
mov ebp, dword [esp + ecx + 0x58]
xor edx, edx
lea eax, [eax + ebp - 1]
div ebp
test edi, edi
mov dword [esi + 0xd4], eax
je 0x438762
cmp bl, 7
jb 0x438a23
mov edi, 8
mov edx, 1
xor ebx, ebx
test byte [esi + 0x70], 0x20
jne 0x4389f9
lea ecx, [esp + 0x13]
mov byte [esp + 0x18], 0x49
mov byte [esp + 0x19], 0x44
mov byte [esp + 0x1a], 0x41
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], edx
lea ebp, [esi + 0x78]
nop
cmp dword [esi + 0x7c], ebx
jne 0x43898e
cmp dword [esi + 0x110], ebx
jne 0x438946
lea ebx, [esi + 0x120]
jmp 0x438830
push 0
push esi
call fcn.00435be0
push 4
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0042f4a0
mov eax, dword [esp + 0x28]
movzx ecx, byte [esp + 0x2a]
movzx edx, byte [esp + 0x2b]
movzx edi, al
shl edi, 8
movzx eax, ah
add edi, eax
shl edi, 8
add edi, ecx
shl edi, 8
add edi, edx
add esp, 0x14
cmp edi, 0x7fffffff
jbe 0x438881
push str.PNG_unsigned_integer_out_of_range
push esi
call fcn.0042f310
add esp, 8
push esi
mov dword [esi + 0x110], edi
call fcn.0042e740
push 4
push ebx
push esi
call fcn.0042f4a0
push 4
push ebx
push esi
call fcn.0042e760
add esp, 0x1c
mov eax, 4
lea ecx, [esp + 0x18]
mov edx, ebx
lea ecx, [ecx]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4388c8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4388b0
test eax, eax
je 0x438925
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x438917
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x438925
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x438917
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x438925
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x438917
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x438925
movzx edi, byte [edx]
movzx eax, byte [ecx]
sub edi, eax
je 0x438925
test edi, edi
mov eax, 1
jg 0x438927
or eax, 0xffffffff
jmp 0x438927
xor eax, eax
test eax, eax
je 0x438939
push str.Not_enough_image_data
push esi
call fcn.0042f310
add esp, 8
cmp dword [esi + 0x110], 0
je 0x438830
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x110]
cmp eax, ecx
mov edi, dword [esi + 0xb0]
lea ebp, [esi + 0x78]
mov dword [esi + 0x7c], eax
mov dword [ebp], edi
jbe 0x438968
mov dword [esi + 0x7c], ecx
mov ebx, dword [esi + 0x7c]
push ebx
push edi
push esi
call fcn.0042f4a0
push ebx
push edi
push esi
call fcn.0042e760
mov ecx, dword [esi + 0x7c]
sub dword [esi + 0x110], ecx
add esp, 0x18
mov edi, 8
xor ebx, ebx
push 1
push ebp
call fcn.00441100
add esp, 8
cmp eax, 1
je 0x4389c9
cmp eax, ebx
je 0x4389bb
mov eax, dword [esi + 0x90]
cmp eax, ebx
jne 0x4389b1
mov eax, str.Decompression_Error
push eax
push esi
call fcn.0042f310
add esp, 8
cmp dword [esi + 0x88], ebx
jne 0x438810
jmp 0x4389de
cmp dword [esi + 0x88], ebx
je 0x4389de
cmp dword [esi + 0x7c], ebx
jne 0x4389de
cmp dword [esi + 0x110], ebx
je 0x4389ec
push str.Extra_compressed_data
push esi
call fcn.0042f380
add esp, 8
or dword [esi + 0x6c], edi
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], ebx
cmp dword [esi + 0x110], ebx
jne 0x438a06
cmp dword [esi + 0x7c], ebx
je 0x438a14
push str.Extra_compression_data
push esi
call fcn.0042f380
add esp, 8
lea edx, [esi + 0x78]
push edx
call fcn.00440ea0
add esp, 4
or dword [esi + 0x6c], edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret