Function at 0x1008093
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub esp, 0x18
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0xf8
add ecx, 0x2c0000
push ecx
push dword [eax + 0x18]
call edi
mov esi, eax
test esi, esi
je 0x100e645
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], eax
and dword [ebp - 4], 1
push ebx
mov dword [esi], eax
je 0x100e74f
and dword [esi + 0x6c], 0
mov ecx, dword [ebp + 0x34]
mov eax, dword [0x1038080]
test ecx, ecx
je 0x100e64f
mov ebx, dword [ebp + 0x10]
push dword [0x1038334]
imul ebx, ebx, 0x18
push ecx
add eax, ebx
push dword [eax + 0xc]
movzx ecx, byte [eax + 0x14]
push ecx
push dword [eax + 4]
push dword [ebp + 0x10]
push esi
call fcn.010073b6
test eax, eax
jl 0x100e65e
mov eax, dword [0x1038080]
test byte [ebx + eax + 0x14], 4
jne 0x100e67c
or dword [esi], 4
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
push 0
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.01004bbf
mov cx, word [ebp + 0x14]
mov ax, word [ebp - 0x18]
cmp cx, ax
mov word [ebp + 0x14], cx
jle 0x100e684
mov cx, word [ebp + 0xc]
cmp cx, ax
mov word [ebp + 0xc], cx
jle 0x100e68d
or dword [esi + 0x58], 0xffffffff
test byte [0x10382f8], 1
jne 0x100e696
xor eax, eax
mov word [esi + 0x44], ax
mov eax, dword fs:[0x18]
movsx edx, word [ebp + 0x16]
mov ecx, dword [0x1038030]
imul edx, edx, 0x1c
mov eax, dword [eax + 0x30]
push edx
add ecx, 0x2c0000
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 0x3c], eax
test eax, eax
je 0x100e6bc
mov eax, dword fs:[0x18]
movsx edx, word [ebp + 0x16]
movsx ebx, word [ebp + 0x14]
mov ecx, dword [0x1038030]
imul edx, ebx
mov eax, dword [eax + 0x30]
add edx, edx
push edx
add ecx, 0x2c0000
push ecx
push dword [eax + 0x18]
call edi
xor ebx, ebx
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x100e6c9
lea edi, [esi + 0xcc]
push edi
push dword [ebp + 0x14]
call fcn.010074ba
test eax, eax
je 0x100e6e1
mov ecx, dword [edi]
xor eax, eax
cmp ax, word [ebp + 0x16]
mov dword [ebp + 0x20], ebx
mov ebx, dword [esi + 0x40]
mov dword [ebp + 0x10], ecx
jge 0x10082c0
xor edi, edi
mov eax, dword [esi + 0x3c]
mov dx, word [ebp + 0x14]
mov word [edi + eax + 4], dx
mov eax, dword [esi + 0x3c]
mov edx, 0xffffffff
mov word [edi + eax + 6], dx
mov eax, dword [esi + 0x3c]
xor edx, edx
mov word [edi + eax], dx
mov eax, dword [esi + 0x3c]
or edx, 0xffffffff
mov word [edi + eax + 2], dx
mov eax, dword [esi + 0x3c]
mov dword [edi + eax + 8], ebx
mov eax, dword [esi + 0x3c]
mov dword [edi + eax + 0xc], ecx
xor edx, edx
xor eax, eax
cmp dx, word [ebp + 0x14]
jge 0x1008270
nop
nop
nop
nop
nop
nop
push 0x20
pop edx
mov word [ebx + eax*2], dx
movsx edx, word [ebp + 0x14]
inc eax
cmp eax, edx
jl 0x1008260
test ecx, ecx
jne 0x100e70d
mov eax, dword [esi + 0x3c]
xor edx, edx
inc edx
mov word [edi + eax + 0x10], dx
mov dx, word [ebp + 0x14]
mov eax, dword [esi + 0x3c]
mov word [edi + eax + 0x12], dx
mov eax, dword [esi + 0x3c]
mov dx, word [ebp + 0x1a]
mov word [edi + eax + 0x14], dx
mov eax, dword [esi + 0x3c]
add eax, edi
inc dword [ebp + 0x20]
lea edx, [eax + 0x12]
mov dword [eax + 0x18], edx
movsx eax, word [ebp + 0x14]
lea ebx, [ebx + eax*2]
movsx eax, word [ebp + 0x16]
add edi, 0x1c
cmp dword [ebp + 0x20], eax
jl 0x1008215
mov ecx, dword [ebp + 0x30]
xor eax, eax
mov word [esi + 0x4c], ax
mov word [esi + 0x4e], ax
mov byte [esi + 0x46], al
mov byte [esi + 0x48], al
mov eax, dword [esi + 0x74]
shr eax, 0x10
cwde
imul eax, ecx
add eax, 0x63
mov dword [esi + 0x50], ecx
xor edx, edx
push 0x64
pop ecx
div ecx
mov byte [esi + 0x47], 1
mov dword [esi + 0x68], 2
mov word [esi + 0x54], ax
xor eax, eax
mov word [esi + 0x56], ax
mov byte [esi + 0x49], al
mov byte [esi + 0x4a], al
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], ax
mov word [esi + 0xe], ax
mov eax, dword [ebp + 0xc]
dec eax
mov word [esi + 0x10], ax
mov eax, dword [ebp + 0xe]
dec eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x14]
cmp word [esi + 0x10], ax
jge 0x100e72c
mov eax, dword [ebp - 0x12]
cmp word [esi + 0x12], ax
jge 0x100e73b
mov ax, word [ebp + 0xc]
cmp ax, word [ebp + 0x14]
sete al
mov byte [esi + 0x1a], al
mov ax, word [ebp + 0xe]
cmp ax, word [ebp + 0x16]
mov byte [esi + 0xc8], 1
sete al
mov byte [esi + 0x1b], al
xor eax, eax
mov word [esi + 0x64], ax
mov word [esi + 0x66], ax
mov byte [esi + 0xc9], 1
mov byte [esi + 0x1c], 0
mov eax, dword [0x1038034]
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], eax
xor eax, eax
xor edi, edi
mov word [esi + 0x14], ax
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], edi
mov dword [esi + 4], 3
mov dword [esi + 0xdc], edi
mov ax, word [ebp + 0x1a]
mov word [esi + 0x16], ax
mov ax, word [ebp + 0x1e]
mov word [esi + 0x18], ax
xor eax, eax
mov word [esi + 0x38], ax
mov word [esi + 0x3a], ax
mov byte [esi + 0xe0], al
mov byte [esi + 0xf0], al
cmp dword [ebp - 4], edi
je 0x10083da
push esi
call fcn.010083fa
mov eax, dword [ebp + 8]
mov byte [esi + 0xe2], 0
mov dword [esi + 0xf4], edi
mov dword [eax], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x30
mov eax, 0xc0000017
jmp 0x10083ef
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 0x18
mov ecx, dword [ecx + eax + 0x10]
jmp 0x10080f4
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
jmp 0x10083ee
and dword [esi], 0xfffffffb
jmp 0x1008132
mov word [ebp + 0x14], ax
jmp 0x1008159
mov word [ebp + 0xc], ax
jmp 0x100816a
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x60], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [0x1038334]
call fcn.01020898
mov dword [esi + 0x58], eax
jmp 0x100817b
push esi
call fcn.0101c1ed
mov edi, 0xc0000017
jmp 0x100e660
push dword [esi + 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100e6bc
push dword [esi + 0x40]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
jmp 0x100e6bc
movsx eax, word [ebp + 0x14]
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
movsx eax, word [ebp + 0x14]
add esp, 0xc
add dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
jmp 0x1008278
dec eax
mov word [esi + 0x10], ax
inc eax
mov word [ebp + 0xc], ax
jmp 0x1008332
dec eax
mov word [esi + 0x12], ax
sub ax, word [esi + 0xe]
inc ax
mov word [ebp + 0xe], ax
jmp 0x100833f
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push esi
push dword [ebp + 0x24]
call fcn.01012591
test eax, eax
jl 0x100e65e
mov byte [esi + 0x1a], 1
mov byte [esi + 0x1b], 1
jmp 0x1008373