Function at 0x46bd00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6054e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
push 0
call fcn.00495950
add esp, 0xc
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x800fe8]
mov ebx, eax
cmp ebx, ecx
jae 0x46bd62
mov ecx, dword [0x800fe8]
add ecx, 0xfffffc18
cmp ebx, ecx
jae 0x46bd69
mov ecx, 0x800fe8
xchg dword [ecx], eax
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [edi + 0x11c]
add eax, 0x64
cmp ebx, eax
jbe 0x46be54
movd xmm1, dword [ebp - 0x1c]
mov ecx, edi
movd xmm0, dword [ebp - 0x20]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x14], xmm1
push dword [ebp - 0x14]
movss dword [ebp - 0x18], xmm0
push dword [ebp - 0x18]
call fcn.005ee270
test al, al
je 0x46be54
mov ecx, edi
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x46bdc1
mov edi, eax
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x46bdb8
push dword [ebp - 0x14]
mov edx, edi
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00495d60
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.005edce0
mov ecx, eax
mov eax, dword [ebp - 0x10]
cmp ecx, eax
je 0x46bdf7
push ecx
mov ecx, eax
call fcn.005ed920
test al, al
je 0x46be54
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x100]
test eax, eax
je 0x46be54
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x46be54
cmp byte [edi + 0xf0], 0
jne 0x46be54
mov eax, dword [edi + 0x104]
test eax, eax
je 0x46be27
test byte [eax + 0x80], 2
jne 0x46be54
push 0
push 0x7feee0
push 0x7f4060
push 0
push ecx
mov dword [ebp - 4], 0
call fcn.004bf54d
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
push eax
call fcn.0046b660
mov edi, dword [ebp - 0x1c]
mov ecx, esi
push edi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.0046c200
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xfc]
test edx, edx
jne 0x46be7e
cmp byte [ecx + 0xed], dl
je 0x46beec
mov eax, dword [ebp - 0x20]
cmp eax, dword [ecx + 0x24]
jae 0x46beec
cmp edi, dword [ecx + 0x28]
jb 0x46be94
mov eax, dword [esi + 0x10]
test byte [eax + 0x34], 0x70
je 0x46beec
test edx, edx
jne 0x46bed6
cmp byte [ecx + 0xed], dl
je 0x46bea4
test edx, edx
jne 0x46bead
cmp byte [ecx + 0xed], 0
je 0x46beec
mov eax, dword [ecx + 0xf8]
sub eax, dword [ecx + 0xe8]
cmp edx, eax
jge 0x46beec
mov eax, dword [ecx + 0x28]
add eax, 0xffffffe8
cmp edi, eax
jle 0x46beec
push 1
push ebx
mov ecx, esi
call fcn.0046c620
mov byte [ebp - 0x10], al
jmp 0x46befd
jle 0x46bea0
cmp edi, 0x18
jge 0x46bea0
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0046c620
mov byte [ebp - 0x10], al
jmp 0x46befd
movsd xmm0, qword [0x7b9800]
movsd qword [esi + 0x20], xmm0
mov byte [ebp - 0x10], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x88]
test eax, eax
je 0x46bf13
mov ecx, eax
call fcn.0046a290
jmp 0x46bf18
call fcn.0046a2c0
mov ecx, dword [esi + 0xc]
mov byte [ebp - 0x14], al
cmp byte [ecx + 0xef], 0
je 0x46bf51
cmp byte [ecx + 0xec], 0
je 0x46bf51
test al, al
jne 0x46bf51
push 1
push 0
call fcn.00469860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 0x30]
mov ecx, esi
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
push ebx
call fcn.0046bf80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8