Function at 0x406150
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4334f9
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edi, 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], edi
call fcn.0040c030
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 2
call fcn.0040c030
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 3
call fcn.0040c030
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 4
call fcn.0040c030
push 0x43653f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 5
call fcn.0040c060
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 6
call fcn.0040c380
lea ecx, [esp + 0x3c]
call fcn.0040c280
lea ecx, [esp + 0x3c]
call fcn.0040c310
lea ecx, [esp + 0x3c]
call fcn.00419120
mov esi, eax
push 0x4369c8
push esi
call fcn.0041a5c0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40627d
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406230
sub eax, edx
jne 0x406259
mov esi, dword [esp + 0x88]
push 0x43653f
mov ecx, esi
call fcn.0040c060
mov dword [esp + 0x14], edi
jmp 0x4065c7
cmp byte [eax + esi - 1], 0x5c
jne 0x406265
mov byte [eax + esi - 1], 0
push esi
mov esi, dword [esp + 0x8c]
mov ecx, esi
call fcn.0040c060
mov dword [esp + 0x14], edi
jmp 0x4065c7
lea ebx, [ebp + 1]
push 0x4369c8
push ebx
call fcn.0041a5c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4062e5
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4062a0
sub eax, edx
jne 0x4062c5
mov esi, dword [esp + 0x88]
push 0x43653f
mov ecx, esi
call fcn.0040c060
jmp 0x4065bf
cmp byte [eax + esi - 1], 0x5c
jne 0x4062d1
mov byte [eax + esi - 1], 0
push esi
mov esi, dword [esp + 0x8c]
mov ecx, esi
call fcn.0040c060
jmp 0x4065bf
push esi
lea ecx, [esp + 0x4c]
mov byte [ebp], 0
call fcn.0040c3c0
push ebx
lea ecx, [esp + 0x34]
mov byte [edi], 0
call fcn.0040c3c0
add edi, 1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406308
sub eax, edx
lea ecx, [esp + 0x24]
jne 0x406320
push 0x43653f
jmp 0x406325
mov byte [edi + eax], 0
push edi
call fcn.0040c3c0
push str.csidl_system
lea ecx, [esp + 0x34]
call fcn.0040c1a0
test eax, eax
jne 0x406360
xor ecx, ecx
cmp dword [esp + 0x98], ecx
lea edx, [esp + 0x54]
sete cl
push ecx
push edx
call fcn.0040cd80
add esp, 8
mov byte [esp + 0x80], 7
jmp 0x406387
push str.csidl_windows
lea ecx, [esp + 0x34]
call fcn.0040c1a0
test eax, eax
jne 0x4063ae
lea eax, [esp + 0x54]
push eax
call fcn.0040d1c0
add esp, 4
mov byte [esp + 0x80], 8
mov ecx, eax
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 6
call fcn.0040c0f0
jmp 0x406521
push str.csidl_program_files_common
lea ecx, [esp + 0x34]
call fcn.0040c1a0
test eax, eax
jne 0x406462
lea ecx, [esp + 0x60]
call fcn.0040b8a0
mov bl, 9
push 0x43653f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], bl
call fcn.0040c3c0
mov ecx, dword [esp + 0x98]
push ecx
push 1
push 1
push str.SoftwareMicrosoftWindowsCurrentVersion
push closesocket
lea ecx, [esp + 0x74]
call fcn.0040b910
test eax, eax
je 0x40644c
push str.CommonFilesDir
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x68]
call fcn.0040b9d0
mov ecx, eax
mov byte [esp + 0x80], 0xa
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], bl
call fcn.0040c0f0
lea ecx, [esp + 0x60]
call fcn.0040b9b0
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 6
call fcn.0040bd60
jmp 0x406521
push str.csidl_program_files
lea ecx, [esp + 0x34]
call fcn.0040c1a0
test eax, eax
jne 0x406513
lea ecx, [esp + 0x60]
call fcn.0040b8a0
mov bl, 0xb
push 0x43653f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], bl
call fcn.0040c3c0
mov eax, dword [esp + 0x98]
push eax
push 1
push 1
push str.SoftwareMicrosoftWindowsCurrentVersion
push closesocket
lea ecx, [esp + 0x74]
call fcn.0040b910
test eax, eax
je 0x406500
push str.ProgramFilesDir
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x68]
call fcn.0040b9d0
mov ecx, eax
mov byte [esp + 0x80], 0xc
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], bl
call fcn.0040c0f0
lea ecx, [esp + 0x60]
call fcn.0040b9b0
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 6
call fcn.0040bd60
jmp 0x406521
push 0x43653f
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x48]
call fcn.0040c280
lea ecx, [esp + 0x3c]
call fcn.0040c310
lea ecx, [esp + 0x24]
call fcn.0040c280
lea ecx, [esp + 0x24]
call fcn.0040c310
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x50]
call fcn.0040c660
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x58]
mov bl, 0xd
push edx
mov ecx, eax
mov byte [esp + 0x88], bl
call fcn.0040c660
mov ecx, eax
mov byte [esp + 0x80], 0xe
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], bl
call fcn.0040c0f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 6
call fcn.0040c0f0
mov esi, dword [esp + 0x88]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040c500
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 5
call fcn.0040c0f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 4
call fcn.0040c0f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 3
call fcn.0040c0f0
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 2
call fcn.0040c0f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.0040c0f0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 0
call fcn.0040c0f0
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret