Function at 0x100587b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1015e310
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101af0fc]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101af0fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebp, ebp
xor ebx, ebx
push ebp
mov dword [esp + 0x18], ebx
call fcn.101056ed
push eax
call fcn.1010474d
add esp, 8
test eax, 0x5bd5
push 0x37e4
push ebp
push esi
call fcn.10102a00
add esp, 0xc
mov cl, cl
push 0x3e8
push 0x101b8d58
call fcn.10053af0
add esp, 8
push eax
pop eax
mov edi, 1
add dword [0x101b8d5c], edi
nop
push ebp
push 0x101b8d58
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test edx, edx
push ecx
pop ecx
mov al, 0x6c
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x21], 0x73
mov byte [esp + 0x22], 0x65
mov byte [esp + 0x23], 0x72
mov byte [esp + 0x24], 0x33
mov byte [esp + 0x25], 0x32
mov byte [esp + 0x26], 0x2e
mov byte [esp + 0x27], 0x64
mov byte [esp + 0x28], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], bl
test eax, 0x7e26
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [esi], eax
push ecx
pop ecx
mov dword [esi + 0x78], edi
test eax, 0x4085
mov dword [esi + 0x7c], ebp
mov eax, eax
mov eax, 0xa
mov dword [esi + 0x80], eax
test eax, eax
mov ecx, 5
mov dword [esi + 0x84], ecx
test ch, ch
mov dword [esi + 0x3bc], edi
mov ebx, ebx
mov dword [esi + 0x3c0], edi
test ch, ch
mov dword [esi + 0x3c4], eax
nop
mov dword [esi + 0x3c8], ecx
test edi, edi
mov ecx, 0x1e
mov dword [esi + 0x2624], ecx
mov ah, ah
mov dword [esi + 0x2628], eax
test dl, dl
mov dword [esi + 0x262c], 0x28
test al, al
mov dword [esi + 0x2630], ecx
test edx, edx
mov dword [esi + 0x2634], eax
mov edi, edi
mov dword [esi + 0x2638], 0x32
test ch, ch
or eax, 0xffffffff
mov dword [esi + 0x40], eax
test cl, cl
mov dword [esi + 0x48], eax
push ebx
pop ebx
mov dword [esi + 0x44], eax
test ch, ch
mov dword [esi + 0x32e4], 0xbb8
test ah, ah
mov dword [esi + 0x32e8], 0x190
test ebx, ebx
mov dword [esi + 0x32f0], edi
mov esi, esi
mov dword [esi + 0x3260], edi
test ecx, ecx
mov dword [esi + 0x3264], 4
test eax, 0x3858
mov dword [esi + 0x32f8], 0xff00ff
xchg ebx, eax
xchg ebx, eax
lea ecx, [esi + 0x8c]
mov dword [esi + 0x220], ecx
mov dh, dh
push 0x18
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebp
cmp eax, ebp
je 0x100589a3
mov ebx, edi
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x1b]
or ebx, ebp
push edx
mov ecx, eax
mov dword [esp + 0x18], ebx
call fcn.10011320
jmp 0x100589a5
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
test bl, 1
mov dword [esi + 0x32cc], eax
je 0x100589bf
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
mov bh, bh
push 0x18
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], edi
cmp eax, ebp
je 0x100589ec
lea ecx, [esp + 0x1b]
or ebx, 2
push ecx
mov ecx, eax
mov dword [esp + 0x18], ebx
call fcn.10011320
jmp 0x100589ee
xor eax, eax
or edi, 0xffffffff
mov dword [esp + 0x38], edi
test bl, 2
mov dword [esi + 0x263c], eax
je 0x10058a07
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
test edx, edx
push 0x18
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 2
cmp eax, ebp
je 0x10058a38
lea edx, [esp + 0x1b]
or ebx, 4
push edx
mov ecx, eax
mov dword [esp + 0x18], ebx
call fcn.10011320
jmp 0x10058a3a
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 4
mov dword [esi + 0x2648], eax
je 0x10058a50
and ebx, 0xfffffffb
mov dword [esp + 0x14], ebx
mov esi, esi
push 0xc
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 3
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x10058a82
or ebx, 8
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebp
mov byte [esp + 0x38], cl
jmp 0x10058a84
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 8
mov dword [esi + 0x261c], eax
je 0x10058a9a
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
push edx
pop edx
push 0xc
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 5
cmp eax, ebp
je 0x10058acc
or ebx, 0x10
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebp
mov byte [esp + 0x38], 5
jmp 0x10058ace
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 0x10
mov dword [esi + 0x2620], eax
je 0x10058ae4
and ebx, 0xffffffef
mov dword [esp + 0x14], ebx
test eax, eax
push 0xc
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 7
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x10058b16
or ebx, 0x20
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebp
mov byte [esp + 0x38], cl
jmp 0x10058b18
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 0x20
mov dword [esi + 0x327c], eax
je 0x10058b2e
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
mov ebp, ebp
push 0xc
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 9
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x10058b60
or ebx, 0x40
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebp
mov byte [esp + 0x38], cl
jmp 0x10058b62
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 0x40
mov dword [esi + 0x3280], eax
je 0x10058b78
and ebx, 0xffffffbf
mov dword [esp + 0x14], ebx
test dh, dh
push 0xc
call fcn.100f3540
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 0xb
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x10058bad
or ebx, 0x80
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebp
mov byte [esp + 0x38], cl
jmp 0x10058baf
xor eax, eax
mov dword [esp + 0x38], edi
test bl, bl
mov dword [esi + 0x32fc], eax
jns 0x10058bc7
and ebx, 0xffffff7f
mov dword [esp + 0x14], ebx
mov ebx, ebx
mov dword [esi + 0x2640], 0x2710
mov ecx, ecx
mov dword [esi + 0x2644], 0x64
test al, al
call fcn.1001b9b0
mov dword [esi + 0x3370], eax
push eax
pop eax
call fcn.1001b9b0
mov dword [esi + 0x336c], eax
mov ah, ah
call fcn.10012c00
cdq
mov ecx, 0x64
idiv ecx
mov ah, ah
lea eax, [edx - 1]
cmp eax, 0x1c
ja 0x10058c2a
push edx
push 0x101b8ef4
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x10058c2a
mov dword [esi + 0x3370], ebp
test bh, bh
call fcn.10012c00
cdq
mov ecx, 0x64
idiv ecx
mov edx, edx
lea eax, [edx - 1]
cmp eax, 0x1c
ja 0x10058c59
push edx
push 0x101b8ef8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x10058c59
mov dword [esi + 0x336c], ebp
mov cl, cl
call fcn.1001b9b0
mov dword [esi + 0x3368], eax
mov cl, cl
push 0x10165728
call fcn.1000aeb0
add esp, 4
test esi, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1010190d
add esp, 0x28
ret