Function at 0x10afff0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
fld qword [0x10139b8]
push ebx
fld qword [0x10139b0]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24b74]
mov ebx, dword [esi + 0x24b70]
mov ecx, dword [esi + 0x24b68]
mov edx, dword [esi + 0x24b6c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test eax, eax
je 0x10b005b
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jge 0x10b0046
fadd qword [0x1009c68]
fmul st(2)
fmul st(1)
call fcn.01121e0f
mov dword [esi + 0x24b70], eax
mov dword [esi + 0x24b74], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
ja 0x10b0067
mov eax, ecx
mov dword [edi + 0x10], eax
test eax, eax
je 0x10b0093
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jge 0x10b007c
fadd qword [0x1009c68]
fmulp st(2)
fmulp st(1)
call fcn.01121e0f
mov dword [esi + 0x24b68], eax
mov dword [esi + 0x24b6c], edx
jmp 0x10b0097
fstp st(1)
fstp st(0)
mov eax, dword [esi + 0x24b70]
mov ecx, dword [esi + 0x24b74]
cmp eax, ebx
jne 0x10b0119
cmp ecx, dword [ebp - 0xc]
jne 0x10b0119
mov edx, dword [esi + 0x24b68]
mov edi, dword [esi + 0x24b6c]
cmp edx, dword [ebp - 8]
jne 0x10b0119
cmp edi, dword [ebp - 4]
jne 0x10b0119
or eax, ecx
jne 0x10b014b
or edx, edi
jne 0x10b014b
push 1
lea eax, [esi + 0x27ca0]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x10b014b
mov ecx, dword [esi + 8]
push 0x13
push ecx
call fcn.010a5800
mov edx, dword [esi + 8]
push 0x14
shl eax, 0x14
xor edi, edi
push edx
mov dword [esi + 0x24b70], eax
mov dword [esi + 0x24b74], edi
call fcn.010a5800
shl eax, 0x14
mov dword [esi + 0x24b68], eax
mov dword [esi + 0x24b6c], edi
jmp 0x10b014b
shrd eax, ecx, 0x14
push eax
mov eax, dword [esi + 8]
push 0x13
push eax
shr ecx, 0x14
call fcn.010a5880
mov ecx, dword [esi + 0x24b68]
mov edx, dword [esi + 0x24b6c]
mov eax, dword [esi + 8]
shrd ecx, edx, 0x14
push ecx
push 0x14
push eax
shr edx, 0x14
call fcn.010a5880
mov edi, dword [esi + 0x24b70]
mov ebx, dword [esi + 0x24b74]
mov ecx, edi
or ecx, ebx
je 0x10b0183
mov edx, dword [esi + 0x24b6c]
mov eax, dword [esi + 0x24b68]
push 0
push 0x64
push edx
push eax
call fcn.01121780
push ebx
push edi
push edx
push eax
call fcn.01121710
mov dword [esi + 0x24b60], eax
cmp dword [esi + 0x240cc], 0
je 0x10b0226
lea edi, [esi + 0x240e0]
test edi, edi
je 0x10b0226
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x24b40], 0
je 0x10b021b
mov eax, dword [esi + 0x240cc]
test eax, eax
je 0x10b021b
cmp dword [eax + 0xec], 0
jne 0x10b021b
mov eax, dword [eax + 0x7c]
cmp dword [eax + 0x20], 0x1c
jne 0x10b021b
cmp dword [eax + 0x24], 0
jne 0x10b021b
mov ecx, 1
cmp dword [eax + 0x28], ecx
jne 0x10b021b
mov edx, dword [esi + 0x24b70]
cmp edx, dword [ebp - 0x10]
jne 0x10b020f
mov eax, dword [esi + 0x24b74]
cmp eax, dword [ebp - 0xc]
jne 0x10b020f
mov edx, dword [esi + 0x24b68]
cmp edx, dword [ebp - 8]
jne 0x10b020f
mov eax, dword [esi + 0x24b6c]
cmp eax, dword [ebp - 4]
jne 0x10b020f
cmp dword [esi + 0x24b78], 0
jne 0x10b021b
push esi
mov dword [esi + 0x24b78], ecx
call fcn.0107fee0
test edi, edi
je 0x10b0226
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
je 0x10b0275
push 1
lea edx, [esi + 0x24b80]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x10b0275
mov eax, dword [esi + 8]
mov edi, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x1082710
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x10b026a
mov edx, dword [edi + 0x1bc]
push eax
call edx
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8