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

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x2c]
test esi, esi
push edi
je 0x6fc1d4
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x6fc1a8
mov ecx, esi
call fcn.0054f560
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esi + 4]
call fcn.0054f1b0
mov ebp, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
push ebp
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0059c890
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
add esp, 0xc
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x6fc1ee
mov ebp, dword [esp + 0x44]
mov eax, ebp
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov edi, dword [0xb6f03c]
test edi, edi
je 0x6fc203
lea eax, [edi + 0x30]
mov esi, eax
mov edx, eax
mov ecx, eax
jmp 0x6fc20e
mov eax, 0xb6f02c
mov esi, eax
mov edx, eax
mov ecx, eax
fld dword [ecx + 4]
fsub dword [esp + 0x14]
fld dword [edx + 4]
fsub dword [esp + 0x14]
fmulp st(1)
fld dword [esi]
fsub dword [esp + 0x10]
fld dword [eax]
fsub dword [esp + 0x10]
fmulp st(1)
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fcompp
fnstsw ax
test ah, 5
jnp 0x6fc4bb
push ebx
mov bl, byte [esp + 0x6c]
test bl, bl
je 0x6fc2d6
test edi, edi
lea eax, [edi + 0x30]
jne 0x6fc25c
mov eax, 0xb6f02c
fld dword [eax]
fsub dword [esp + 0x14]
fld dword [eax + 4]
fsub dword [esp + 0x18]
fld dword [eax + 8]
fsub dword [esp + 0x1c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fst dword [esp + 0x10]
fcomp dword [0x85f070]
fnstsw ax
test ah, 5
jnp 0x6fc4ba
fld dword [esp + 0x10]
fcomp dword [0x858b40]
fnstsw ax
test ah, 5
jp 0x6fc2d6
movzx ecx, byte [esp + 0x44]
fld dword [esp + 0x10]
fsub dword [0x85f070]
mov dword [esp + 0x10], ecx
fimul dword [esp + 0x10]
fmul dword [0x863e0c]
call fcn.00821b40
mov byte [esp + 0x44], al
jmp 0x6fc2da
mov al, byte [esp + 0x44]
mov esi, dword [esp + 0x30]
xor ecx, ecx
movzx edx, cx
imul edx, edx, 0x3c
cmp dword [edx + 0xc3e064], esi
je 0x6fc2f5
inc ecx
cmp cx, 0x40
jb 0x6fc2e0
cmp cx, 0x40
mov dl, 1
jne 0x6fc470
test al, al
je 0x6fc4ba
xor ecx, ecx
jmp 0x6fc310
movzx eax, cx
imul eax, eax, 0x3c
mov edi, dword [eax + 0xc3e064]
test edi, edi
je 0x6fc327
inc ecx
cmp cx, 0x40
jb 0x6fc310
cmp cx, 0x40
je 0x6fc4ba
mov al, byte [esp + 0x74]
movzx ecx, cx
imul ecx, ecx, 0x3c
test al, al
jne 0x6fc348
mov byte [ecx + 0xc3e088], 0
jmp 0x6fc34f
mov byte [ecx + 0xc3e088], 0xff
or byte [ecx + 0xc3e08c], 2
and byte [ecx + 0xc3e08e], 0xfb
mov eax, dword [0xc3e038]
inc eax
mov byte [ecx + 0xc3e08d], dl
mov dword [ecx + 0xc3e064], esi
mov dword [0xc3e038], eax
mov al, byte [esp + 0x38]
mov byte [ecx + 0xc3e084], al
mov al, byte [esp + 0x3c]
mov byte [ecx + 0xc3e085], al
mov al, byte [esp + 0x40]
mov byte [ecx + 0xc3e086], al
mov al, byte [esp + 0x44]
mov byte [ecx + 0xc3e087], al
mov esi, dword [ebp]
lea eax, [ecx + 0xc3e058]
mov dword [eax], esi
mov esi, dword [ebp + 4]
mov dword [eax + 4], esi
mov esi, dword [ebp + 8]
mov dword [eax + 8], esi
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc3e06c], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 0xc3e070], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0xc3e074], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 0xc3e068], eax
mov al, byte [esp + 0x58]
mov byte [ecx + 0xc3e08a], al
mov al, byte [esp + 0x5c]
mov byte [ecx + 0xc3e08b], al
mov al, byte [ecx + 0xc3e08c]
xor al, byte [esp + 0x60]
mov byte [ecx + 0xc3e089], dl
and al, dl
xor byte [ecx + 0xc3e08c], al
mov eax, dword [esp + 0x70]
mov dword [ecx + 0xc3e078], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 0xc3e080], eax
mov al, byte [esp + 0x80]
and al, dl
mov dl, byte [esp + 0x7c]
shl al, 2
and dl, 1
or al, dl
mov dl, byte [ecx + 0xc3e08e]
shl al, 1
and dl, 0xf4
or al, dl
mov edx, dword [esp + 0x34]
and bl, 1
or al, bl
test edx, edx
mov byte [ecx + 0xc3e08e], al
je 0x6fc4a8
or al, 0x10
mov byte [ecx + 0xc3e08e], al
lea eax, [ecx + 0xc3e090]
push eax
mov ecx, edx
mov dword [eax], edx
call fcn.00571b70
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
movzx ecx, cx
imul ecx, ecx, 0x3c
cmp byte [ecx + 0xc3e088], 0
jne 0x6fc374
test al, al
jne 0x6fc374
mov eax, dword [0xc3e038]
pop ebx
pop edi
dec eax
pop esi
mov dword [ecx + 0xc3e064], 0
mov dword [0xc3e038], eax
pop ebp
add esp, 0x1c
ret
and al, 0xef
mov byte [ecx + 0xc3e08e], al
mov dword [ecx + 0xc3e090], 0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret