Function at 0x10029360
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092a30
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100bb084]
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 - 0x60], ebx
mov eax, dword [ebx + 0x34]
mov dword [0x100c3c80], eax
mov al, byte [ebx + 0x30]
test al, al
je 0x10029729
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.10090570
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x100aee18]
comiss xmm0, dword [0x100aedbc]
jb 0x10029729
call esi
dec dword [ebx + 0x2c]
lea ecx, [ebp - 0x28]
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x33]
mov word [ebp - 0x34], 7
push eax
mov dword [ebx + 0x3c], edx
mov byte [ebp - 0x33], 0
call fcn.10004e00
mov dword [ebp - 4], 0
mov eax, 0xc22e4507
mov edi, dword [ebx + 0x2c]
mul edi
shr edx, 0x10
mov ecx, edx
call fcn.1002a3d0
call fcn.10090441
mov esi, eax
mov edx, edi
imul ecx, esi, 0x15180
mov eax, 0x91a2b3c5
mov dword [ebp - 0x44], 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.1002a3d0
call fcn.10090441
mov ebx, eax
lea ecx, [esi + esi*2]
mov edx, edi
mov dword [ebp - 0x3c], 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.1002a3d0
call fcn.10090441
mov ecx, esi
mov dword [ebp - 0x40], eax
shl ecx, 4
sub ecx, esi
lea ecx, [eax + 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.1002a3d0
call fcn.10090441
mov edi, eax
mov esi, 0x100aed50
mov eax, dword [ebp - 0x44]
mov edx, 0x100a4ed2
test eax, eax
je 0x10029534
cmp eax, 0xa
mov byte [ebp - 0x2a], 0
push eax
mov ecx, esi
mov byte [ebp - 0x2a], 0
cmovae ecx, edx
mov al, 0x33
push ecx
mov ch, 0x16
mov dl, al
mov ah, 0x2c
mov byte [ebp - 0x30], ch
xor al, ch
xor ah, ch
mov cl, 0x65
mov byte [ebp - 0x2f], al
sub esp, 0x18
mov byte [ebp - 0x2b], ah
xor cl, ch
lea eax, [ebp - 0x2f]
mov bl, 0x63
mov byte [ebp - 0x2e], cl
xor dl, ch
xor bl, ch
mov ecx, esp
mov byte [ebp - 0x2d], dl
push eax
mov byte [ebp - 0x2c], bl
call fcn.10004e00
lea eax, [ebp - 0x5c]
push eax
call fcn.10004670
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10007980
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.10004790
mov ebx, dword [ebp - 0x3c]
mov edx, 0x100a4ed2
test ebx, ebx
je 0x100295ab
push ebx
cmp ebx, 0xa
mov byte [ebp - 0x2a], 0
mov eax, esi
mov byte [ebp - 0x2a], 0
cmovae eax, edx
mov ch, 0x64
push eax
mov al, 0x41
mov byte [ebp - 0x30], ch
mov dl, al
mov ah, 0x5e
xor al, ch
xor ah, ch
mov cl, 0x17
mov byte [ebp - 0x2f], al
sub esp, 0x18
mov byte [ebp - 0x2b], ah
xor cl, ch
lea eax, [ebp - 0x2f]
mov bl, 0x11
mov byte [ebp - 0x2e], cl
xor dl, ch
xor bl, ch
mov ecx, esp
mov byte [ebp - 0x2d], dl
push eax
mov byte [ebp - 0x2c], bl
call fcn.10004e00
lea eax, [ebp - 0x5c]
push eax
call fcn.10004670
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10007980
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.10004790
jmp 0x100295b8
push 0x100aed54
lea ecx, [ebp - 0x28]
call fcn.10007820
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10029637
push ecx
cmp ecx, 0xa
mov byte [ebp - 0x2a], 0
mov ecx, 0x100a4ed2
mov byte [ebp - 0x2a], 0
mov eax, esi
mov bl, 0x57
cmovae eax, ecx
mov ch, 0x22
push eax
mov al, 7
mov byte [ebp - 0x30], ch
mov dl, al
mov ah, 0x18
xor al, ch
xor ah, ch
mov cl, 0x51
mov byte [ebp - 0x2f], al
sub esp, 0x18
mov byte [ebp - 0x2b], ah
xor cl, ch
lea eax, [ebp - 0x2f]
xor dl, ch
mov byte [ebp - 0x2e], cl
xor bl, ch
mov byte [ebp - 0x2d], dl
mov ecx, esp
mov byte [ebp - 0x2c], bl
push eax
call fcn.10004e00
lea eax, [ebp - 0x5c]
push eax
call fcn.10004670
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10007980
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.10004790
jmp 0x10029644
push 0x100aed54
lea ecx, [ebp - 0x28]
call fcn.10007820
test edi, edi
je 0x100296b7
mov eax, 0x100a4ed2
mov byte [ebp - 0x37], 0
push edi
cmp edi, 0xa
mov byte [ebp - 0x37], 0
mov cl, 0x5d
mov bl, 0x5b
cmovae esi, eax
mov ah, 0x2e
mov al, 0xb
mov byte [ebp - 0x3c], ah
push esi
mov dl, al
xor cl, ah
xor al, ah
mov byte [ebp - 0x3a], cl
sub esp, 0x18
mov byte [ebp - 0x3b], al
xor dl, ah
xor bl, ah
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x39], dl
mov ecx, esp
mov byte [ebp - 0x38], bl
push eax
call fcn.10004e00
lea eax, [ebp - 0x5c]
push eax
call fcn.10004670
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10007980
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.10004790
jmp 0x100296c4
push 0x100aed58
lea ecx, [ebp - 0x28]
call fcn.10007820
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004e00
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 5
mov esi, dword [eax + 0x28]
test esi, esi
je 0x100296ff
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100296ff
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call dword [0x100adae4]
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x10029714
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10004bb0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10029729
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004bb0
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.10059ed0
mov esp, ebp
pop ebp
ret