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

Disassembly:
sub esp, 0x84
mov eax, dword [0x100ba4f0]
mov dword [esp + 0x80], eax
push ebp
push esi
push edi
xor ebp, ebp
mov edx, 1
mov ecx, 2
mov esi, dword [esp + 0x94]
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x80], edx
mov edx, dword [esi + 0xe4]
mov eax, 4
inc edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0xd0]
mov edi, 8
mov eax, edx
cmp eax, ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esi + 0xe4], edx
jb 0x100614ad
mov al, byte [esi + 0x123]
test al, al
push ebx
je 0x100612c0
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xe8]
inc eax
push eax
push ebp
push ecx
push esi
mov dword [esi + 0xe4], ebp
call fcn.1005d520
add esp, 0x10
jmp 0x10061220
mov edi, 8
jmp 0x10061220
mov cl, byte [esi + 0x124]
inc cl
mov bl, cl
cmp bl, 7
mov byte [esi + 0x124], cl
jae 0x100612c0
mov edx, dword [esi + 0xc8]
movzx ecx, bl
shl ecx, 2
mov eax, dword [esp + ecx + 0x34]
mov edi, dword [esp + ecx + 0x18]
sub edx, eax
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 0x10061274
shr eax, 3
imul eax, edi
jmp 0x1006127d
imul eax, edi
add eax, 7
shr eax, 3
inc eax
mov dword [esi + 0xdc], eax
test byte [esi + 0x70], 2
jne 0x100612b2
mov edx, dword [esp + ecx + 0x6c]
mov ebp, dword [esp + ecx + 0x50]
mov eax, dword [esi + 0xcc]
sub eax, edx
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
xor ebp, ebp
test edi, edi
mov dword [esi + 0xd0], eax
je 0x10061212
cmp bl, 7
jb 0x100614ac
mov edi, 8
test byte [esi + 0x6c], 0x20
jne 0x1006147d
lea ecx, [esp + 0x13]
mov byte [esp + 0x88], 0x49
mov byte [esp + 0x89], 0x44
mov byte [esp + 0x8a], 0x41
mov byte [esp + 0x8b], 0x54
mov byte [esp + 0x8c], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], 1
lea ebx, [esi + 0x74]
lea esp, [esp]
cmp dword [esi + 0x78], ebp
jne 0x1006141b
cmp dword [esi + 0x10c], ebp
jne 0x100613cf
lea ebp, [esi + 0x11c]
jmp 0x10061330
push 0
push esi
call fcn.1005eb50
push 4
lea edx, [esp + 0x20]
push edx
push esi
call fcn.1005b0f0
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 0x10061382
push str.PNG_unsigned_integer_out_of_range.
push esi
call fcn.1005d1f0
add esp, 8
push esi
mov dword [esi + 0x10c], edi
call fcn.10059320
push 4
push ebp
push esi
call fcn.1005b0f0
push 4
push ebp
push esi
call fcn.10059340
mov ecx, dword [ebp]
lea eax, [esp + 0xa4]
mov edx, dword [eax]
add esp, 0x1c
cmp ecx, edx
je 0x100613c1
push str.Not_enough_image_data
push esi
call fcn.1005d1f0
add esp, 8
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x10061330
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 0x100613ed
mov dword [esi + 0x78], ecx
mov ebp, dword [esi + 0x78]
push ebp
push edi
push esi
call fcn.1005b0f0
push ebp
push edi
push esi
call fcn.10059340
mov eax, dword [esi + 0x10c]
mov edx, dword [esi + 0x78]
sub eax, edx
add esp, 0x18
mov dword [esi + 0x10c], eax
xor ebp, ebp
mov edi, 8
push 1
push ebx
call fcn.1005b840
add esp, 8
cmp eax, 1
je 0x100614c3
cmp eax, ebp
je 0x1006144c
mov eax, dword [esi + 0x8c]
cmp eax, ebp
jne 0x10061442
mov eax, str.Decompression_Error
push eax
push esi
call fcn.1005d1f0
add esp, 8
cmp dword [esi + 0x84], ebp
jne 0x10061310
push str.Extra_compressed_data.
push esi
call fcn.1005d2b0
add esp, 8
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
or ecx, edi
or eax, 0x20
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x84], ebp
cmp dword [esi + 0x10c], ebp
jne 0x1006148a
cmp dword [esi + 0x78], ebp
je 0x10061498
push str.Extra_compression_data
push esi
call fcn.1005d2b0
add esp, 8
lea eax, [esi + 0x74]
push eax
call fcn.1005b5d0
mov eax, dword [esi + 0x68]
add esp, 4
or eax, edi
mov dword [esi + 0x68], eax
pop ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
call fcn.10043e9e
add esp, 0x84
ret
cmp dword [esi + 0x84], ebp
je 0x100614d8
cmp dword [esi + 0x78], ebp
jne 0x100614d8
cmp dword [esi + 0x10c], ebp
je 0x10061466
push str.Extra_compressed_data
jmp 0x1006145d