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

Disassembly:
sub esp, 0x80
push ebp
xor ebp, ebp
push esi
mov esi, eax
mov eax, 2
mov edx, 1
add dword [esi + 0xdc], edx
mov ecx, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xdc]
push edi
mov edi, 8
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
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 + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
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 + 0x60], ecx
mov dword [esp + 0x64], ecx
cmp eax, dword [esi + 0xc8]
jb 0x41d194
cmp byte [esi + 0x11b], 0
push ebx
je 0x41cfbe
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xe0]
add eax, edx
push eax
push ebp
push ecx
mov dword [esi + 0xdc], ebp
call fcn.004300c0
add esp, 0xc
jmp 0x41cf25
mov edi, 8
inc byte [esi + 0x11c]
mov bl, byte [esi + 0x11c]
cmp bl, 7
jae 0x41cfbe
mov edx, dword [esi + 0xc0]
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 + 0x121]
cmp al, 8
mov dword [esi + 0xd8], edi
movzx eax, al
jb 0x41cf74
shr eax, 3
imul eax, edi
jmp 0x41cf7d
imul eax, edi
add eax, 7
shr eax, 3
inc eax
test byte [esi + 0x68], 2
mov dword [esi + 0xd4], eax
jne 0x41cfb0
mov eax, dword [esi + 0xc4]
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
mov dword [esi + 0xc8], eax
test edi, edi
je 0x41cf20
cmp bl, 7
jb 0x41d193
mov edi, 8
test byte [esi + 0x64], 0x20
jne 0x41d188
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 dword [esi + 0x78], ecx
mov dword [esi + 0x7c], 1
lea ebx, [ebx]
cmp dword [esi + 0x70], ebp
jne 0x41d12d
cmp dword [esi + 0x104], ebp
jne 0x41d0f8
jmp 0x41d009
xor ebp, ebp
push ebp
mov eax, esi
call fcn.0041bdb0
mov eax, dword [esi + 0x54]
add esp, 4
cmp eax, ebp
je 0x41d02a
push 4
lea edx, [esp + 0x18]
push edx
push esi
call eax
add esp, 0xc
jmp 0x41d050
mov eax, dword [esi + 0x44]
cmp eax, ebp
je 0x41d03c
push str.Call_to_NULL_read_function
push esi
call eax
add esp, 8
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x41d04b
push 1
push esi
call eax
add esp, 8
call fcn.00427f35
mov eax, dword [esp + 0x14]
movzx ecx, byte [esp + 0x16]
movzx edx, byte [esp + 0x17]
movzx edi, al
shl edi, 8
movzx eax, ah
add edi, eax
shl edi, 8
add edi, ecx
shl edi, 8
add edi, edx
cmp edi, 0x7fffffff
jbe 0x41d0a1
mov eax, dword [esi + 0x44]
cmp eax, ebp
je 0x41d08d
push str.PNG_unsigned_integer_out_of_range
push esi
call eax
add esp, 8
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x41d09c
push 1
push esi
call eax
add esp, 8
call fcn.00427f35
mov dword [esi + 0x104], edi
mov ebx, 4
lea edi, [esi + 0x114]
mov dword [esi + 0x108], ebp
call fcn.0041bd30
mov eax, dword [esp + 0x18]
cmp dword [edi], eax
je 0x41d0eb
mov eax, dword [esi + 0x44]
test eax, eax
je 0x41d0d7
push str.Not_enough_image_data
push esi
call eax
add esp, 8
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41d0e6
push 1
push esi
call eax
add esp, 8
call fcn.00427f35
cmp dword [esi + 0x104], 0
je 0x41d007
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0x104]
mov edi, dword [esi + 0xa4]
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], edi
cmp eax, ecx
jbe 0x41d117
mov dword [esi + 0x70], ecx
mov ebx, dword [esi + 0x70]
call fcn.0041bd30
mov ecx, dword [esi + 0x70]
sub dword [esi + 0x104], ecx
xor ebp, ebp
lea edi, [ebp + 8]
lea eax, [esi + 0x6c]
push eax
call fcn.00421c40
add esp, 4
cmp eax, 1
je 0x41d17e
cmp eax, ebp
je 0x41d175
mov eax, dword [esi + 0x84]
mov ecx, eax
cmp eax, ebp
jne 0x41d153
mov ecx, str.Decompression_Error
mov eax, dword [esi + 0x44]
cmp eax, ebp
je 0x41d161
push ecx
push esi
call eax
add esp, 8
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x41d170
push 1
push esi
call eax
add esp, 8
call fcn.00427f35
cmp dword [esi + 0x7c], ebp
jne 0x41cff0
or dword [esi + 0x60], edi
or dword [esi + 0x64], 0x20
mov dword [esi + 0x7c], ebp
lea edx, [esi + 0x6c]
call fcn.00421a10
or dword [esi + 0x60], edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x80
ret