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

Disassembly:
sub esp, 0x80
push ebp
mov eax, 2
push esi
mov esi, dword [esp + 0x8c]
xor ecx, ecx
push edi
mov edi, 1
add dword [esi + 0xe4], edi
mov edx, 4
mov ebp, 8
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xd0]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
jb 0x41c025
cmp byte [esi + 0x123], cl
push ebx
je 0x41bdea
mov eax, dword [esi + 0xd8]
add eax, edi
push eax
push ecx
mov dword [esi + 0xe4], ecx
mov ecx, dword [esi + 0xe8]
push ecx
push esi
call fcn.00418430
add esp, 0x10
jmp 0x41bd50
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x41bdea
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 0x41bda0
shr eax, 3
imul eax, edi
jmp 0x41bda9
imul eax, edi
add eax, 7
shr eax, 3
add eax, 1
test byte [esi + 0x70], 2
mov dword [esi + 0xdc], eax
jne 0x41bde1
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
test edi, edi
mov ebp, 8
mov dword [esi + 0xd0], eax
je 0x41bd50
cmp bl, 7
jb 0x41c024
test byte [esi + 0x6c], 0x20
jne 0x41bff8
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], 1
lea ebx, [esi + 0x74]
cmp dword [esi + 0x78], 0
jne 0x41bf9b
cmp dword [esi + 0x10c], 0
jne 0x41bf56
lea ebp, [esi + 0x11c]
push 0
push esi
call fcn.004196b0
push 4
lea edx, [esp + 0x20]
push edx
push esi
call fcn.00412a00
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 0x41be92
push str.PNG_unsigned_integer_out_of_range.
push esi
call fcn.00418190
add esp, 8
push esi
mov dword [esi + 0x10c], edi
call fcn.0040f290
push 4
push ebp
push esi
call fcn.00412a00
push 4
push ebp
push esi
call fcn.0040f2b0
add esp, 0x1c
mov eax, 4
lea ecx, [esp + 0x18]
mov edx, ebp
mov edi, edi
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x41bed8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x41bec0
test eax, eax
je 0x41bf35
movzx ebx, byte [ecx]
movzx edi, byte [edx]
sub edi, ebx
jne 0x41bf27
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41bf35
movzx ebx, byte [ecx]
movzx edi, byte [edx]
sub edi, ebx
jne 0x41bf27
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41bf35
movzx ebx, byte [ecx]
movzx edi, byte [edx]
sub edi, ebx
jne 0x41bf27
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41bf35
movzx eax, byte [ecx]
movzx edi, byte [edx]
sub edi, eax
je 0x41bf35
test edi, edi
mov eax, 1
jg 0x41bf37
or eax, 0xffffffff
jmp 0x41bf37
xor eax, eax
test eax, eax
je 0x41bf49
push str.Not_enough_image_data
push esi
call fcn.00418190
add esp, 8
cmp dword [esi + 0x10c], 0
je 0x41be41
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
mov edi, dword [esi + 0xac]
lea ebx, [esi + 0x74]
mov dword [esi + 0x78], eax
mov dword [ebx], edi
jbe 0x41bf77
mov dword [esi + 0x78], ecx
mov ebp, dword [esi + 0x78]
push ebp
push edi
push esi
call fcn.00412a00
push ebp
push edi
push esi
call fcn.0040f2b0
mov ecx, dword [esi + 0x78]
add esp, 0x18
sub dword [esi + 0x10c], ecx
mov ebp, 8
push 1
push ebx
call fcn.0041de40
add esp, 8
cmp eax, 1
je 0x41c02f
test eax, eax
je 0x41bfcc
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x41bfc2
mov eax, str.Decompression_Error
push eax
push esi
call fcn.00418190
add esp, 8
cmp dword [esi + 0x84], 0
jne 0x41be24
push str.Extra_compressed_data.
push esi
call fcn.00418240
add esp, 8
or dword [esi + 0x68], ebp
or dword [esi + 0x6c], 0x20
mov dword [esi + 0x84], 0
cmp dword [esi + 0x10c], 0
jne 0x41c007
cmp dword [esi + 0x78], 0
je 0x41c015
push str.Extra_compression_data
push esi
call fcn.00418240
add esp, 8
lea edx, [esi + 0x74]
push edx
call fcn.0041dbe0
add esp, 4
or dword [esi + 0x68], ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x80
ret
cmp dword [esi + 0x84], 0
je 0x41c047
cmp dword [esi + 0x78], 0
jne 0x41c047
cmp dword [esi + 0x10c], 0
je 0x41bfe7
push str.Extra_compressed_data
jmp 0x41bfde