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

Disassembly:
sub esp, 0x80
mov eax, dword [0x4ccf60]
xor eax, esp
mov dword [esp + 0x7c], eax
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 + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xe4]
push edi
mov edi, 8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
cmp eax, dword [esi + 0xd0]
jb 0x493287
cmp byte [esi + 0x123], 0
push ebx
je 0x4930c3
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.0048dd20
add esp, 0x10
jmp 0x493025
mov edi, 8
inc byte [esi + 0x124]
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x4930be
mov edx, dword [esi + 0xc8]
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
mov edi, eax
mov al, byte [esi + 0x129]
cmp al, 8
mov dword [esi + 0xe0], edi
movzx eax, al
jb 0x493074
shr eax, 3
imul eax, edi
jmp 0x49307d
imul eax, edi
add eax, 7
shr eax, 3
inc eax
test byte [esi + 0x70], 2
mov dword [esi + 0xdc], eax
jne 0x4930b0
mov eax, dword [esi + 0xcc]
sub eax, dword [esp + ecx + 0x68]
mov ebp, dword [esp + ecx + 0x4c]
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
xor ebp, ebp
mov dword [esi + 0xd0], eax
test edi, edi
je 0x493020
cmp bl, 7
jb 0x493286
mov edi, 8
mov edx, 1
test byte [esi + 0x6c], 0x20
jne 0x49325c
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 ebx, dword [esp + 0x84]
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
cmp dword [esi + 0x78], ebp
jne 0x493201
cmp dword [esi + 0x10c], ebp
jne 0x4931be
lea ebp, [esi + 0x11c]
nop
push 0
push esi
call fcn.00490790
push 4
lea edx, [esp + 0x90]
push edx
push esi
call fcn.0048d120
mov eax, dword [esp + 0x98]
movzx ecx, byte [esp + 0x9a]
movzx edx, byte [esp + 0x9b]
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 0x49317d
push str.PNG_unsigned_integer_out_of_range.
push esi
call fcn.0048da10
add esp, 8
push esi
mov dword [esi + 0x10c], edi
call fcn.0048c9b0
push 4
push ebp
push esi
call fcn.0048d120
push 4
push ebp
push esi
call fcn.0048c9d0
add esp, 0x1c
cmp dword [ebp], ebx
je 0x4931b1
push str.Not_enough_image_data
push esi
call fcn.0048da10
add esp, 8
cmp dword [esi + 0x10c], 0
je 0x493120
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
mov edi, dword [esi + 0xac]
mov dword [esi + 0x78], eax
mov dword [esi + 0x74], edi
cmp eax, ecx
jbe 0x4931dd
mov dword [esi + 0x78], ecx
mov ebp, dword [esi + 0x78]
push ebp
push edi
push esi
call fcn.0048d120
push ebp
push edi
push esi
call fcn.0048c9d0
mov eax, dword [esi + 0x78]
sub dword [esi + 0x10c], eax
add esp, 0x18
xor ebp, ebp
lea edi, [ebp + 8]
lea eax, [esi + 0x74]
push 1
push eax
call fcn.0048e070
add esp, 8
cmp eax, 1
je 0x49329f
cmp eax, ebp
je 0x493235
mov eax, dword [esi + 0x8c]
cmp eax, ebp
jne 0x49322b
mov eax, str.Decompression_Error
push eax
push esi
call fcn.0048da10
add esp, 8
cmp dword [esi + 0x84], ebp
jne 0x493104
push str.Extra_compressed_data.
push esi
call fcn.0048dad0
add esp, 8
or dword [esi + 0x68], edi
or dword [esi + 0x6c], 0x20
mov dword [esi + 0x84], ebp
cmp dword [esi + 0x10c], ebp
jne 0x493269
cmp dword [esi + 0x78], ebp
je 0x493277
push str.Extra_compression_data
push esi
call fcn.0048dad0
add esp, 8
lea ecx, [esi + 0x74]
push ecx
call fcn.0048de30
add esp, 4
or dword [esi + 0x68], edi
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0049536b
add esp, 0x80
ret
cmp dword [esi + 0x84], ebp
je 0x4932b4
cmp dword [esi + 0x78], ebp
jne 0x4932b4
cmp dword [esi + 0x10c], ebp
je 0x49324f
push str.Extra_compressed_data
jmp 0x493246