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

Disassembly:
sub esp, 0x80
mov eax, 4
push ebp
xor ebp, ebp
mov edx, 1
push esi
mov esi, dword [esp + 0x8c]
add dword [esi + 0xe4], edx
mov ecx, 2
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 + 0xd0]
push edi
mov edi, 8
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
jb 0x4688d2
cmp byte [esi + 0x123], 0
push ebx
je 0x468721
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xe8]
add eax, edx
push eax
push ebp
push ecx
push esi
mov dword [esi + 0xe4], ebp
call fcn.00456530
add esp, 0x10
jmp 0x468680
mov edi, 8
lea esp, [esp]
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x46871c
mov edx, dword [esi + 0xc8]
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
mov edi, eax
mov al, byte [esi + 0x129]
cmp al, 8
mov dword [esi + 0xe0], edi
movzx eax, al
jb 0x4686d0
shr eax, 3
imul eax, edi
jmp 0x4686d9
imul eax, edi
add eax, 7
shr eax, 3
add eax, 1
test byte [esi + 0x70], 2
mov dword [esi + 0xdc], eax
jne 0x46870e
mov eax, dword [esi + 0xcc]
sub eax, dword [esp + ecx + 0x74]
mov ebp, dword [esp + ecx + 0x58]
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
xor ebp, ebp
test edi, edi
mov dword [esi + 0xd0], eax
je 0x468677
cmp bl, 7
jb 0x4688d1
mov edi, 8
mov edx, 1
test byte [esi + 0x6c], 0x20
jne 0x4688a7
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 + 0x80], ecx
mov dword [esi + 0x84], edx
lea ebx, [esi + 0x74]
cmp dword [esi + 0x78], ebp
jne 0x46884f
cmp dword [esi + 0x10c], ebp
jne 0x46880b
lea ebp, [esi + 0x11c]
push 0
push esi
call fcn.00465ef0
push 4
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0045dcd0
mov eax, dword [esp + 0x28]
movzx edi, al
shl edi, 8
movzx eax, ah
add edi, eax
mov ax, word [esp + 0x2a]
shl edi, 8
movzx ecx, al
add edi, ecx
movzx edx, ah
shl edi, 8
add edi, edx
add esp, 0x14
cmp edi, 0x7fffffff
jbe 0x4687c4
push str.PNG_unsigned_integer_out_of_range.
push esi
call fcn.0045ef80
add esp, 8
push esi
mov dword [esi + 0x10c], edi
call fcn.00454780
push 4
push ebp
push esi
call fcn.0045dcd0
push 4
push ebp
push esi
call fcn.004547a0
mov ecx, dword [ebp]
lea eax, [esp + 0x34]
add esp, 0x1c
cmp ecx, dword [eax]
je 0x4687fe
push str.Not_enough_image_data
push esi
call fcn.0045ef80
add esp, 8
cmp dword [esi + 0x10c], 0
je 0x468772
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
mov edi, dword [esi + 0xac]
mov dword [esi + 0x78], eax
mov dword [ebx], edi
jbe 0x468829
mov dword [esi + 0x78], ecx
mov ebp, dword [esi + 0x78]
push ebp
push edi
push esi
call fcn.0045dcd0
push ebp
push edi
push esi
call fcn.004547a0
mov edx, dword [esi + 0x78]
sub dword [esi + 0x10c], edx
add esp, 0x18
xor ebp, ebp
mov edi, 8
push 1
push ebx
call fcn.00453010
add esp, 8
cmp eax, 1
je 0x4688dc
cmp eax, ebp
je 0x468880
mov eax, dword [esi + 0x8c]
cmp eax, ebp
jne 0x468876
mov eax, str.Decompression_Error
push eax
push esi
call fcn.0045ef80
add esp, 8
cmp dword [esi + 0x84], ebp
jne 0x468757
push str.Extra_compressed_data.
push esi
call fcn.0045f040
add esp, 8
or dword [esi + 0x68], edi
or dword [esi + 0x6c], 0x20
mov dword [esi + 0x84], ebp
cmp dword [esi + 0x10c], ebp
jne 0x4688b4
cmp dword [esi + 0x78], ebp
je 0x4688c2
push str.Extra_compression_data
push esi
call fcn.0045f040
add esp, 8
lea eax, [esi + 0x74]
push eax
call fcn.00452db0
add esp, 4
or dword [esi + 0x68], edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x80
ret
cmp dword [esi + 0x84], ebp
je 0x4688f1
cmp dword [esi + 0x78], ebp
jne 0x4688f1
cmp dword [esi + 0x10c], ebp
je 0x46889a
push str.Extra_compressed_data
jmp 0x468891