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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x8bb040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ebp
push edi
cmp ecx, 6
ja case.0x72ed07.1
jmp dword [ecx*4 + 0x72f108]
mov ebx, dword [esp + 0x34]
lea eax, [ebx - 1]
cmp eax, 0xf
ja case.0x72ed25.3
movzx eax, byte [eax + 0x72f12c]
jmp dword [eax*4 + 0x72f124]
mov ebx, dword [esp + 0x34]
cmp ebx, 8
je 0x72ed3e
cmp ebx, 0x10
jne 0x72f0c9
mov byte [esi + 0x153], 3
jmp 0x72eda2
mov ebx, dword [esp + 0x34]
lea eax, [ebx - 1]
cmp eax, 7
ja case.0x72ed5e.3
movzx eax, byte [eax + 0x72f144]
jmp dword [eax*4 + 0x72f13c]
mov byte [esi + 0x153], 1
jmp 0x72eda2
mov ebx, dword [esp + 0x34]
cmp ebx, 8
je 0x72ed80
cmp ebx, 0x10
jne 0x72f0e1
mov byte [esi + 0x153], 2
jmp 0x72eda2
mov ebx, dword [esp + 0x34]
cmp ebx, 8
je 0x72ed9b
cmp ebx, 0x10
jne 0x72f0ed
mov byte [esi + 0x153], 4
cmp dword [esp + 0x3c], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
je 0x72edf6
mov eax, dword [esi + 0x50]
push str.Invalid_compression_type_specified
test eax, eax
je 0x72edc0
push esi
call eax
jmp 0x72ede7
push str.libpng_warning:__s
push 2
call edi
add esp, 4
push eax
call fcn.00712800
add esp, 0xc
push 0x80a2f4
push 2
call edi
add esp, 4
push eax
call fcn.00712800
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x3c], 0
test byte [esi + 0x254], 4
je 0x72ee1d
test dword [esi + 0x74], 0x1000
jne 0x72ee1d
cmp ecx, 2
je 0x72ee12
cmp ecx, 6
jne 0x72ee1d
mov eax, dword [esp + 0x40]
cmp eax, 0x40
je 0x72ee68
jmp 0x72ee21
mov eax, dword [esp + 0x40]
test eax, eax
je 0x72ee68
mov eax, dword [esi + 0x50]
push str.Invalid_filter_type_specified
test eax, eax
je 0x72ee36
push esi
call eax
jmp 0x72ee5d
push str.libpng_warning:__s
push 2
call edi
add esp, 4
push eax
call fcn.00712800
add esp, 0xc
push 0x80a2f4
push 2
call edi
add esp, 4
push eax
call fcn.00712800
add esp, 8
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x44]
test edx, edx
je 0x72eeb5
cmp edx, 1
je 0x72eeb5
mov eax, dword [esi + 0x50]
push str.Invalid_interlace_type_specified
test eax, eax
je 0x72ee86
push esi
call eax
jmp 0x72eead
push str.libpng_warning:__s
push 2
call edi
add esp, 4
push eax
call fcn.00712800
add esp, 0xc
push 0x80a2f4
push 2
call edi
add esp, 4
push eax
call fcn.00712800
add esp, 8
mov edx, 1
mov eax, dword [esp + 0x38]
movzx ecx, byte [esi + 0x153]
mov byte [esi + 0x14f], al
mov eax, dword [esp + 0x40]
mov byte [esi + 0x258], al
mov eax, dword [esp + 0x3c]
mov byte [esi + 0x278], al
mov eax, dword [esp + 0x30]
mov dword [esi + 0x104], eax
movzx eax, bl
imul ecx, eax
mov byte [esi + 0x150], bl
mov byte [esi + 0x14c], dl
mov dword [esi + 0x100], ebp
mov byte [esi + 0x152], cl
cmp cl, 8
movzx eax, cl
mov ecx, dword [esp + 0x14]
jb 0x72ef16
shr eax, 3
imul eax, ecx
jmp 0x72ef1f
imul eax, ecx
add eax, 7
shr eax, 3
mov dword [esi + 0x110], eax
mov al, byte [esi + 0x153]
mov byte [esi + 0x154], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x1a], al
mov dword [esi + 0x10c], ecx
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x30]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x1d], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x1e], al
mov eax, dword [esp + 0x38]
mov byte [esp + 0x21], al
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x1f], cl
mov ecx, esi
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x40]
mov byte [esp + 0x24], dl
mov edx, 0x49484452
push 0xd
mov byte [esi + 0x151], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x27], al
call fcn.0072e490
mov eax, dword [esi + 0x58]
add esp, 4
test eax, eax
je 0x72f0f9
push 0xd
lea ecx, [esp + 0x1c]
push ecx
push esi
call eax
mov eax, dword [esi + 0x78]
lea ebx, [esp + 0x24]
add esp, 0xc
mov edi, 0xd
test dword [esi + 0x11c], 0x20000000
je 0x72efee
and eax, 0x300
cmp eax, 0x300
je 0x72f025
jmp 0x72eff5
test eax, 0x800
jne 0x72f025
mov eax, dword [esi + 0x138]
jmp 0x72f000
mov edx, ebx
mov ecx, eax
test edi, edi
jne 0x72f016
push 0xffffffffffffffff
call fcn.007152e0
add esp, 4
dec ebx
inc edi
jmp 0x72f000
push edi
call fcn.007152e0
add esp, 4
mov dword [esi + 0x138], eax
mov ecx, dword [esi + 0x138]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x16], al
mov eax, dword [esi + 0x58]
mov dword [esi + 0x2b0], 0x82
mov byte [esp + 0x17], cl
test eax, eax
je 0x72f0f9
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
cmp byte [esi + 0x14e], 0
jne 0x72f097
cmp byte [esi + 0x14f], 3
je 0x72f090
cmp byte [esi + 0x150], 8
jb 0x72f090
mov byte [esi + 0x14e], 0xf8
jmp 0x72f097
mov byte [esi + 0x14e], 8
mov ecx, dword [esp + 0x28]
pop edi
mov dword [esi + 0x74], 1
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0073297b
add esp, 0x1c
ret
mov edx, str.Invalid_image_color_type_specified
mov ecx, esi
call fcn.0071f650
mov edx, str.Invalid_bit_depth_for_grayscale_image
mov ecx, esi
call fcn.0071f650
mov edx, str.Invalid_bit_depth_for_RGB_image
mov ecx, esi
call fcn.0071f650
mov edx, str.Invalid_bit_depth_for_paletted_image
mov ecx, esi
call fcn.0071f650
mov edx, str.Invalid_bit_depth_for_grayscalealpha_image
mov ecx, esi
call fcn.0071f650
mov edx, str.Invalid_bit_depth_for_RGBA_image
mov ecx, esi
call fcn.0071f650
mov edx, str.Call_to_NULL_write_function
mov ecx, esi
call fcn.0071f650
lea ecx, [ecx]
push cs
in eax, dx
jb 0x72f10c
mov cl, 0xf0
jb 7532816
sub al, 0xed
jb 7532820
inc edi
in eax, dx
jb 0x72f118
outsb dx, byte [esi]
in eax, dx
jb 0x72f11c
mov cl, 0xf0
jb 7532832
mov ebp, ebp
jb 7532836
in eax, dx
jb 7532840
mov ebp, 0x72f0
add byte [ecx], al
add byte [ecx], al
add dword [ecx], eax
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ebp - 19], ah
jb 7532864
aad 0xf0
jb 7532868
add byte [eax], al
add dword [eax], eax
add dword [ecx], eax
add dword [eax], eax
int3