Function at 0x10018a40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ef80
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10048018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x50], ebx
mov eax, dword [ebx + 0x34]
mov dword [0x1004a484], eax
mov al, byte [ebx + 0x30]
test al, al
je 0x10018ee0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
sub eax, dword [ebx + 0x38]
mov ecx, eax
sbb edx, dword [ebx + 0x3c]
call fcn.1003d660
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x10041d58]
comiss xmm0, dword [0x10041d1c]
jb 0x10018ee0
call esi
dec dword [ebx + 0x2c]
lea ecx, [ebp - 0x28]
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x43]
mov word [ebp - 0x44], 0x47
push eax
mov dword [ebx + 0x3c], edx
mov byte [ebp - 0x43], 0
call fcn.10004510
mov dword [ebp - 4], 0
mov eax, 0xc22e4507
mov edi, dword [ebx + 0x2c]
mul edi
shr edx, 0x10
mov ecx, edx
call fcn.10018f90
call fcn.1003d531
mov esi, eax
mov edx, edi
imul ecx, esi, 0x15180
mov eax, 0x91a2b3c5
mov dword [ebp - 0x30], esi
sub edx, ecx
mov ecx, 0x18
mul edx
shr edx, 0xb
mov eax, edx
xor edx, edx
div ecx
mov ecx, edx
call fcn.10018f90
call fcn.1003d531
mov ebx, eax
lea ecx, [esi + esi*2]
mov edx, edi
mov dword [ebp - 0x4c], ebx
mov eax, 0x88888889
lea esi, [ebx + ecx*8]
imul ecx, esi, 0xe10
sub edx, ecx
mov ecx, 0x3c
mul edx
shr edx, 5
mov eax, edx
xor edx, edx
div ecx
mov ecx, edx
call fcn.10018f90
call fcn.1003d531
mov ecx, esi
shl ecx, 4
sub ecx, esi
mov esi, eax
lea ecx, [esi + ecx*4]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov ecx, 0x3c
shl edx, 2
sub edi, edx
xor edx, edx
mov eax, edi
div ecx
mov ecx, edx
call fcn.10018f90
call fcn.1003d531
mov edx, dword [ebp - 0x30]
mov edi, eax
test edx, edx
je 0x10018c2b
cmp edx, 0xa
jae 0x10018bb2
mov al, 5
mov byte [ebp - 0x2a], 0
mov cl, 0x35
mov byte [ebp - 0x2c], al
xor cl, al
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x2b], cl
lea eax, [ebp - 0x2b]
jmp 0x10018bbf
mov word [ebp - 0x30], 0x30
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x2f], 0
push edx
push eax
mov ch, 0x67
mov byte [ebp - 0x32], 0
mov al, 0x42
mov byte [ebp - 0x38], ch
mov dl, al
mov byte [ebp - 0x32], 0
mov ah, 0x5d
xor al, ch
xor ah, ch
mov byte [ebp - 0x37], al
mov cl, 0x14
mov byte [ebp - 0x33], ah
sub esp, 0x18
lea eax, [ebp - 0x37]
xor cl, ch
mov bl, 0x12
xor dl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x35], dl
mov ecx, esp
mov byte [ebp - 0x34], bl
push eax
call fcn.10004510
lea eax, [ebp - 0x68]
push eax
call fcn.10008fc0
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10005230
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.10004450
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x10018cc9
cmp ebx, 0xa
jae 0x10018c51
mov cl, 0x49
mov byte [ebp - 0x2a], 0
mov al, 0x79
mov byte [ebp - 0x2c], cl
xor al, cl
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x2b], al
lea eax, [ebp - 0x2b]
jmp 0x10018c5e
mov word [ebp - 0x30], 0x25
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x2f], 0
push ebx
push eax
mov ch, 0x7b
mov byte [ebp - 0x32], 0
mov al, 0x5e
mov byte [ebp - 0x38], ch
mov dl, al
mov byte [ebp - 0x32], 0
mov ah, 0x41
xor al, ch
xor ah, ch
mov byte [ebp - 0x37], al
mov cl, 8
mov byte [ebp - 0x33], ah
sub esp, 0x18
lea eax, [ebp - 0x37]
xor cl, ch
mov bl, 0xe
xor dl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x35], dl
mov ecx, esp
mov byte [ebp - 0x34], bl
push eax
call fcn.10004510
lea eax, [ebp - 0x68]
push eax
call fcn.10008fc0
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10005230
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.10004450
jmp 0x10018cf7
mov bl, 0x56
mov byte [ebp - 0x3c], 0
mov al, 0x66
mov byte [ebp - 0x40], bl
mov cl, al
mov byte [ebp - 0x3c], 0
xor al, bl
xor cl, bl
mov dl, 0x6c
mov byte [ebp - 0x3f], al
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x3e], cl
xor dl, bl
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 0x3d], dl
call fcn.10004410
test esi, esi
je 0x10018d95
cmp esi, 0xa
jae 0x10018d1d
mov cl, 0x34
mov byte [ebp - 0x2a], 0
mov al, 4
mov byte [ebp - 0x2c], cl
xor al, cl
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x2b], al
lea eax, [ebp - 0x2b]
jmp 0x10018d2a
mov word [ebp - 0x30], 0x65
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x2f], 0
push esi
push eax
mov ch, 3
mov byte [ebp - 0x32], 0
mov al, 0x26
mov byte [ebp - 0x38], ch
mov dl, al
mov byte [ebp - 0x32], 0
mov ah, 0x39
xor al, ch
xor ah, ch
mov byte [ebp - 0x37], al
mov cl, 0x70
mov byte [ebp - 0x33], ah
sub esp, 0x18
lea eax, [ebp - 0x37]
xor cl, ch
mov bl, 0x76
xor dl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x35], dl
mov ecx, esp
mov byte [ebp - 0x34], bl
push eax
call fcn.10004510
lea eax, [ebp - 0x68]
push eax
call fcn.10008fc0
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10005230
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.10004450
jmp 0x10018dc3
mov bl, 0x44
mov byte [ebp - 0x3c], 0
mov al, 0x74
mov byte [ebp - 0x40], bl
mov cl, al
mov byte [ebp - 0x3c], 0
xor al, bl
xor cl, bl
mov dl, 0x7e
mov byte [ebp - 0x3f], al
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x3e], cl
xor dl, bl
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 0x3d], dl
call fcn.10004410
test edi, edi
je 0x10018e5a
cmp edi, 0xa
jae 0x10018de9
mov cl, 0xe
mov byte [ebp - 0x2a], 0
mov al, 0x3e
mov byte [ebp - 0x2c], cl
xor al, cl
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x2b], al
lea eax, [ebp - 0x2b]
jmp 0x10018df6
mov word [ebp - 0x30], 0x79
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x2f], 0
push edi
push eax
mov ah, 0x17
mov byte [ebp - 0x47], 0
mov al, 0x32
mov byte [ebp - 0x4c], ah
mov dl, al
mov byte [ebp - 0x47], 0
mov cl, 0x64
xor al, ah
xor cl, ah
mov byte [ebp - 0x4b], al
sub esp, 0x18
mov byte [ebp - 0x4a], cl
mov bl, 0x62
xor dl, ah
xor bl, ah
mov byte [ebp - 0x49], dl
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x48], bl
mov ecx, esp
push eax
call fcn.10004510
lea eax, [ebp - 0x68]
push eax
call fcn.10008fc0
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10005230
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.10004450
jmp 0x10018e81
mov dl, 0x7b
mov byte [ebp - 0x29], 0
mov al, 0x4b
mov byte [ebp - 0x2c], dl
mov cl, al
mov byte [ebp - 0x29], 0
xor al, dl
xor cl, dl
mov byte [ebp - 0x2b], al
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x2a], cl
lea ecx, [ebp - 0x28]
push eax
call fcn.10004410
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x68]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004510
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 5
mov esi, dword [eax + 0x28]
test esi, esi
je 0x10018ebc
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10018ebc
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x10041b88]
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x10018ece
inc eax
push eax
push dword [ebp - 0x68]
call fcn.100055b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10018ee0
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100055b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c800
mov esp, ebp
pop ebp
ret