Function at 0x11058e0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
fld qword [0x101d2b0]
push esi
mov esi, dword [ebp + 8]
fld qword [0x101d2a8]
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 0x110594a
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jge 0x1105935
fadd qword [0x100c218]
fmul st(2)
fmul st(1)
call fcn.01197f7f
mov dword [esi + 0x25fd8], eax
mov dword [esi + 0x25fdc], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
ja 0x1105956
mov eax, ecx
mov dword [edi + 0x10], eax
test eax, eax
je 0x1105982
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jge 0x110596b
fadd qword [0x100c218]
fmulp st(2)
fmulp st(1)
call fcn.01197f7f
mov dword [esi + 0x25fd0], eax
mov dword [esi + 0x25fd4], edx
jmp 0x1105986
fstp st(1)
fstp st(0)
mov eax, dword [esi + 0x25fd8]
mov ecx, dword [esi + 0x25fdc]
cmp eax, dword [ebp - 8]
jne 0x1105a13
cmp ecx, dword [ebp - 4]
jne 0x1105a13
mov edx, dword [esi + 0x25fd0]
mov edi, dword [esi + 0x25fd4]
cmp edx, dword [ebp - 0x10]
jne 0x1105a13
cmp edi, dword [ebp - 0xc]
jne 0x1105a13
or eax, ecx
jne 0x1105a45
or edx, edi
jne 0x1105a45
push 1
lea ecx, [esi + 0x29114]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x1105a45
mov edx, dword [esi + 8]
push 0x13
push edx
call fcn.010dfa70
shl eax, 0x14
mov dword [esi + 0x25fd8], eax
mov eax, dword [esi + 8]
push 0x14
push eax
mov dword [esi + 0x25fdc], 0
call fcn.010dfa70
shl eax, 0x14
mov dword [esi + 0x25fd0], eax
mov dword [esi + 0x25fd4], 0
jmp 0x1105a45
shrd eax, ecx, 0x14
push eax
shr ecx, 0x14
mov ecx, dword [esi + 8]
push 0x13
push ecx
call fcn.010dfaf0
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.010dfaf0
mov eax, 0x32
cmp dword [esi + 0x25fd4], eax
jb 0x1105a71
ja 0x1105a5d
cmp dword [esi + 0x25fd0], 0
jbe 0x1105a71
mov dword [esi + 0x25fd0], 0
mov dword [esi + 0x25fd4], 0
cmp dword [esi + 0x25fdc], eax
jb 0x1105a98
ja 0x1105a84
cmp dword [esi + 0x25fd8], 0
jbe 0x1105a98
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 0x1105b1f
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 [0x100fb20]
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 [0x100fb80]
call fcn.01197ff9
mov dword [esi + 0x25fc8], eax
cmp dword [esi + 0x240e4], 0
je 0x1105bc5
lea edi, [esi + 0x24908]
test edi, edi
je 0x1105bc5
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x25fa8], 0
je 0x1105bba
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x1105bba
cmp dword [eax + 0xfc], 0
jne 0x1105bba
mov eax, dword [eax + 0x88]
cmp dword [eax + 0x20], 0x1c
jne 0x1105bba
cmp dword [eax + 0x24], 0
jne 0x1105bba
mov ecx, 1
cmp dword [eax + 0x28], ecx
jne 0x1105bba
mov edx, dword [esi + 0x25fd8]
cmp edx, dword [ebp - 8]
jne 0x1105bae
mov eax, dword [esi + 0x25fdc]
cmp eax, dword [ebp - 4]
jne 0x1105bae
mov edx, dword [esi + 0x25fd0]
cmp edx, dword [ebp - 0x10]
jne 0x1105bae
mov eax, dword [esi + 0x25fd4]
cmp eax, dword [ebp - 0xc]
jne 0x1105bae
cmp dword [esi + 0x25fe0], 0
jne 0x1105bba
push esi
mov dword [esi + 0x25fe0], ecx
call fcn.010ab700
test edi, edi
je 0x1105bc5
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
je 0x1105c14
push 1
lea edx, [esi + 0x25fe8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x1105c14
mov eax, dword [esi + 8]
mov edi, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10e6f20
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1105c09
mov edx, dword [edi + 0x1c8]
push eax
call edx
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8