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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebp, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [ebp], 0
mov dword [esi], 0
mov dword [ebx + 0x84], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x50], 6
mov dword [esp + 0x54], 8
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [ebx + 0x58]
mov dword [esp + 4], eax
lea edi, [esp + 0x44]
mov dword [esp], edi
call fcn.6c28dbd8
cmp dword [esp + 0x50], 3
je 0x6c28f174
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x6c28f174
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x6c28f19c
mov eax, dword [ebx + 0x84]
test eax, eax
jne 0x6c28f167
cmp dword [ebx], 2
jbe 0x6c28f1dc
mov dword [ebx + 0x84], 0x3d
mov al, 0x3d
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x5c]
dec eax
cmp eax, 0xff
jbe 0x6c28f141
mov dword [ebx + 0x84], 0x44
mov eax, 0x44
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x38]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 8], edx
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.6c28ebe0
mov dword [ebx + 0x84], eax
jmp 0x6c28f14e
cmp dword [ebx + 0x60], 1
jbe 0x6c28f1fc
mov dword [ebx + 0x84], 0x47
mov eax, 0x47
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x54]
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
call fcn.6c288f70
mov dword [ebx + 0x84], eax
test eax, eax
jne 0x6c28f167
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
call fcn.6c288f70
mov dword [ebx + 0x84], eax
test eax, eax
jne 0x6c28f167
lea edx, [ebx + 0x38]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x50]
mov eax, dword [esp + 0x3c]
call fcn.6c28a04c
test eax, eax
jne 0x6c28f384
cmp dword [esp + 0x34], 6
ja 0x6c28f37d
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
imul eax, dword [edx*4 + 0x6c375c00]
imul eax, dword [esp + 0xbc]
imul eax, dword [esp + 0xc0]
lea edx, [eax + 7]
shr edx, 3
mov dword [esp], edx
mov dword [esp + 0x24], edx
call sub.msvcrt.dll_malloc
mov dword [esp + 0x34], eax
test eax, eax
mov edx, dword [esp + 0x24]
je 0x6c28f5a1
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
lea edx, [esp + 0x50]
mov dword [esp + 8], edx
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.6c28dc8c
mov dword [ebx + 0x84], eax
test eax, eax
jne 0x6c28f31c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov edx, dword [esp + 0xc0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [esp], edx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x8c]
lea eax, [esp + 0x88]
call fcn.6c28ce84
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov ecx, dword [ebx + 0x84]
test ecx, ecx
je 0x6c28f3c0
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.6c28d8f0
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x70]
mov dword [ebp], eax
mov eax, dword [esp + 0x74]
mov dword [esi], eax
mov eax, dword [ebx + 0x84]
jmp 0x6c28f167
xor edx, edx
jmp 0x6c28f285
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov edx, dword [esp + 0xc0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [esp], edx
mov ecx, dword [esp + 0xb8]
lea edx, [esp + 0x8c]
lea eax, [esp + 0x88]
call fcn.6c28ce84
jmp 0x6c28f328
mov edx, 0x89
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov edx, 0x50
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov edx, 0x4e
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov edx, 0x47
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov edx, 0xd
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov edx, 0xa
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov edx, 0x1a
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov edx, 0xa
lea eax, [esp + 0x70]
call fcn.6c28a0c0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x34], edx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov edx, dword [esp + 0xbc]
lea eax, [esp + 0x7c]
call fcn.6c289fc0
mov edx, dword [esp + 0xc0]
lea eax, [esp + 0x7c]
call fcn.6c289fc0
mov eax, edi
movzx edx, al
lea eax, [esp + 0x7c]
call fcn.6c28a0c0
movzx edx, byte [esp + 0x34]
lea eax, [esp + 0x7c]
call fcn.6c28a0c0
xor edx, edx
lea eax, [esp + 0x7c]
call fcn.6c28a0c0
xor edx, edx
lea eax, [esp + 0x7c]
call fcn.6c28a0c0
movzx edx, byte [esp + 0x30]
lea eax, [esp + 0x7c]
call fcn.6c28a0c0
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov edx, str.IHDR
lea eax, [esp + 0x70]
call fcn.6c28d880
lea eax, [esp + 0x7c]
call fcn.6c289df4
mov eax, dword [esp + 0x50]
cmp eax, 3
je 0x6c28f648
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x6c28f50d
cmp eax, 2
je 0x6c28f609
cmp eax, 6
je 0x6c28f609
cmp eax, 3
je 0x6c28f662
test eax, eax
jne 0x6c28f597
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x6c28f623
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
test ecx, ecx
je 0x6c28f635
lea eax, [esp + 0x7c]
mov dword [esp], eax
call ecx
mov edi, eax
test edi, edi
je 0x6c28f5b8
lea eax, [esp + 0x7c]
call fcn.6c289df4
mov dword [ebx + 0x84], edi
jmp 0x6c28f34a
cmp eax, 2
jne 0x6c28f526
jmp 0x6c28f51a
test edx, edx
je 0x6c28f2a1
mov dword [ebx + 0x84], 0x53
jmp 0x6c28f31c
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov edx, str.IDAT
lea eax, [esp + 0x70]
call fcn.6c28d880
mov edi, eax
lea eax, [esp + 0x7c]
call fcn.6c289df4
mov dword [ebx + 0x84], edi
test edi, edi
jne 0x6c28f34a
mov dword [esp], 0
xor ecx, ecx
mov edx, str.IEND
lea eax, [esp + 0x70]
call fcn.6c28d880
jmp 0x6c28f34a
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x58]
lea eax, [esp + 0x70]
call fcn.6c2e1994
mov eax, dword [esp + 0x50]
jmp 0x6c28f50d
lea edx, [esp + 0x50]
lea eax, [esp + 0x70]
call fcn.6c2e1a0c
jmp 0x6c28f526
lea edx, [esp + 0x7c]
mov dword [esp], edx
call fcn.6c28c538
mov edi, eax
jmp 0x6c28f57f
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x58]
lea eax, [esp + 0x70]
call fcn.6c2e1994
mov eax, dword [esp + 0x50]
jmp 0x6c28f4f4
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x58]
test edx, edx
je 0x6c28f526
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
xor al, al
xor edx, edx
mov dword [esp + 0x2c], ebp
mov ebp, ebx
test edx, edx
jne 0x6c28f6cc
lea edi, [eax*4]
mov bl, byte [ecx + edi + 3]
test bl, bl
jne 0x6c28f6d7
movzx eax, byte [ecx + edi]
mov dword [esp + 0x38], eax
movzx edx, byte [ecx + edi + 1]
mov dword [esp + 0x34], edx
movzx edi, byte [ecx + edi + 2]
mov dword [esp + 0x30], edi
xor eax, eax
mov edx, 1
lea edi, [eax*4]
mov bl, byte [ecx + edi + 3]
inc bl
jne 0x6c28f734
test edx, edx
je 0x6c28f6ee
movzx edx, byte [ecx + edi]
cmp edx, dword [esp + 0x38]
je 0x6c28f719
mov edx, 1
inc eax
cmp dword [esp + 0x28], eax
jne 0x6c28f698
mov ebx, ebp
mov ebp, dword [esp + 0x2c]
test edx, edx
je 0x6c28f526
lea edx, [esp + 0x50]
lea eax, [esp + 0x70]
call fcn.6c2e1a0c
mov eax, dword [esp + 0x50]
jmp 0x6c28f516
movzx ebx, byte [ecx + edi + 1]
mov edx, 1
cmp ebx, dword [esp + 0x34]
jne 0x6c28f6ee
movzx ebx, byte [ecx + edi + 2]
cmp ebx, dword [esp + 0x30]
jne 0x6c28f6ee
mov ebx, ebp
mov ebp, dword [esp + 0x2c]
jmp 0x6c28f703