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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6ffb13
sub esp, 0x54
xor eax, eax
mov ecx, dword [esp + 0x5c]
jmp 0x6ff7aa
mov edx, dword [esp + 0x2c]
lea eax, [edx + 1]
mov ecx, edi
mov dword [esp + 0x34], ecx
cmp eax, 0xc8
jge 0x6ffa40
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.006b8e20
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x6ffa37
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
lea eax, [0x79f7e0]
mov dword [esp], eax
call fcn.0040c160
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jae 0x6ffb0d
mov ebx, dword [esp + 0x38]
mov ebp, dword [ebx + eax*4]
lea esi, [eax + 1]
cmp ecx, esi
jbe 0x6ffb06
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 4]
mov esi, dword [esi]
mov ebx, dword [ebx + eax*4 + 4]
cmp ebx, edx
ja 0x6ffaff
cmp ebp, ebx
ja 0x6ffaf6
mov dword [esp + 0x3c], edi
sub ebx, ebp
mov dword [edi + 4], ebx
mov edx, dword [0xaec8c0]
neg ebx
sar ebx, 0x1f
and ebx, ebp
add ebx, esi
test edx, edx
jne 0x6ffa2b
mov dword [edi], ebx
lea eax, [0x79f7e0]
mov dword [esp], eax
call fcn.0040c160
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx]
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x40]
mov dword [edi + 4], eax
mov edx, dword [0xaec8c0]
test edx, edx
jne 0x6ffa1b
mov dword [edi], ecx
test eax, eax
je 0x6ff958
lea eax, [0x79f7e0]
mov dword [esp], eax
call fcn.0040c160
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + ebx*4]
sub esi, ebx
cmp edx, esi
jb 0x6ffaef
mov ebp, dword [ebp + ebx*4 + 4]
mov edi, dword [esp + 0x68]
add ebp, edi
cmp edx, ebp
jb 0x6ffae6
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
sub edx, ebp
mov eax, edx
neg edx
sar edx, 0x1f
and edx, ebp
add ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
call fcn.0044d9c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x48]
mov dword [edi + 4], ecx
mov ecx, dword [0xaec8c0]
test ecx, ecx
jne 0x6ff94e
mov dword [edi], eax
jmp 0x6ff7a1
call fcn.00466130
jmp 0x6ff7a1
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409950
mov eax, dword [esp + 8]
lea ecx, [0x79f7e0]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x80cc8b]
mov dword [esp], eax
mov dword [esp + 4], 0x14
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004dc120
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
lea edx, [0x7b28c0]
mov dword [esp], edx
call fcn.0040c160
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
mov eax, dword [0xaec8c0]
test eax, eax
jne 0x6ffa10
mov eax, dword [esp + 0x30]
mov dword [edi], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], eax
lea eax, [0x8ac7c0]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x54
ret
mov eax, dword [esp + 0x30]
call fcn.00466130
jmp 0x6ff9f6
mov edx, eax
mov eax, ecx
call fcn.00466130
mov eax, edx
jmp 0x6ff8a5
mov eax, ebx
call fcn.00466130
jmp 0x6ff861
mov eax, dword [esp + 0x2c]
cmp eax, 0xc8
jne 0x6ffaca
lea eax, [0x79f7e0]
mov dword [esp], eax
call fcn.0040c160
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea ecx, [0x79eda0]
mov dword [esp + 0x4c], ecx
lea ecx, [0x8a7134]
mov dword [esp + 0x50], ecx
lea ecx, [0x82002b]
mov dword [esp], ecx
mov dword [esp + 4], 0x41
lea ecx, [esp + 0x4c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004d94d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x54
ret
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x54
ret
mov eax, ebp
mov ecx, edx
call fcn.00466210
mov ecx, esi
call fcn.004661d0
mov eax, ebp
mov ecx, ebx
call fcn.00466210
mov ecx, ebx
call fcn.004661d0
mov eax, esi
call fcn.004661b0
call fcn.004661b0
nop
call fcn.00464bd0
jmp fcn.006ff780