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

Disassembly:
sub esp, 0x4fc
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
mov ebx, dword [esp + 0x504]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
push edi
mov eax, dword [ebx + 0x74]
mov edi, dword [esp + 0x50c]
mov dword [esp + 8], edi
test al, 1
je 0x6b0423
test al, 6
je 0x6aff53
push dword [esp + 0x510]
push ebx
call fcn.006aed90
push str.out_of_place
push ebx
call fcn.006ad760
add esp, 0x10
pop edi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x4fc
ret
push ebp
mov ebp, dword [esp + 0x514]
cmp ebp, 9
jae 0x6aff8d
push ebp
push ebx
call fcn.006aed90
push str.too_short
push ebx
call fcn.006ad760
add esp, 0x10
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x4fc
ret
movzx eax, word [ebx + 0x326]
test eax, 0x8000
je 0x6affbd
push ebp
push ebx
call fcn.006aed90
add esp, 8
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x4fc
ret
push esi
test al, 4
jne 0x6b03cf
mov edi, 0x51
lea eax, [esp + 0x30]
cmp ebp, edi
cmovb edi, ebp
push edi
push eax
push ebx
call fcn.006aee70
sub ebp, edi
lea edx, [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x518], ebp
xor esi, esi
mov edi, edi
cmp esi, edi
jae 0x6b004c
cmp byte [edx + esi], 0
lea ecx, [esi + 1]
je 0x6b004c
cmp ecx, edi
jae 0x6b004b
cmp byte [esp + esi + 0x31], 0
je 0x6b004b
lea eax, [ecx + 1]
cmp eax, edi
jae 0x6b0046
cmp byte [esp + esi + 0x32], 0
je 0x6b0046
lea eax, [ecx + 2]
cmp eax, edi
jae 0x6b0041
cmp byte [esp + esi + 0x33], 0
je 0x6b0041
lea eax, [ecx + 3]
cmp eax, edi
jae 0x6b003c
cmp byte [esp + esi + 0x34], 0
je 0x6b003c
add esi, 5
cmp esi, 0x50
jb 0x6afff0
jmp 0x6b004c
add esi, 4
jmp 0x6b004c
add esi, 3
jmp 0x6b004c
add esi, 2
jmp 0x6b004c
inc esi
lea eax, [esi - 1]
cmp eax, 0x4e
ja 0x6b03c1
lea eax, [esi + 1]
mov dword [esp + 0x1c], eax
cmp eax, edi
jae 0x6b03b3
cmp byte [esp + esi + 0x31], 0
jne 0x6b03b3
mov eax, dword [ebx + 0x78]
and eax, 0x100000
neg eax
sbb eax, eax
and eax, 0xf
push eax
push 0x69434350
push ebx
call fcn.006ae260
add esp, 0xc
test eax, eax
jne 0x6b03a3
lea eax, [esp + 0x32]
mov dword [esp + 0x18], 0x84
add eax, esi
sub edi, esi
mov dword [ebx + 0x84], eax
sub edi, 2
push 0
lea eax, [esp + 0x1c]
mov dword [ebx + 0x88], edi
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x524]
push eax
push 0x400
lea eax, [esp + 0x11c]
push eax
push ebx
call fcn.006ae370
add esp, 0x1c
cmp dword [esp + 0x18], 0
jne 0x6b037b
movzx ebp, byte [esp + 0x84]
lea esi, [ebx + 0x2dc]
movzx eax, byte [esp + 0x85]
shl ebp, 8
add ebp, eax
movzx eax, byte [esp + 0x86]
shl ebp, 8
add ebp, eax
movzx eax, byte [esp + 0x87]
shl ebp, 8
add ebp, eax
lea eax, [esp + 0x30]
push ebp
push eax
push esi
push ebx
mov dword [esp + 0x3c], ebp
call fcn.006a83f0
add esp, 0x10
test eax, eax
je 0x6b0385
movzx eax, byte [ebx + 0x157]
push eax
lea eax, [esp + 0x88]
push eax
push ebp
lea eax, [esp + 0x3c]
push eax
push esi
push ebx
call fcn.006a80e0
add esp, 0x18
test eax, eax
je 0x6b0385
movzx ecx, byte [esp + 0x104]
movzx eax, byte [esp + 0x105]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x106]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x107]
push 2
shl ecx, 8
add ecx, eax
push ebp
push ebx
mov dword [esp + 0x24], ecx
call fcn.006ae490
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x6b0371
mov edi, eax
lea esi, [esp + 0x84]
mov ecx, 0x21
add eax, 0x84
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esi + esi*2]
shl ecx, 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x524]
push eax
push 0x400
lea eax, [esp + 0x11c]
push eax
push ebx
call fcn.006ae370
add esp, 0x1c
cmp dword [esp + 0x18], 0
jne 0x6b037b
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x30]
push edi
push ebp
push eax
lea eax, [ebx + 0x2dc]
push eax
push ebx
call fcn.006a8440
add esp, 0x14
test eax, eax
je 0x6b0385
mov eax, ebp
sub eax, dword [esp + 0x28]
sub eax, 0x84
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 1
push eax
lea eax, [esi + 0xb]
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
push eax
lea eax, [esp + 0x524]
push eax
push 0x400
lea eax, [esp + 0x11c]
push eax
push ebx
call fcn.006ae370
mov ebp, dword [esp + 0x534]
add esp, 0x1c
test ebp, ebp
je 0x6b028e
test dword [ebx + 0x78], 0x100000
jne 0x6b028e
mov esi, str.extra_compressed_data
mov dword [esp + 0x14], esi
jmp 0x6b038c
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x6b0367
test ebp, ebp
je 0x6b02ac
push str.extra_compressed_data
push ebx
call fcn.006ad870
add esp, 8
push ebp
push ebx
call fcn.006aed90
push dword [ebx + 0xb4]
lea eax, [ebx + 0x2dc]
mov dword [esp + 0x2c], 1
push edi
push eax
push ebx
call fcn.006a8550
mov esi, dword [esp + 0x28]
add esp, 0x18
test esi, esi
je 0x6b0358
push 0
push 0x10
push esi
push ebx
call fcn.006a7b20
push dword [esp + 0x2c]
push ebx
call fcn.006ad3f0
add esp, 0x18
mov dword [esi + 0x74], eax
test eax, eax
je 0x6b0331
push dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
or dword [esi + 0xe8], 0x10
or dword [esi + 8], 0x1000
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edi
xor esi, esi
mov dword [ebx + 0x2b8], 0
jmp 0x6b0346
mov eax, 0x8000
mov esi, str.out_of_memory
or word [ebx + 0x326], ax
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x10]
push edi
push ebx
call fcn.006a7720
add esp, 8
test esi, esi
jne 0x6b0390
mov dword [ebx + 0x80], 0
jmp 0x6b040a
mov dword [esp + 0x14], str.truncated
jmp 0x6b038c
mov dword [esp + 0x14], str.out_of_memory
jmp 0x6b0385
mov eax, dword [ebx + 0x9c]
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x518]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
mov dword [ebx + 0x80], 0
jne 0x6b03e2
jmp 0x6b03d8
mov esi, dword [ebx + 0x9c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
jmp 0x6b03d8
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], str.bad_compression_method
jmp 0x6b03d8
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], str.bad_keyword
jmp 0x6b03d8
mov eax, str.too_many_profiles
mov dword [esp + 0x14], eax
push ebp
push ebx
call fcn.006aed90
add esp, 8
mov eax, 0x8000
or word [ebx + 0x326], ax
push edi
push ebx
call fcn.006a7720
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x6b040a
push eax
push ebx
call fcn.006ad760
add esp, 8
mov ecx, dword [esp + 0x508]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.006d1ba7
add esp, 0x4fc
ret
push str.missing_IHDR
push ebx
call fcn.006ad7d0
int3