Function at 0x10ffbd0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
fld qword [0x101c2b0]
push esi
mov esi, dword [ebp + 8]
fld qword [0x101c2a8]
mov eax, dword [esi + 0x25fd8]
mov ecx, dword [esi + 0x25fdc]
mov edx, dword [esi + 0x25fd0]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x25fd4]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
test eax, eax
je 0x10ffc3a
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jge 0x10ffc25
fadd qword [0x100b720]
fmul st(2)
fmul st(1)
call fcn.0117f7bf
mov dword [esi + 0x25fd8], eax
mov dword [esi + 0x25fdc], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
ja 0x10ffc46
mov eax, ecx
mov dword [edi + 0x10], eax
test eax, eax
je 0x10ffc72
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jge 0x10ffc5b
fadd qword [0x100b720]
fmulp st(2)
fmulp st(1)
call fcn.0117f7bf
mov dword [esi + 0x25fd0], eax
mov dword [esi + 0x25fd4], edx
jmp 0x10ffc76
fstp st(1)
fstp st(0)
mov eax, dword [esi + 0x25fd8]
mov ecx, dword [esi + 0x25fdc]
cmp eax, dword [ebp - 8]
jne 0x10ffd03
cmp ecx, dword [ebp - 4]
jne 0x10ffd03
mov edx, dword [esi + 0x25fd0]
mov edi, dword [esi + 0x25fd4]
cmp edx, dword [ebp - 0x10]
jne 0x10ffd03
cmp edi, dword [ebp - 0xc]
jne 0x10ffd03
or eax, ecx
jne 0x10ffd35
or edx, edi
jne 0x10ffd35
push 1
lea ecx, [esi + 0x29114]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x10ffd35
mov edx, dword [esi + 8]
push 0x13
push edx
call fcn.010da610
shl eax, 0x14
mov dword [esi + 0x25fd8], eax
mov eax, dword [esi + 8]
push 0x14
push eax
mov dword [esi + 0x25fdc], 0
call fcn.010da610
shl eax, 0x14
mov dword [esi + 0x25fd0], eax
mov dword [esi + 0x25fd4], 0
jmp 0x10ffd35
shrd eax, ecx, 0x14
push eax
shr ecx, 0x14
mov ecx, dword [esi + 8]
push 0x13
push ecx
call fcn.010da690
mov edx, dword [esi + 0x25fd0]
mov eax, dword [esi + 0x25fd4]
mov ecx, dword [esi + 8]
shrd edx, eax, 0x14
push edx
push 0x14
push ecx
shr eax, 0x14
call fcn.010da690
mov eax, 0x32
cmp dword [esi + 0x25fd4], eax
jb 0x10ffd61
ja 0x10ffd4d
cmp dword [esi + 0x25fd0], 0
jbe 0x10ffd61
mov dword [esi + 0x25fd0], 0
mov dword [esi + 0x25fd4], 0
cmp dword [esi + 0x25fdc], eax
jb 0x10ffd88
ja 0x10ffd74
cmp dword [esi + 0x25fd8], 0
jbe 0x10ffd88
mov dword [esi + 0x25fd8], 0
mov dword [esi + 0x25fdc], 0
mov edx, dword [esi + 0x25fd8]
mov edi, dword [esi + 0x25fdc]
mov eax, edx
or eax, edi
je 0x10ffe0f
mov ecx, dword [esi + 0x25fd0]
mov eax, dword [esi + 0x25fd4]
mov dword [ebp - 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
and ecx, 0x80000000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
fild qword [ebp - 0x18]
mov eax, edi
mov ecx, edi
mov dword [ebp - 0x18], edx
fchs
and eax, 0x7fffffff
faddp st(1)
mov dword [ebp - 0x14], eax
and ecx, 0x80000000
fmul qword [0x100ef98]
fild qword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
fild qword [ebp - 0x18]
fchs
faddp st(1)
fdivp st(1)
fadd qword [0x100eff8]
call fcn.0117f839
mov dword [esi + 0x25fc8], eax
cmp dword [esi + 0x240e4], 0
je 0x10ffeb5
lea edi, [esi + 0x24908]
test edi, edi
je 0x10ffeb5
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x25fa8], 0
je 0x10ffeaa
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x10ffeaa
cmp dword [eax + 0xfc], 0
jne 0x10ffeaa
mov eax, dword [eax + 0x88]
cmp dword [eax + 0x20], 0x1c
jne 0x10ffeaa
cmp dword [eax + 0x24], 0
jne 0x10ffeaa
mov ecx, 1
cmp dword [eax + 0x28], ecx
jne 0x10ffeaa
mov edx, dword [esi + 0x25fd8]
cmp edx, dword [ebp - 8]
jne 0x10ffe9e
mov eax, dword [esi + 0x25fdc]
cmp eax, dword [ebp - 4]
jne 0x10ffe9e
mov edx, dword [esi + 0x25fd0]
cmp edx, dword [ebp - 0x10]
jne 0x10ffe9e
mov eax, dword [esi + 0x25fd4]
cmp eax, dword [ebp - 0xc]
jne 0x10ffe9e
cmp dword [esi + 0x25fe0], 0
jne 0x10ffeaa
push esi
mov dword [esi + 0x25fe0], ecx
call fcn.010a6230
test edi, edi
je 0x10ffeb5
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
je 0x10fff04
push 1
lea edx, [esi + 0x25fe8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x10fff04
mov eax, dword [esi + 8]
mov edi, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10e1ab0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x10ffef9
mov edx, dword [edi + 0x1c0]
push eax
call edx
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8