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

Disassembly:
sub esp, 0x34
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x30], eax
test esi, esi
mov eax, dword [esp + 0x38]
push ebx
push ebp
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 byte [esp + 0x38], 0
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
je 0x4f5653
test byte [esi + 0x6c], 0x40
jne 0x4f50ff
mov eax, esi
call fcn.00507b70
cmp byte [esi + 0x123], 0
je case.default.0x4f5126
test byte [esi + 0x70], 2
je case.default.0x4f5126
movzx eax, byte [esi + 0x124]
cmp eax, 6
ja case.default.0x4f5126
jmp dword [eax*4 + 0x4f5668]
test byte [esi + 0xe4], 7
je case.default.0x4f5126
mov ecx, esi
call fcn.00507720
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005787fd
add esp, 0x34
ret
test byte [esi + 0xe4], 7
jne 0x4f5169
cmp dword [esi + 0xc8], 5
jae case.default.0x4f5126
mov ecx, esi
call fcn.00507720
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005787fd
add esp, 0x34
ret
mov ecx, dword [esi + 0xe4]
and cl, 7
cmp cl, 4
je case.default.0x4f5126
mov ecx, esi
call fcn.00507720
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005787fd
add esp, 0x34
ret
mov eax, 3
test byte [esi + 0xe4], al
jne 0x4f51c2
cmp dword [esi + 0xc8], eax
jae case.default.0x4f5126
mov ecx, esi
call fcn.00507720
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005787fd
add esp, 0x34
ret
mov edx, dword [esi + 0xe4]
and dl, 3
cmp dl, 2
je case.default.0x4f5126
mov ecx, esi
call fcn.00507720
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005787fd
add esp, 0x34
ret
test byte [esi + 0xe4], 1
jne 0x4f5214
cmp dword [esi + 0xc8], 2
jae case.default.0x4f5126
mov ecx, esi
call fcn.00507720
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005787fd
add esp, 0x34
ret
test byte [esi + 0xe4], 1
je 0x4f513a
test byte [esi + 0x68], 4
jne 0x4f524e
push esi
mov ecx, str.Invalid_attempt_to_read_row_data
call fcn.004f99a0
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]
lea esp, [esp]
cmp dword [esi + 0x78], 0
jne 0x4f5498
cmp dword [esi + 0x10c], 0
jne 0x4f540a
lea ebp, [esi + 0x11c]
lea ecx, [ecx]
push 0
mov ecx, esi
call fcn.005041a0
mov eax, dword [esi + 0x50]
add esp, 4
test eax, eax
je 0x4f52b2
push 4
lea edx, [esp + 0x14]
push edx
push esi
call eax
add esp, 0xc
jmp 0x4f52c0
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.004f99a0
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 0x4f52f9
push esi
mov ecx, str.PNG_unsigned_integer_out_of_range.
call fcn.004f99a0
add esp, 4
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], 0
je 0x4f531b
push 4
push ebp
push esi
call eax
add esp, 0xc
jmp 0x4f5329
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.004f99a0
add esp, 4
test byte [ebp], 0x20
je 0x4f5340
mov eax, dword [esi + 0x6c]
and eax, 0x300
cmp eax, 0x300
jne 0x4f5349
jmp 0x4f5369
test dword [esi + 0x6c], 0x800
jne 0x4f5369
test ebp, ebp
mov eax, dword [esi + 0x110]
jne 0x4f5357
xor eax, eax
jmp 0x4f5363
mov edx, 4
mov ecx, ebp
call fcn.0050f490
mov dword [esi + 0x110], eax
mov eax, 4
lea ecx, [esp + 0x34]
mov edx, ebp
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4f538c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4f5374
test eax, eax
je 0x4f53e9
movzx ebx, byte [ecx]
movzx edi, byte [edx]
sub edi, ebx
jne 0x4f53db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4f53e9
movzx ebx, byte [ecx]
movzx edi, byte [edx]
sub edi, ebx
jne 0x4f53db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4f53e9
movzx ebx, byte [ecx]
movzx edi, byte [edx]
sub edi, ebx
jne 0x4f53db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4f53e9
movzx ecx, byte [ecx]
movzx edi, byte [edx]
sub edi, ecx
je 0x4f53e9
test edi, edi
mov eax, 1
jg 0x4f53eb
or eax, 0xffffffff
jmp 0x4f53eb
xor eax, eax
test eax, eax
je 0x4f53fd
push esi
mov ecx, str.Not_enough_image_data
call fcn.004f99a0
add esp, 4
cmp dword [esi + 0x10c], 0
je 0x4f5290
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
mov edi, dword [esi + 0xac]
lea ebx, [esi + 0x74]
mov dword [esi + 0x78], eax
mov dword [ebx], edi
jbe 0x4f542b
mov dword [esi + 0x78], ecx
mov eax, dword [esi + 0x50]
test eax, eax
mov ebp, dword [esi + 0x78]
je 0x4f543f
push ebp
push edi
push esi
call eax
add esp, 0xc
jmp 0x4f544d
push esi
mov ecx, str.Call_to_NULL_read_function
call fcn.004f99a0
add esp, 4
test byte [esi + 0x11c], 0x20
je 0x4f5469
mov edx, dword [esi + 0x6c]
and edx, 0x300
cmp edx, 0x300
jne 0x4f5472
jmp 0x4f548f
test dword [esi + 0x6c], 0x800
jne 0x4f548f
test edi, edi
mov eax, dword [esi + 0x110]
jne 0x4f5480
xor eax, eax
jmp 0x4f5489
mov edx, ebp
mov ecx, edi
call fcn.0050f490
mov dword [esi + 0x110], eax
mov eax, dword [esi + 0x78]
sub dword [esi + 0x10c], eax
push ebx
call fcn.00508090
add esp, 4
cmp eax, 1
je 0x4f54d3
test eax, eax
je 0x4f54c4
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x4f54b9
mov eax, str.Decompression_error
push esi
mov ecx, eax
call fcn.004f99a0
add esp, 4
cmp dword [esi + 0x84], 0
jne 0x4f5270
jmp 0x4f5501
cmp dword [esi + 0x84], 0
jne 0x4f54eb
cmp dword [esi + 0x78], 0
jne 0x4f54eb
cmp dword [esi + 0x10c], 0
je 0x4f54f9
push esi
mov ecx, str.Extra_compressed_data
call fcn.004f99a0
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 0x4f554f
shr eax, 3
imul eax, ecx
jmp 0x4f5558
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 0x4f5585
mov ecx, dword [esi + 0xe8]
add edx, 1
push edx
movzx eax, al
add ecx, 1
push esi
mov edx, edi
call fcn.00507560
add esp, 8
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xec]
mov edx, dword [esi + 0xe8]
add eax, 1
push eax
push ecx
push edx
call fcn.0057e7b0
add esp, 0xc
test byte [esi + 0x230], 4
je 0x4f55c7
cmp byte [esi + 0x238], 0x40
jne 0x4f55c7
mov ecx, dword [esi + 0xec]
add ecx, 1
mov eax, edi
call fcn.00503e90
cmp dword [esi + 0x70], 0
jne 0x4f55d6
test dword [esi + 0x6c], 0x400000
je 0x4f55df
push esi
call fcn.00500430
add esp, 4
cmp byte [esi + 0x123], 0
je 0x4f5616
test byte [esi + 0x70], 2
je 0x4f5616
cmp byte [esi + 0x124], 6
jae 0x4f5600
push esi
call fcn.005070f0
add esp, 4
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4f562d
movzx ecx, byte [esi + 0x124]
mov eax, dword [esp + ecx*4 + 0x18]
push eax
jmp 0x4f5623
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4f562d
push 0xff
mov eax, esi
call fcn.00506df0
add esp, 4
mov ecx, esi
call fcn.00507720
mov eax, dword [esi + 0x198]
test eax, eax
je 0x4f5653
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 ebp
pop ebx
xor ecx, esp
call fcn.005787fd
add esp, 0x34
ret