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

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
mov eax, dword [edi + 0x298]
test eax, eax
je 0x101689ab
cmp eax, 1
jne 0x10168979
mov edx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
jmp fcn.10168540
dec eax
mov dword [edi + 0x298], eax
cmp eax, 1
jne 0x101689ab
push str.No_space_in_chunk_cache_for_sPLT
push edi
call sym.WMCommon.dll_png_warning
mov edx, dword [esp + 0x11c]
add esp, 8
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
jmp fcn.10168540
mov eax, dword [edi + 0x74]
test al, 1
je 0x10168c21
test al, 4
je 0x101689ff
mov edx, dword [esp + 0x114]
call fcn.10168540
push str.out_of_place
test dword [edi + 0x78], 0x100000
je 0x10168c26
lea edx, [esp + 0x3c]
mov ecx, edi
call fcn.10157150
add esp, 4
lea eax, [esp + 0x38]
push eax
push edi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov ebp, dword [esp + 0x114]
push 2
lea edx, [ebp + 1]
call fcn.10165250
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
mov ecx, edi
test ebx, ebx
jne 0x10168a2d
mov edx, ebp
call fcn.10168540
push str.out_of_memory
jmp 0x101689cb
push ebp
mov edx, ebx
call fcn.10166520
add esp, 4
xor edx, edx
mov ecx, edi
call fcn.10168540
test eax, eax
jne 0x10168c16
mov byte [ebx + ebp], al
mov esi, ebx
cmp byte [ebx], al
je 0x10168a58
inc esi
cmp byte [esi], 0
jne 0x10168a52
lea eax, [ebp - 2]
inc esi
add eax, ebx
cmp esi, eax
jbe 0x10168a7b
push str.malformed_sPLT_chunk
push edi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov al, byte [esi]
xor ecx, ecx
inc esi
mov byte [esp + 0x13], al
cmp al, 8
mov byte [esp + 0x2c], al
mov eax, ebx
setne cl
sub eax, esi
add eax, ebp
xor edx, edx
lea ecx, [ecx*4 + 6]
div ecx
mov ebx, eax
mov dword [esp + 0x18], ebx
test edx, edx
je 0x10168ac1
push str.sPLT_chunk_has_bad_length
push edi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
cmp ebx, 0x19999999
jbe 0x10168ae2
push str.sPLT_chunk_too_long
push edi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
lea eax, [ebx + ebx*4]
mov dword [esp + 0x34], ebx
add eax, eax
push eax
push edi
call sym.WMCommon.dll_png_malloc_warn
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10168b1a
push str.sPLT_chunk_requires_too_much_memory
push edi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
xor ebp, ebp
test ebx, ebx
jle 0x10168bef
mov edi, dword [esp + 0x18]
xor ebx, ebx
nop word [eax + eax]
cmp byte [esp + 0x13], 8
movzx ecx, byte [esi]
mov edx, dword [esp + 0x14]
jne 0x10168b61
mov eax, edx
mov word [ebx + eax], cx
movzx eax, byte [esi + 1]
mov word [ebx + edx + 2], ax
movzx eax, byte [esi + 2]
mov word [ebx + edx + 4], ax
mov al, byte [esi + 3]
add esi, 4
movzx eax, al
jmp 0x10168bc0
movzx eax, byte [esi + 1]
shl ecx, 8
add cx, ax
mov eax, 0x100
mov word [ebx + edx], cx
movzx ecx, byte [esi + 2]
imul ecx, eax
movzx eax, byte [esi + 3]
add cx, ax
mov eax, 0x100
mov word [ebx + edx + 2], cx
movzx ecx, byte [esi + 4]
imul ecx, eax
movzx eax, byte [esi + 5]
add cx, ax
mov word [ebx + edx + 4], cx
lea edx, [esi + 7]
mov al, byte [esi + 6]
add esi, 8
movzx ecx, al
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edx]
mov edx, dword [esp + 0x14]
add cx, ax
movzx eax, cx
mov word [ebx + edx + 6], ax
inc ebp
movzx ecx, byte [esi]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [esi + 1]
add esi, 2
add cx, ax
mov word [ebx + edx + 8], cx
add ebx, 0xa
cmp ebp, edi
jl 0x10168b30
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 1
push eax
push dword [esp + 0x2c]
push edi
call sym.WMCommon.dll_png_set_sPLT
mov eax, dword [esp + 0x24]
push eax
push edi
call sym.WMCommon.dll_png_free
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
push str.missing_IHDR
push edi
call sym.WMCommon.dll_png_chunk_error
int3