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

Disassembly:
sub esp, 0xb8
mov eax, dword [0xc1703c]
mov ecx, dword [eax + 0x60]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x5c], eax
cdq
sub eax, edx
sar eax, 1
push ebx
mov dword [esp + 0x50], eax
push ebp
mov eax, ecx
push esi
cdq
push edi
sub eax, edx
xor ebx, ebx
mov dword [esp + 0x70], ecx
mov ecx, dword [0xc97b24]
sar eax, 1
push ebx
push 8
mov dword [esp + 0x54], eax
call dword [ecx + 0x20]
mov edx, dword [0xc97b24]
push 1
push 0xc
call dword [edx + 0x20]
mov eax, dword [0xc97b24]
push 2
push 0xa
call dword [eax + 0x20]
mov ecx, dword [0xc97b24]
push 2
push 0xb
call dword [ecx + 0x20]
mov edx, dword [0xc97b24]
push 1
push 6
call dword [edx + 0x20]
mov esi, dword [esp + 0x64]
add esp, 0x28
mov byte [esp + 0x17], 1
mov edi, 0xc3e090
mov dword [esp + 0x58], 0x40
mov edi, edi
cmp dword [edi - 0x2c], ebx
je 0x6fb605
cmp byte [edi - 8], bl
ja 0x6faf67
cmp byte [edi - 9], bl
jbe 0x6fb605
mov ebp, dword [edi]
cmp ebp, ebx
je 0x6fafda
mov al, byte [ebp + 0x36]
and al, 7
cmp al, 2
jne 0x6fafb0
cmp dword [ebp + 0x594], 9
jne 0x6fafb0
lea ecx, [edi - 0x38]
push ecx
add ebp, 0x5cc
push ebp
lea edx, [esp + 0x8c]
push edx
call fcn.0059c890
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
add esp, 0xc
mov dword [esp + 0x34], eax
jmp 0x6faff1
cmp dword [ebp + 0x14], ebx
jne 0x6fafc8
mov ecx, ebp
call fcn.0054f560
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp + 4]
call fcn.0054f1b0
mov ebp, dword [ebp + 0x14]
lea edx, [edi - 0x38]
push edx
push ebp
lea eax, [esp + 0x98]
push eax
jmp 0x6faf92
lea ecx, [edi - 0x38]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
push 1
push 1
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0070ce30
add esp, 0x18
test al, al
je 0x6fb601
fld dword [esp + 0x20]
mov cl, byte [edi - 4]
fcomp dword [0x858b50]
and cl, 0xfd
mov byte [edi - 4], cl
fnstsw ax
test ah, 5
jnp 0x6fb062
fld dword [esp + 0x24]
fcomp dword [0x858b50]
fnstsw ax
test ah, 5
jnp 0x6fb062
fild dword [esp + 0x6c]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jnp 0x6fb062
fild dword [esp + 0x70]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x6fb068
or cl, 2
mov byte [edi - 4], cl
mov cl, byte [edi - 8]
cmp cl, bl
jbe 0x6fb605
fld dword [esp + 0x28]
fcomp dword [edi - 0x1c]
fnstsw ax
test ah, 5
jp 0x6fb605
fld dword [0x858624]
fdiv dword [esp + 0x28]
fstp dword [esp + 0x10]
fld dword [edi - 0x1c]
fmul dword [0x858b8c]
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x6fb0b3
fstp st(0)
fld dword [0x858624]
jmp 0x6fb0c1
fld dword [esp + 0x28]
fsub st(1)
fdivrp st(1)
fsubr dword [0x858624]
movzx eax, cl
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul st(1)
call fcn.00821b40
fstp st(0)
mov ebp, eax
xor eax, eax
mov al, byte [edi - 4]
and eax, 1
sub eax, ebx
je 0x6fb0fe
dec eax
jne 0x6fb119
cmp byte [esp + 0x17], bl
je 0x6fb119
mov ecx, dword [0xc97b24]
push ebx
push 6
call dword [ecx + 0x20]
mov byte [esp + 0x1f], bl
jmp 0x6fb116
cmp byte [esp + 0x17], bl
jne 0x6fb119
mov edx, dword [0xc97b24]
push 1
push 6
call dword [edx + 0x20]
mov byte [esp + 0x1f], 1
add esp, 8
cmp dword [edi - 0x28], ebx
je 0x6fb2ee
fld dword [esp + 0x28]
fcomp dword [0x858a10]
fnstsw ax
test ah, 5
jp 0x6fb139
fld dword [esp + 0x28]
jmp 0x6fb13f
fld dword [0x858a10]
fmul dword [0xc81300]
mov eax, dword [edi - 0x2c]
cmp eax, 1
fmul dword [0x859038]
fadd dword [0x858624]
fstp dword [esp + 0x18]
jne 0x6fb172
mov eax, dword [0xc1703c]
fld dword [eax + 0x84]
fmul dword [0x858ef0]
fstp dword [esp + 0x28]
mov ecx, dword [0xc97b24]
push 1
push 6
call dword [ecx + 0x20]
mov edx, dword [edi - 0x28]
mov eax, dword [edx]
mov ecx, dword [0xc97b24]
push eax
push 1
call dword [ecx + 0x20]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [0xb6f03c]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
je 0x6fb1b9
add eax, 0x30
jmp 0x6fb1be
mov eax, 0xb6f02c
fld dword [esp + 0x34]
lea ecx, [esp + 0x60]
fsub dword [eax + 8]
fld dword [esp + 0x30]
fsub dword [eax + 4]
fld dword [esp + 0x2c]
fsub dword [eax]
fstp dword [esp + 0x60]
fstp dword [esp + 0x64]
fstp dword [esp + 0x68]
call fcn.0059c910
fld dword [edi - 0x18]
push 1
fld dword [esp + 0x64]
push 1
fmul st(1)
lea edx, [esp + 0x5c]
fld dword [esp + 0x6c]
push edx
fmul st(2)
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
fstp dword [esp + 0x88]
fld dword [esp + 0x78]
push ecx
fmul st(2)
lea edx, [esp + 0x54]
push edx
fstp dword [esp + 0x94]
fld dword [esp + 0x58]
fsub st(1)
fstp dword [esp + 0x58]
fstp st(0)
fstp st(0)
fld dword [esp + 0x5c]
fsub dword [esp + 0x90]
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fsub dword [esp + 0x94]
fstp dword [esp + 0x60]
call fcn.0070ce30
add esp, 0x18
test al, al
je 0x6fb2ee
fld dword [0x858624]
movzx eax, byte [edi - 0xa]
fdiv dword [esp + 0x18]
push 0xff
push ebx
push ecx
fld dword [esp + 0x1c]
fmul dword [0x858ba4]
mov dword [esp + 0x1c], eax
fstp dword [esp]
push ebp
fild dword [esp + 0x20]
fmul st(1)
call fcn.00821b40
movzx ecx, byte [edi - 0xb]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
push eax
fmul st(1)
call fcn.00821b40
movzx edx, byte [edi - 0xc]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
push eax
fmul st(1)
call fcn.00821b40
fstp st(0)
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
fmul dword [edi - 0x24]
mov edx, dword [esp + 0x38]
fmul dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x44]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x74]
fmul dword [edi - 0x24]
fstp dword [esp]
push eax
push ecx
push edx
call fcn.0070d490
add esp, 0x30
mov al, byte [edi - 6]
cmp al, bl
je 0x6fb605
movzx eax, al
dec eax
je 0x6fb309
dec eax
jne 0x6fb30e
mov esi, 0x8d4d88
jmp 0x6fb30e
mov esi, 0x8d4b68
mov eax, dword [0xc97b24]
push ebx
push 6
call dword [eax + 0x20]
call fcn.00821b1e
movzx ecx, byte [edi - 8]
mov edx, dword [0xc3e000]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
push eax
fild dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [0xc97b24]
push 1
fmul dword [0x858c7c]
fmul dword [0x858c24]
fadd dword [0x858cb0]
fimul dword [esp + 0x28]
fmul dword [0x859d5c]
fstp dword [esp + 0x28]
call dword [ecx + 0x20]
add esp, 0x10
cmp word [esi + 0x10], bx
je 0x6fb476
nop
movzx eax, byte [edi - 0xc]
movsx edx, word [esi + 8]
imul edx, eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.00821b40
movzx edx, byte [edi - 0xb]
movsx ecx, word [esi + 0xa]
imul ecx, edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x38], al
fild dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.00821b40
movzx ecx, byte [edi - 0xa]
mov byte [esp + 0x39], al
movsx eax, word [esi + 0xc]
imul eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.00821b40
mov byte [esp + 0x3a], al
mov eax, dword [0xb6f03c]
cmp eax, ebx
mov byte [esp + 0x3b], 0xff
je 0x6fb3e3
add eax, 0x30
jmp 0x6fb3e8
mov eax, 0xb6f02c
push 1
push ebx
push ebx
push ebx
push ebx
push 1
push 1
push ebx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0xc0]
push ecx
push eax
lea edx, [esp + 0x58]
push edx
call fcn.0056ba00
add esp, 0x30
test al, al
jne 0x6fb469
fld dword [esi + 4]
push 0xff
fmul dword [0x858b90]
push 0xff
lea eax, [esp + 0x40]
push eax
fstp dword [esp + 0x1c]
fild dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x68]
push eax
fld dword [esp + 0x34]
push eax
fsub st(2)
sub esp, 8
fmul dword [esi]
fadd st(2)
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fsub st(1)
fmul dword [esi]
fadd st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
call fcn.0070f440
add esp, 0x1c
add esi, 0x14
cmp word [esi + 0x10], bx
jne 0x6fb370
mov ecx, dword [0xc97b24]
push 1
push 6
call dword [ecx + 0x20]
mov al, byte [edi - 6]
add esp, 8
cmp al, 2
jne 0x6fb605
fld dword [0xc812d0]
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x44
jnp 0x6fb605
cmp dword [0xb72914], ebx
jne 0x6fb605
cmp word [0x8d4d98], bx
mov esi, 0x8d4d88
je 0x6fb605
fild dword [esp + 0x4c]
movsx ebp, bp
fstp dword [esp + 0x10]
fild dword [esp + 0x5c]
fstp dword [esp + 0x18]
lea esp, [esp]
movzx eax, byte [edi - 0xc]
movsx edx, word [esi + 8]
imul edx, eax
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fmul dword [0xc812d0]
fmul dword [0x859aa0]
call fcn.00821b40
fld dword [esi]
fadd dword [0x858c28]
movsx ecx, word [esi + 0xe]
fld dword [esp + 0x24]
imul ecx, ebp
fsub dword [esp + 0x10]
push 0xff
sar ecx, 8
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x28], al
mov eax, dword [esi + 4]
push eax
fmul st(1)
mov ecx, eax
push ecx
sub esp, 8
fadd dword [esp + 0x2c]
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 0xff
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fsub dword [esp + 0x34]
fmul st(1)
fadd dword [esp + 0x34]
fstp dword [esp]
fstp st(0)
call fcn.0070f440
movsx eax, word [esi + 0xc]
movzx edx, byte [edi - 0xa]
imul edx, eax
mov dword [esp + 0x58], edx
add esp, 0x1c
mov byte [esp + 0x1c], bl
fild dword [esp + 0x3c]
mov byte [esp + 0x1d], bl
fmul dword [0xc812d0]
fmul dword [0x859aa0]
call fcn.00821b40
fld dword [esi]
fsub dword [0x858c28]
movsx ecx, word [esi + 0xe]
fld dword [esp + 0x24]
imul ecx, ebp
fsub dword [esp + 0x10]
push 0xff
sar ecx, 8
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2a], al
mov eax, dword [esi + 4]
push eax
fmul st(1)
mov ecx, eax
push ecx
sub esp, 8
fadd dword [esp + 0x2c]
mov byte [esp + 0x3b], 0xff
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fsub dword [esp + 0x34]
fmul st(1)
fadd dword [esp + 0x34]
fstp dword [esp]
fstp st(0)
call fcn.0070f440
add esi, 0x14
add esp, 0x1c
cmp word [esi + 0x10], bx
jne 0x6fb4e0
jmp 0x6fb605
or byte [edi - 4], 2
mov eax, dword [esp + 0x58]
add edi, 0x3c
dec eax
mov dword [esp + 0x58], eax
jne 0x6faf50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
jmp fcn.0070cf20