Function at 0x403830
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x410ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x18], ebx
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0xbc]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc0]
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x14], esi
lea ebp, [eax + eax*2]
mov eax, dword [edx - 8]
sete cl
add ebp, ecx
inc eax
push eax
mov dword [esp + 0xa4], esi
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0xc0]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xc0
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x24], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xbc]
mov ecx, esi
mov edi, dword [esi]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x14], eax
call eax
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00402ad0
mov edx, dword [edi + 0x64]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0xa8]
lea eax, [esp + 0x34]
not ecx
dec ecx
mov dword [esp + 0x1c], edx
push ecx
mov ecx, dword [esp + 0xb0]
push eax
push ecx
push ebx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00402ad0
push 0x800000
mov ecx, esi
call dword [esp + 0x14]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0xac]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ebp*4]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [ebx + eax*8 + 0x14]
push edx
push ecx
mov ecx, esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00402ad0
push 0x8000
mov ecx, esi
call dword [esp + 0x14]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0xb4]
dec ecx
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0xb4]
sub eax, ecx
cdq
sub eax, edx
lea edx, [ebp + ebp*4]
sar eax, 1
add eax, ecx
mov ecx, esi
push eax
lea eax, [ebx + edx*2]
push eax
call dword [esp + 0x2c]
xor ebp, ebp
add ebx, 0x96
mov dword [esp + 0x28], 0x4b0
mov dword [esp + 0x2c], 0x12c
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.00402ad0
mov ebx, dword [esp + 0x24]
mov eax, ebp
sub eax, 0
je 0x403a1e
dec eax
je 0x403a17
dec eax
jne 0x403a29
push 0xc0
jmp 0x403a23
push 0xc00000
jmp 0x403a23
push 0x808080
mov ecx, esi
call dword [esp + 0x14]
add ebx, 0x190
test ebp, ebp
jle 0x403a50
lea eax, [esp + 0x28]
lea ecx, [edi + 0x44]
mov edx, ebp
mov edi, dword [ecx]
add ecx, 4
imul edi, dword [eax]
add ebx, edi
add eax, 4
dec edx
jne 0x403a3c
mov edi, dword [esp + 0x18]
cmp dword [edi + ebp*4 + 0x44], 1
jne 0x403a7a
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0xb0]
push eax
push ecx
push ebx
mov ecx, esi
call dword [esp + 0x2c]
inc ebp
cmp ebp, 3
jl 0x4039ea
push 0
mov ecx, esi
call dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xbc]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0040fe02
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x94
ret 0x1c