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

Disassembly:
sub esp, 0x30
mov eax, dword [0x4372c0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], eax
mov byte [esp + 0x34], 0x49
mov byte [esp + 0x35], 0x44
mov byte [esp + 0x36], 0x41
mov byte [esp + 0x37], 0x54
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], 0x55
mov dword [esp + 0x30], 0xff
test esi, esi
je 0x407699
test byte [esi + 0x6c], 0x40
jne 0x4071cb
call fcn.0040daa0
cmp byte [esi + 0x123], 0
je case.default.0x4071f2
test byte [esi + 0x70], 2
je case.default.0x4071f2
movzx eax, byte [esi + 0x124]
cmp eax, 6
ja case.default.0x4071f2
jmp dword [eax*4 + 0x4076ac]
test byte [esi + 0xe4], 7
je case.default.0x4071f2
mov ecx, esi
call fcn.0040d6d0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041752a
add esp, 0x30
ret
test byte [esi + 0xe4], 7
jne 0x407236
cmp dword [esi + 0xc8], 5
jae case.default.0x4071f2
mov ecx, esi
call fcn.0040d6d0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041752a
add esp, 0x30
ret
mov ecx, dword [esi + 0xe4]
and cl, 7
cmp cl, 4
je case.default.0x4071f2
mov ecx, esi
call fcn.0040d6d0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041752a
add esp, 0x30
ret
mov eax, 3
test byte [esi + 0xe4], al
jne 0x407291
cmp dword [esi + 0xc8], eax
jae case.default.0x4071f2
mov ecx, esi
call fcn.0040d6d0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041752a
add esp, 0x30
ret
mov edx, dword [esi + 0xe4]
and dl, 3
cmp dl, 2
je case.default.0x4071f2
mov ecx, esi
call fcn.0040d6d0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041752a
add esp, 0x30
ret
test byte [esi + 0xe4], 1
jne 0x4072e5
cmp dword [esi + 0xc8], 2
jae case.default.0x4071f2
mov ecx, esi
call fcn.0040d6d0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041752a
add esp, 0x30
ret
test byte [esi + 0xe4], 1
je 0x407206
test byte [esi + 0x68], 4
jne 0x407320
push esi
mov ecx, str.Invalid_attempt_to_read_row_data
call fcn.00406390
add esp, 4
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xdc]
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
lea ebx, [esi + 0x74]
jmp 0x407340
cmp dword [esi + 0x78], 0
jne 0x4074e8
cmp dword [esi + 0x10c], 0
jne 0x40745d
lea ebp, [esi + 0x11c]
lea ecx, [ecx]
push 0
mov ecx, esi
call fcn.0040a160
mov eax, dword [esi + 0x50]
add esp, 4
test eax, eax
je 0x407382
push 4
lea edx, [esp + 0x14]
push edx
push esi
call eax
add esp, 0xc
jmp 0x407390
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.00406390
add esp, 4
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
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 0x4073c9
push esi
mov ecx, str.PNG_unsigned_integer_out_of_range.
call fcn.00406390
add esp, 4
mov eax, dword [esi + 0x50]
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], 0
test eax, eax
je 0x4073eb
push 4
push ebp
push esi
call eax
add esp, 0xc
jmp 0x4073f9
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.00406390
add esp, 4
test byte [ebp], 0x20
je 0x407410
mov eax, dword [esi + 0x6c]
and eax, 0x300
cmp eax, 0x300
jne 0x407419
jmp 0x407439
test dword [esi + 0x6c], 0x800
jne 0x407439
mov eax, dword [esi + 0x110]
test ebp, ebp
jne 0x407427
xor eax, eax
jmp 0x407433
mov edx, 4
mov ecx, ebp
call fcn.004140d0
mov dword [esi + 0x110], eax
mov ecx, dword [esp + 0x34]
cmp dword [ebp], ecx
je 0x407450
push esi
mov ecx, str.Not_enough_image_data
call fcn.00406390
add esp, 4
cmp dword [esi + 0x10c], 0
je 0x407360
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
mov edi, dword [esi + 0xac]
mov dword [esi + 0x78], eax
mov dword [ebx], edi
cmp eax, ecx
jbe 0x40747b
mov dword [esi + 0x78], ecx
mov eax, dword [esi + 0x50]
mov ebp, dword [esi + 0x78]
test eax, eax
je 0x40748f
push ebp
push edi
push esi
call eax
add esp, 0xc
jmp 0x40749d
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.00406390
add esp, 4
test byte [esi + 0x11c], 0x20
je 0x4074b9
mov edx, dword [esi + 0x6c]
and edx, 0x300
cmp edx, 0x300
jne 0x4074c2
jmp 0x4074df
test dword [esi + 0x6c], 0x800
jne 0x4074df
mov eax, dword [esi + 0x110]
test edi, edi
jne 0x4074d0
xor eax, eax
jmp 0x4074d9
mov edx, ebp
mov ecx, edi
call fcn.004140d0
mov dword [esi + 0x110], eax
mov eax, dword [esi + 0x78]
sub dword [esi + 0x10c], eax
push ebx
call fcn.00412be0
add esp, 4
cmp eax, 1
je 0x407523
test eax, eax
je 0x407514
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x407509
mov eax, str.Decompression_error
push esi
mov ecx, eax
call fcn.00406390
add esp, 4
cmp dword [esi + 0x84], 0
jne 0x407340
jmp 0x407551
cmp dword [esi + 0x84], 0
jne 0x40753b
cmp dword [esi + 0x78], 0
jne 0x40753b
cmp dword [esi + 0x10c], 0
je 0x407549
push esi
mov ecx, str.Extra_compressed_data
call fcn.00406390
add esp, 4
or dword [esi + 0x68], 8
or dword [esi + 0x6c], 0x20
movzx eax, byte [esi + 0x127]
mov cl, byte [esi + 0x126]
mov dl, byte [esi + 0x12a]
mov byte [esi + 0x109], al
mov al, byte [esi + 0x129]
mov byte [esi + 0x108], cl
mov ecx, dword [esi + 0xe0]
lea edi, [esi + 0x100]
mov byte [esi + 0x10b], al
cmp al, 8
mov dword [edi], ecx
mov byte [esi + 0x10a], dl
movzx eax, al
jb 0x40759f
shr eax, 3
imul eax, ecx
jmp 0x4075a8
imul eax, ecx
add eax, 7
shr eax, 3
mov edx, dword [esi + 0xec]
mov dword [esi + 0x104], eax
mov al, byte [edx]
test al, al
je 0x4075d1
mov ecx, dword [esi + 0xe8]
inc edx
push edx
movzx eax, al
inc ecx
push esi
mov edx, edi
call fcn.0040d520
add esp, 8
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xec]
mov edx, dword [esi + 0xe8]
inc eax
push eax
push ecx
push edx
call fcn.0041a760
add esp, 0xc
test byte [esi + 0x230], 4
je 0x40760f
cmp byte [esi + 0x238], 0x40
jne 0x40760f
mov ecx, dword [esi + 0xec]
inc ecx
mov eax, edi
call fcn.00412740
cmp dword [esi + 0x70], 0
jne 0x40761e
test dword [esi + 0x6c], 0x400000
je 0x407625
mov ecx, esi
call fcn.0040ed10
cmp byte [esi + 0x123], 0
je 0x40765c
test byte [esi + 0x70], 2
je 0x40765c
cmp byte [esi + 0x124], 6
jae 0x407646
push esi
call fcn.0040d0c0
add esp, 4
mov edx, dword [esp + 0x14]
test edx, edx
je 0x407673
movzx ecx, byte [esi + 0x124]
mov eax, dword [esp + ecx*4 + 0x18]
push eax
jmp 0x407669
mov edx, dword [esp + 0x14]
test edx, edx
je 0x407673
push 0xff
mov eax, esi
call fcn.0040cdd0
add esp, 4
mov ecx, esi
call fcn.0040d6d0
mov eax, dword [esi + 0x198]
test eax, eax
je 0x407699
movzx ecx, byte [esi + 0x124]
mov edx, dword [esi + 0xe4]
push ecx
push edx
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041752a
add esp, 0x30
ret