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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebp
push edi
cmp ecx, 6
ja case.0x101347ec.21
jmp dword [ecx*4 + 0x10134bd4]
mov ebx, dword [esp + 0x2c]
lea eax, [ebx - 1]
cmp eax, 0xf
ja case.0x1013480a.3
movzx eax, byte [eax + 0x10134bf8]
jmp dword [eax*4 + 0x10134bf0]
mov byte [esi + 0x15b], 1
jmp 0x10134887
mov ebx, dword [esp + 0x2c]
cmp ebx, 8
je 0x1013482c
cmp ebx, 0x10
jne 0x10134b95
mov byte [esi + 0x15b], 3
jmp 0x10134887
mov ebx, dword [esp + 0x2c]
lea eax, [ebx - 1]
cmp eax, 7
ja case.0x1013484c.3
movzx eax, byte [eax + 0x10134c10]
jmp dword [eax*4 + 0x10134c08]
mov ebx, dword [esp + 0x2c]
cmp ebx, 8
je 0x10134865
cmp ebx, 0x10
jne 0x10134bad
mov byte [esi + 0x15b], 2
jmp 0x10134887
mov ebx, dword [esp + 0x2c]
cmp ebx, 8
je 0x10134880
cmp ebx, 0x10
jne 0x10134bb9
mov byte [esi + 0x15b], 4
cmp dword [esp + 0x34], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
je 0x101348db
mov eax, dword [esi + 0x50]
push str.Invalid_compression_type_specified
test eax, eax
je 0x101348a5
push esi
call eax
jmp 0x101348cc
push str.libpng_warning:__s
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 0xc
push 0x1017547c
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
mov ecx, dword [esp + 0x38]
add esp, 8
mov dword [esp + 0x34], 0
test byte [esi + 0x268], 4
je 0x10134902
test dword [esi + 0x74], 0x1000
jne 0x10134902
cmp ecx, 2
je 0x101348f7
cmp ecx, 6
jne 0x10134902
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x1013494d
jmp 0x10134906
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1013494d
mov eax, dword [esi + 0x50]
push str.Invalid_filter_type_specified
test eax, eax
je 0x1013491b
push esi
call eax
jmp 0x10134942
push str.libpng_warning:__s
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 0xc
push 0x1017547c
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 8
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1013499e
cmp eax, 1
je 0x1013499e
mov eax, dword [esi + 0x50]
push str.Invalid_interlace_type_specified
test eax, eax
je 0x1013496b
push esi
call eax
jmp 0x10134992
push str.libpng_warning:__s
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 0xc
push 0x1017547c
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
mov eax, 1
add esp, 8
mov dword [esp + 0x3c], eax
movzx ecx, byte [esi + 0x15b]
mov edx, dword [esp + 0x30]
mov byte [esi + 0x154], al
mov eax, dword [esp + 0x38]
mov byte [esi + 0x26c], al
mov eax, dword [esp + 0x34]
mov byte [esi + 0x28c], al
mov eax, dword [esp + 0x28]
mov dword [esi + 0x104], eax
movzx eax, bl
imul ecx, eax
mov byte [esi + 0x158], bl
mov byte [esi + 0x157], dl
mov dword [esi + 0x100], ebp
mov byte [esi + 0x15a], cl
cmp cl, 8
movzx eax, cl
mov ecx, dword [esp + 0x10]
jb 0x101349ff
shr eax, 3
imul eax, ecx
jmp 0x10134a08
imul eax, ecx
add eax, 7
shr eax, 3
mov dword [esi + 0x110], eax
mov al, byte [esi + 0x15b]
mov byte [esi + 0x15c], al
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 dword [esi + 0x10c], ecx
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x28]
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 eax, dword [esp + 0x34]
mov byte [esp + 0x1e], al
mov eax, dword [esp + 0x38]
mov byte [esp + 0x1b], cl
mov ecx, esi
mov byte [esp + 0x1d], dl
mov edx, 0x49484452
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x3c]
push 0xd
mov byte [esi + 0x159], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x24], al
call fcn.10134610
mov eax, dword [esi + 0x58]
add esp, 4
test eax, eax
je 0x10134bc5
push 0xd
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x20]
add esp, 0xc
test dword [esi + 0x11c], 0x20000000
je 0x10134ad2
and eax, 0x300
cmp eax, 0x300
je 0x10134aef
jmp 0x10134ad9
test eax, 0x800
jne 0x10134aef
mov ecx, dword [esi + 0x140]
push 0xd
call fcn.10169a90
add esp, 4
mov dword [esi + 0x140], eax
mov ecx, dword [esi + 0x140]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esi + 0x58]
mov dword [esi + 0x2c4], 0x82
mov byte [esp + 0x33], cl
test eax, eax
je 0x10134bc5
push 4
lea ecx, [esp + 0x34]
push ecx
push esi
call eax
add esp, 0xc
cmp byte [esi + 0x156], 0
jne 0x10134b6e
cmp byte [esi + 0x157], 3
je 0x10134b67
cmp byte [esi + 0x158], 8
jb 0x10134b67
mov byte [esi + 0x156], 0xf8
mov dword [esi + 0x74], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov byte [esi + 0x156], 8
pop edi
mov dword [esi + 0x74], 1
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, str.Invalid_image_color_type_specified
mov ecx, esi
call fcn.101318d0
mov edx, str.Invalid_bit_depth_for_grayscale_image
mov ecx, esi
call fcn.101318d0
mov edx, str.Invalid_bit_depth_for_RGB_image
mov ecx, esi
call fcn.101318d0
mov edx, str.Invalid_bit_depth_for_paletted_image
mov ecx, esi
call fcn.101318d0
mov edx, str.Invalid_bit_depth_for_grayscalealpha_image
mov ecx, esi
call fcn.101318d0
mov edx, str.Invalid_bit_depth_for_RGBA_image
mov ecx, esi
call fcn.101318d0
mov edx, str.Call_to_NULL_write_function
mov ecx, esi
call fcn.101318d0
nop dword [eax]
inc edi
adc edx, dword [eax]
jge 0x10134c25
adc edx, dword [eax]
sbb cl, byte [eax + 0x13]
adc byte [1393562440], dh
dec eax
adc edx, dword [eax]
jge 0x10134c35
adc edx, dword [eax]
outsb dx, byte [esi]
dec eax
adc edx, dword [eax]
adc dword [eax + 0x13], ecx
adc byte [ecx + 1053515], cl
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 [ecx], dl
dec eax
adc edx, dword [eax]
mov eax, dword [0x10134b]
add byte [ecx], al
add byte [ecx], al
add dword [ecx], eax
add ah, cl
int3
mov byte [esp + 3], dl
shr eax, 0x18
mov byte [esp], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 1], al
inc esp
and al, 1
mov eax, edx
push esi
mov esi, ecx
shr eax, 8
mov byte [esp + 6], al
test esi, esi
je 0x10134cf4
push 4
mov edx, 0x67414d41
call fcn.10134610
mov eax, dword [esi + 0x58]
add esp, 4
test eax, eax
je 0x10134cf9
push 4
lea ecx, [esp + 8]
push ecx
push esi
call eax
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x10]
add esp, 0xc
test dword [esi + 0x11c], 0x20000000
je 0x10134c94
and eax, 0x300
cmp eax, 0x300
je 0x10134cb1
jmp 0x10134c9b
test eax, 0x800
jne 0x10134cb1
mov ecx, dword [esi + 0x140]
push 4
call fcn.10169a90
add esp, 4
mov dword [esi + 0x140], eax
mov ecx, dword [esi + 0x140]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 9], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0xa], al
mov eax, dword [esi + 0x58]
mov dword [esi + 0x2c4], 0x82
mov byte [esp + 0xb], cl
test eax, eax
je 0x10134cf9
push 4
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
pop esi
add esp, 8
ret
mov edx, str.Call_to_NULL_write_function
mov ecx, esi
call fcn.101318d0
int3