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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x47fa30]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x5c]
mov ebx, 0xff
push edi
mov edi, 0x55
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov byte [esp + 0x50], 0x49
mov byte [esp + 0x51], 0x44
mov byte [esp + 0x52], 0x41
mov byte [esp + 0x53], 0x54
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x33
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x18], 0x80
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x88
mov dword [esp + 0x24], 0x22
mov dword [esp + 0x28], 0xaa
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
test esi, esi
je 0x401f3e
test byte [esi + 0x70], 0x40
jne 0x401aad
mov eax, esi
call fcn.0040c890
cmp byte [esi + 0x127], 0
je case.default.0x401ad4
test byte [esi + 0x74], 2
je case.default.0x401ad4
movzx eax, byte [esi + 0x128]
cmp eax, 6
ja case.default.0x401ad4
jmp dword [eax*4 + 0x401f54]
test byte [esi + 0xe8], 7
je case.default.0x401ad4
test ebp, ebp
je 0x401af9
push ebx
mov edx, ebp
mov eax, esi
call fcn.0040baa0
add esp, 4
mov ecx, esi
call fcn.0040c3a0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00450655
add esp, 0x4c
ret
test byte [esi + 0xe8], 7
jne 0x401b29
cmp dword [esi + 0xcc], 5
jae case.default.0x401ad4
test ebp, ebp
je 0x401af9
push 0xf
jmp 0x401aed
mov eax, dword [esi + 0xe8]
mov ecx, eax
and cl, 7
cmp cl, 4
je case.default.0x401ad4
test ebp, ebp
je 0x401af9
test al, 4
jmp 0x401aea
mov eax, 3
test byte [esi + 0xe8], al
jne 0x401b5e
cmp dword [esi + 0xcc], eax
jae case.default.0x401ad4
test ebp, ebp
je 0x401af9
push 0x33
jmp 0x401aed
mov eax, dword [esi + 0xe8]
mov edx, eax
and dl, 3
cmp dl, 2
je case.default.0x401ad4
test ebp, ebp
je 0x401af9
test al, 2
jmp 0x401aea
test byte [esi + 0xe8], 1
jne 0x401b97
cmp dword [esi + 0xcc], 2
jae case.default.0x401ad4
test ebp, ebp
je 0x401af9
push edi
jmp 0x401aed
test byte [esi + 0xe8], 1
je 0x401af9
test byte [esi + 0x6c], 4
jne 0x401bc6
push str.Invalid_attempt_to_read_row_data
push esi
call fcn.00408540
add esp, 8
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xe0]
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], ecx
lea ebx, [esi + 0x78]
cmp dword [esi + 0x7c], 0
jne 0x401d16
cmp dword [esi + 0x110], 0
jne 0x401c89
jmp 0x401c00
push 0
mov ecx, esi
call fcn.00408850
add esp, 4
mov ecx, esi
call fcn.004086f0
mov dword [esi + 0x110], eax
mov edx, dword [esi + 0x120]
cmp edx, dword [esp + 0x50]
je 0x401c7c
mov eax, dword [esi + 0x44]
test eax, eax
je 0x401c37
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 0x401c77
push 1
push esi
call eax
add esp, 8
call fcn.0045546a
cmp dword [esi + 0x110], 0
je 0x401c00
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x110]
mov edi, dword [esi + 0xb0]
mov dword [esi + 0x7c], eax
mov dword [ebx], edi
cmp eax, ecx
jbe 0x401ca7
mov dword [esi + 0x7c], ecx
mov eax, dword [esi + 0x54]
mov ebp, dword [esi + 0x7c]
test eax, eax
je 0x401cbb
push ebp
push edi
push esi
call eax
add esp, 0xc
jmp 0x401cc9
push str.Call_to_NULL_read_function
push esi
call fcn.00408540
add esp, 8
test byte [esi + 0x120], 0x20
je 0x401ce3
mov eax, dword [esi + 0x70]
and eax, 0x300
cmp eax, 0x300
jne 0x401cec
jmp 0x401d09
test dword [esi + 0x70], 0x800
jne 0x401d09
mov eax, dword [esi + 0x114]
test edi, edi
jne 0x401cfa
xor eax, eax
jmp 0x401d03
mov edx, ebp
mov ecx, edi
call fcn.0040f3b0
mov dword [esi + 0x114], eax
mov ecx, dword [esi + 0x7c]
sub dword [esi + 0x110], ecx
mov ebp, dword [esp + 0x14]
push ebx
call fcn.0040dec0
add esp, 4
cmp eax, 1
je 0x401d95
test eax, eax
je 0x401d86
mov edi, dword [esi + 0x90]
test edi, edi
jne 0x401d37
mov edi, str.Decompression_error
mov eax, dword [esi + 0x44]
test eax, eax
je 0x401d45
push edi
push esi
call eax
add esp, 8
push edi
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 0x401d81
push 1
push esi
call eax
add esp, 8
call fcn.0045546a
cmp dword [esi + 0x88], 0
jne 0x401be1
jmp 0x401dc3
cmp dword [esi + 0x88], 0
jne 0x401dad
cmp dword [esi + 0x7c], 0
jne 0x401dad
cmp dword [esi + 0x110], 0
je 0x401dbb
push str.Extra_compressed_data
push esi
call fcn.00408540
add esp, 8
or dword [esi + 0x6c], 8
or dword [esi + 0x70], 0x20
movzx edx, byte [esi + 0x12a]
movzx eax, byte [esi + 0x12e]
mov ecx, dword [esi + 0xe4]
mov byte [esi + 0x10c], dl
movzx edx, byte [esi + 0x12b]
mov byte [esi + 0x10e], al
mov al, byte [esi + 0x12d]
lea edi, [esi + 0x104]
mov byte [esi + 0x10f], al
cmp al, 8
mov dword [edi], ecx
mov byte [esi + 0x10d], dl
movzx eax, al
jb 0x401e13
shr eax, 3
imul eax, ecx
jmp 0x401e1c
imul eax, ecx
add eax, 7
shr eax, 3
mov edx, dword [esi + 0xf0]
mov dword [esi + 0x108], eax
mov al, byte [edx]
test al, al
je 0x401e45
mov ecx, dword [esi + 0xec]
inc edx
push edx
movzx eax, al
inc ecx
push esi
mov edx, edi
call fcn.0040c1f0
add esp, 8
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xec]
inc eax
push eax
push ecx
push edx
call fcn.004502f0
add esp, 0xc
test byte [esi + 0x22c], 4
je 0x401e83
cmp byte [esi + 0x234], 0x40
jne 0x401e83
mov ecx, dword [esi + 0xf0]
inc ecx
mov eax, edi
call fcn.00408460
cmp dword [esi + 0x74], 0
jne 0x401e92
test dword [esi + 0x70], 0x400000
je 0x401e99
mov ecx, esi
call fcn.00404bb0
cmp byte [esi + 0x127], 0
je 0x401eec
test byte [esi + 0x74], 2
je 0x401eec
cmp byte [esi + 0x128], 6
jae 0x401eba
push esi
call fcn.0040bd90
add esp, 4
test ebp, ebp
je 0x401ed6
movzx eax, byte [esi + 0x128]
mov ecx, dword [esp + eax*4 + 0x34]
push ecx
mov edx, ebp
mov eax, esi
call fcn.0040baa0
add esp, 4
mov edx, dword [esp + 0x10]
test edx, edx
je 0x401f18
movzx eax, byte [esi + 0x128]
mov ecx, dword [esp + eax*4 + 0x18]
push ecx
jmp 0x401f0e
mov edx, dword [esp + 0x10]
test edx, edx
je 0x401f03
push 0xff
mov eax, esi
call fcn.0040baa0
add esp, 4
test ebp, ebp
je 0x401f18
push 0xff
mov edx, ebp
mov eax, esi
call fcn.0040baa0
add esp, 4
mov ecx, esi
call fcn.0040c3a0
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x401f3e
movzx edx, byte [esi + 0x128]
mov ecx, dword [esi + 0xe8]
push edx
push ecx
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450655
add esp, 0x4c
ret