Function at 0x1005d160
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10179e70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101ce2f4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce2f4]
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.1011af9d
push eax
call fcn.10119ffd
add esp, 8
xchg ebx, eax
xchg ebx, eax
push 0x37e8
push ebp
push esi
call fcn.101182b0
add esp, 0xc
test ebx, ebx
push 0x3e8
push 0x101d8098
call fcn.10058490
add esp, 8
test cl, cl
mov edi, 1
add dword [0x101d809c], edi
mov cl, cl
push ebp
push 0x101d8098
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov dl, dl
test eax, 0x76b8
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 ah, ah
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [esi], eax
test dh, dh
mov dword [esi + 0x78], edi
mov al, al
mov dword [esi + 0x7c], ebp
mov cl, cl
mov eax, 0xa
mov dword [esi + 0x80], eax
test eax, eax
mov ecx, 5
mov dword [esi + 0x84], ecx
mov cl, cl
mov dword [esi + 0x3bc], edi
mov bh, bh
mov dword [esi + 0x3c0], edi
test esi, esi
mov dword [esi + 0x3c4], eax
push eax
pop eax
mov dword [esi + 0x3c8], ecx
test eax, 0x100a
mov ecx, 0x1e
mov dword [esi + 0x2624], ecx
mov ah, ah
mov dword [esi + 0x2628], eax
mov cl, cl
mov dword [esi + 0x262c], 0x28
test bl, bl
mov dword [esi + 0x2630], ecx
test ebx, ebx
mov dword [esi + 0x2634], eax
push edx
pop edx
mov dword [esi + 0x2638], 0x32
mov edi, edi
or eax, 0xffffffff
mov dword [esi + 0x40], eax
test bl, bl
mov dword [esi + 0x48], eax
push ebx
pop ebx
mov dword [esi + 0x44], eax
mov eax, eax
mov dword [esi + 0x32e8], 0xbb8
mov al, al
mov dword [esi + 0x32ec], 0x190
xchg ebx, eax
xchg ebx, eax
mov dword [esi + 0x32f4], edi
xchg ebx, eax
xchg ebx, eax
mov dword [esi + 0x3260], edi
test ch, ch
mov dword [esi + 0x3264], 4
push edx
pop edx
mov dword [esi + 0x32fc], 0xff00ff
mov ebx, ebx
lea ecx, [esi + 0x8c]
mov dword [esi + 0x220], ecx
test ch, ch
push 0x18
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebp
cmp eax, ebp
je 0x1005d34f
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.10011360
jmp 0x1005d351
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
test bl, 1
mov dword [esi + 0x32d0], eax
je 0x1005d36b
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
test edi, edi
push 0x18
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], edi
cmp eax, ebp
je 0x1005d398
lea ecx, [esp + 0x1b]
or ebx, 2
push ecx
mov ecx, eax
mov dword [esp + 0x18], ebx
call fcn.10011360
jmp 0x1005d39a
xor eax, eax
or edi, 0xffffffff
mov dword [esp + 0x38], edi
test bl, 2
mov dword [esi + 0x263c], eax
je 0x1005d3b3
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
test eax, 0x107d
push 0x18
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 2
cmp eax, ebp
je 0x1005d3e7
lea edx, [esp + 0x1b]
or ebx, 4
push edx
mov ecx, eax
mov dword [esp + 0x18], ebx
call fcn.10011360
jmp 0x1005d3e9
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 4
mov dword [esi + 0x2648], eax
je 0x1005d3ff
and ebx, 0xfffffffb
mov dword [esp + 0x14], ebx
mov ebp, ebp
push 0xc
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 3
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x1005d431
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 0x1005d433
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 8
mov dword [esi + 0x261c], eax
je 0x1005d449
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
mov cl, cl
push 0xc
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 5
cmp eax, ebp
je 0x1005d47b
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 0x1005d47d
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 0x10
mov dword [esi + 0x2620], eax
je 0x1005d493
and ebx, 0xffffffef
mov dword [esp + 0x14], ebx
xchg ebx, eax
xchg ebx, eax
push 0xc
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 7
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x1005d4c5
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 0x1005d4c7
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 0x20
mov dword [esi + 0x3280], eax
je 0x1005d4dd
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
mov ebp, ebp
push 0xc
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 9
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x1005d50f
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 0x1005d511
xor eax, eax
mov dword [esp + 0x38], edi
test bl, 0x40
mov dword [esi + 0x3284], eax
je 0x1005d527
and ebx, 0xffffffbf
mov dword [esp + 0x14], ebx
mov dh, dh
push 0xc
call fcn.10105b20
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 0xb
mov dword [esp + 0x38], ecx
cmp eax, ebp
je 0x1005d55c
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 0x1005d55e
xor eax, eax
mov dword [esp + 0x38], edi
test bl, bl
mov dword [esi + 0x3300], eax
jns 0x1005d576
and ebx, 0xffffff7f
mov dword [esp + 0x14], ebx
mov al, al
mov dword [esi + 0x2640], 0x2710
push ecx
pop ecx
mov dword [esi + 0x2644], 0x64
test ch, ch
call fcn.1001c180
mov dword [esi + 0x3374], eax
xchg ebx, eax
xchg ebx, eax
call fcn.1001c180
mov dword [esi + 0x3370], eax
test cl, cl
call fcn.10012c40
cdq
mov ecx, 0x64
idiv ecx
mov ebp, ebp
lea eax, [edx - 1]
cmp eax, 0x1c
ja 0x1005d5d9
push edx
push 0x101d8234
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x1005d5d9
mov dword [esi + 0x3374], ebp
mov ecx, ecx
call fcn.10012c40
cdq
mov ecx, 0x64
idiv ecx
mov ebx, ebx
lea eax, [edx - 1]
cmp eax, 0x1c
ja 0x1005d608
push edx
push 0x101d8238
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x1005d608
mov dword [esi + 0x3370], ebp
push ebx
pop ebx
call fcn.1001c180
mov dword [esi + 0x336c], eax
xchg ebx, eax
xchg ebx, eax
push 0x101828f8
call fcn.1000aeb0
add esp, 4
test al, al
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.1011717a
add esp, 0x28
ret