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

Disassembly:
sub esp, 0x84
mov eax, dword [0x47fa30]
xor eax, esp
mov dword [esp + 0x80], eax
push ebp
mov eax, 2
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, 1
add dword [esi + 0xe8], edi
mov edx, 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 + 0xe8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
cmp eax, dword [esi + 0xd4]
jb 0x40c86e
push ebx
cmp byte [esi + 0x127], cl
je 0x40c527
mov eax, dword [esi + 0xdc]
add eax, edi
push eax
push ecx
mov dword [esi + 0xe8], ecx
mov ecx, dword [esi + 0xec]
push ecx
call fcn.00450ec0
add esp, 0xc
jmp 0x40c490
inc byte [esi + 0x128]
mov bl, byte [esi + 0x128]
cmp bl, 7
jae 0x40c527
mov edx, dword [esi + 0xcc]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x34]
mov edi, dword [esp + ecx + 0x18]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
mov edi, eax
mov al, byte [esi + 0x12d]
cmp al, 8
mov dword [esi + 0xe4], edi
movzx eax, al
jb 0x40c4df
shr eax, 3
imul eax, edi
jmp 0x40c4e8
imul eax, edi
add eax, 7
shr eax, 3
inc eax
test byte [esi + 0x74], 2
mov dword [esi + 0xe0], eax
jne 0x40c51e
mov eax, dword [esi + 0xd0]
sub eax, dword [esp + ecx + 0x6c]
mov ebp, dword [esp + ecx + 0x50]
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
mov ebp, 8
mov dword [esi + 0xd4], eax
test edi, edi
je 0x40c490
cmp bl, 7
jb 0x40c86d
test byte [esi + 0x70], 0x20
jne 0x40c849
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 dword [esi + 0x84], ecx
mov dword [esi + 0x88], 1
cmp dword [esi + 0x7c], 0
jne 0x40c7d9
cmp dword [esi + 0x110], 0
jne 0x40c7a4
lea ebx, [esi + 0x120]
push 0
mov ecx, esi
call fcn.00408850
mov eax, dword [esi + 0x54]
add esp, 4
test eax, eax
je 0x40c5a4
push 4
lea edx, [esp + 0x18]
push edx
push esi
call eax
add esp, 0xc
jmp 0x40c5fb
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c5b6
push str.Call_to_NULL_read_function
push esi
call eax
add esp, 8
push str.Call_to_NULL_read_function
push str.libpng_error:__s
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
add esp, 0xc
push 0x4761f4
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
mov eax, dword [esi + 0x40]
add esp, 8
test eax, eax
je 0x40c5f6
push 1
push esi
call eax
add esp, 8
call fcn.0045546a
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 0x40c67d
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c638
push str.PNG_unsigned_integer_out_of_range
push esi
call eax
add esp, 8
push str.PNG_unsigned_integer_out_of_range
push str.libpng_error:__s
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
add esp, 0xc
push 0x4761f4
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
mov eax, dword [esi + 0x40]
add esp, 8
test eax, eax
je 0x40c678
push 1
push esi
call eax
add esp, 8
call fcn.0045546a
mov eax, dword [esi + 0x54]
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], 0
test eax, eax
je 0x40c69f
push 4
push ebx
push esi
call eax
add esp, 0xc
jmp 0x40c6f6
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c6b1
push str.Call_to_NULL_read_function
push esi
call eax
add esp, 8
push str.Call_to_NULL_read_function
push str.libpng_error:__s
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
add esp, 0xc
push 0x4761f4
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
mov eax, dword [esi + 0x40]
add esp, 8
test eax, eax
je 0x40c6f1
push 1
push esi
call eax
add esp, 8
call fcn.0045546a
test byte [ebx], 0x20
je 0x40c70c
mov eax, dword [esi + 0x70]
and eax, 0x300
cmp eax, 0x300
jne 0x40c715
jmp 0x40c735
test dword [esi + 0x70], 0x800
jne 0x40c735
mov eax, dword [esi + 0x114]
test ebx, ebx
jne 0x40c723
xor eax, eax
jmp 0x40c72f
mov edx, 4
mov ecx, ebx
call fcn.0040f3b0
mov dword [esi + 0x114], eax
mov ecx, dword [esp + 0x88]
cmp dword [ebx], ecx
je 0x40c797
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c752
push str.Not_enough_image_data
push esi
call eax
add esp, 8
push str.Not_enough_image_data
push str.libpng_error:__s
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
add esp, 0xc
push 0x4761f4
call fcn.00455651
add eax, 0x40
push eax
call fcn.00455806
mov eax, dword [esi + 0x40]
add esp, 8
test eax, eax
je 0x40c792
push 1
push esi
call eax
add esp, 8
call fcn.0045546a
cmp dword [esi + 0x110], 0
je 0x40c582
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x110]
mov edi, dword [esi + 0xb0]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edi
cmp eax, ecx
jbe 0x40c7c3
mov dword [esi + 0x7c], ecx
mov ebx, dword [esi + 0x7c]
call fcn.004087e0
mov edx, dword [esi + 0x7c]
sub dword [esi + 0x110], edx
mov ebp, 8
lea eax, [esi + 0x78]
push eax
call fcn.0040dec0
add esp, 4
cmp eax, 1
je 0x40c816
test eax, eax
je 0x40c807
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x40c7fd
mov eax, str.Decompression_Error
push eax
push esi
call fcn.00408540
add esp, 8
cmp dword [esi + 0x88], 0
jne 0x40c565
jmp 0x40c82e
cmp dword [esi + 0x88], 0
je 0x40c82e
cmp dword [esi + 0x7c], 0
jne 0x40c82e
cmp dword [esi + 0x110], 0
je 0x40c838
mov ecx, str.Extra_compressed_data
call fcn.004085b0
or dword [esi + 0x6c], ebp
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], 0
cmp dword [esi + 0x110], 0
jne 0x40c858
cmp dword [esi + 0x7c], 0
je 0x40c862
mov ecx, str.Extra_compression_data
call fcn.004085b0
lea edx, [esi + 0x78]
call fcn.0040dd00
or dword [esi + 0x6c], ebp
pop ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00450655
add esp, 0x84
ret