Function at 0x47f5dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [0x965870], 0
je 0x47f786
fld qword [0x8a764c]
fild dword [0x965874]
fstp qword [ebp - 0x18]
fdiv qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.004020b4
mov dword [ebp - 4], eax
mov eax, dword [0x965874]
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x47f727
cmp dword [0x965898], 0
je 0x47f65c
jmp 0x47f727
push 0x10001
push dword [0x965858]
push dword [0x965854]
push 1
mov ebx, 0x4bb1a0
call fcn.004b7854
add esp, 0x10
test eax, eax
je 0x47f6d6
push 0x10001
push 0x617fbde
push 0x521731dd
push 1
mov ebx, 0x4b7e80
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fmul qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.004020b4
push eax
push dword [ebp - 0x14]
call fcn.0046ada0
jmp 0x47f6fd
push 0
push 0
push 0
push 0x10001
push 0x617fbde
push 0x521731dd
push 2
mov ebx, 0x4bb220
call fcn.004b7854
add esp, 0x1c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 1
push 3
call fcn.0047f948
pop eax
pop ebx
pop ecx
jmp 0x47f63c
add esp, 0xc
push 0x10001
push dword [0x965858]
push dword [0x965854]
push 1
mov ebx, 0x4bb1a0
call fcn.004b7854
add esp, 0x10
test eax, eax
je 0x47f786
push 0x10001
push 0x617fbde
push 0x521731dd
push 1
mov ebx, 0x4b7e80
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0xff
push dword [ebp - 0x14]
call fcn.0046ada0
mov eax, dword [0x965898]
and eax, 1
xor eax, 1
test eax, eax
je 0x47f7cb
push 0x10001
push dword [0x965858]
push dword [0x965854]
push 1
mov ebx, 0x4bb1a0
call fcn.004b7854
add esp, 0x10
test eax, eax
je 0x47f7cb
mov eax, 1
jmp 0x47f7d0
mov eax, 0
test eax, eax
je 0x47f8d3
fld dword [ebp - 0xc]
fadd qword [0x8a7654]
fstp dword [ebp - 0xc]
cmp dword [0x965878], 0xffffffff
je 0x47f8b0
fild dword [0x965878]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fdiv dword [ebp - 0xc]
fstp qword [ebp - 0x20]
push 0xffffffffffffffff
push 2
push 0x617fbde
push 0x521731dd
call fcn.004b7878
add esp, 0x10
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdiv qword [ebp - 0x20]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004020b4
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
push 2
push 0x617fbde
push 0x521731dd
call fcn.004b7878
add esp, 0x10
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fsub qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.004020b4
push 0
push eax
push 0xffffffffffffffff
push 2
push 0x1617fbe2
push 0x521731dd
call fcn.004b7872
add esp, 0x18
fld dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fild dword [0x965878]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x18]
fsub qword [ebp - 0x20]
fcomp qword [0x5d3d28]
fnstsw ax
test ah, 1
jne 0x47f8b0
jmp 0x47f8d3
push 0x80000301
push 0
push 0xa
push 1
mov ebx, 0x4bbfc0
call fcn.004b7854
add esp, 0x10
jmp 0x47f786
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
push 0x47fdb8
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
cmp dword [ebp - 0x14], esp
je 0x47f91a
push 0x416
push 0x4171152
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x20], esp
je 0x47f944
push 0x416
push 0x4171152
push 6
call fcn.004b785a
add esp, 0xc
mov esp, ebp
pop ebp
ret