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

Disassembly:
sub esp, 0x84
mov eax, dword [0x55930c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebp
mov eax, 2
push esi
xor edx, edx
mov esi, ecx
push edi
mov edi, 1
add dword [esi + 0xe4], edi
mov ecx, 4
mov ebp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
cmp eax, dword [esi + 0xd0]
jb 0x41f8a9
push ebx
cmp byte [esi + 0x123], dl
je 0x41f697
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xe8]
add eax, edi
push eax
push edx
push ecx
mov dword [esi + 0xe4], edx
call fcn.004ed5e0
add esp, 0xc
jmp 0x41f600
inc byte [esi + 0x124]
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x41f697
mov eax, dword [esi + 0xc8]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub eax, dword [esp + ecx + 0x34]
mov edi, dword [esp + ecx + 0x18]
lea eax, [eax + 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 0x41f64f
shr eax, 3
imul eax, edi
jmp 0x41f658
imul eax, edi
add eax, 7
shr eax, 3
inc eax
test byte [esi + 0x70], 2
mov dword [esi + 0xdc], eax
jne 0x41f68e
mov edx, dword [esi + 0xcc]
sub edx, dword [esp + ecx + 0x6c]
mov ebp, dword [esp + ecx + 0x50]
lea eax, [edx + ebp - 1]
xor edx, edx
div ebp
mov ebp, 8
mov dword [esi + 0xd0], eax
test edi, edi
je 0x41f600
cmp bl, 7
jb 0x41f8a8
test byte [esi + 0x6c], 0x20
jne 0x41f884
lea eax, [esp + 0x13]
mov byte [esp + 0x88], 0x49
mov byte [esp + 0x89], 0x44
mov byte [esp + 0x8a], 0x41
mov byte [esp + 0x8b], 0x54
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 1
cmp dword [esi + 0x78], 0
jne 0x41f827
cmp dword [esi + 0x10c], 0
jne 0x41f7f2
lea ebx, [esi + 0x11c]
push 0
mov ecx, esi
call fcn.0041be00
mov eax, dword [esi + 0x50]
add esp, 4
test eax, eax
je 0x41f714
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x41f722
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.0041ff30
add esp, 4
mov eax, dword [esp + 0x14]
movzx ecx, byte [esp + 0x17]
movzx edi, al
shl edi, 8
movzx edx, ah
movzx eax, byte [esp + 0x16]
add edi, edx
shl edi, 8
add edi, eax
shl edi, 8
add edi, ecx
cmp edi, 0x7fffffff
jbe 0x41f75b
push esi
mov ecx, str.PNG_unsigned_integer_out_of_range.
call fcn.0041ff30
add esp, 4
mov eax, dword [esi + 0x50]
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], 0
test eax, eax
je 0x41f77d
push 4
push ebx
push esi
call eax
add esp, 0xc
jmp 0x41f78b
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.0041ff30
add esp, 4
test byte [ebx], 0x20
je 0x41f7a3
mov edx, dword [esi + 0x6c]
and edx, 0x300
cmp edx, 0x300
jne 0x41f7ac
jmp 0x41f7cc
test dword [esi + 0x6c], 0x800
jne 0x41f7cc
mov eax, dword [esi + 0x110]
test ebx, ebx
jne 0x41f7ba
xor eax, eax
jmp 0x41f7c6
mov edx, 4
mov ecx, ebx
call fcn.0040f7f0
mov dword [esi + 0x110], eax
mov eax, dword [esp + 0x88]
cmp dword [ebx], eax
je 0x41f7e5
push esi
mov ecx, str.Not_enough_image_data
call fcn.0041ff30
add esp, 4
cmp dword [esi + 0x10c], 0
je 0x41f6f2
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 0x41f811
mov dword [esi + 0x78], ecx
mov ebx, dword [esi + 0x78]
call fcn.0041bd90
mov ecx, dword [esi + 0x78]
sub dword [esi + 0x10c], ecx
mov ebp, 8
lea eax, [esi + 0x74]
push 1
push eax
call fcn.0040c0c0
add esp, 8
cmp eax, 1
je 0x41f8c1
test eax, eax
je 0x41f85c
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x41f851
mov eax, str.Decompression_Error
push esi
mov ecx, eax
call fcn.0041ff30
add esp, 4
cmp dword [esi + 0x84], 0
jne 0x41f6d5
mov ecx, str.Extra_compressed_data.
call fcn.0041fff0
or dword [esi + 0x68], ebp
or dword [esi + 0x6c], 0x20
mov dword [esi + 0x84], 0
cmp dword [esi + 0x10c], 0
jne 0x41f893
cmp dword [esi + 0x78], 0
je 0x41f89d
mov ecx, str.Extra_compression_data
call fcn.0041fff0
lea edx, [esi + 0x74]
call fcn.0040be10
or dword [esi + 0x68], ebp
pop ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004e9752
add esp, 0x84
ret
cmp dword [esi + 0x84], 0
je 0x41f8d9
cmp dword [esi + 0x78], 0
jne 0x41f8d9
cmp dword [esi + 0x10c], 0
je 0x41f873
mov ecx, str.Extra_compressed_data
jmp 0x41f86e