Function at 0x40bc90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ffb7
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [esp + 0x150]
mov ebp, dword [esp + 0x154]
mov dword [esp + 0x2c], ecx
push eax
mov ecx, edi
call fcn.0040cfd0
fldz
xor ebx, ebx
fst qword [esp + 0x5c]
mov eax, 7
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
mov byte [esp + 0xa4], bl
mov byte [esp + 0xa5], bl
mov byte [esp + 0xa6], bl
mov byte [esp + 0xa7], bl
mov dword [esp + 0x148], ebx
fstp qword [esp + 0x64]
lea esi, [edi + 0x100]
mov ecx, esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], 0x64
call fcn.00419360
mov dword [esp + 0x14], eax
mov eax, edx
and edx, 0x7fffffff
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
and eax, 0x80000000
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x14]
mov ecx, 0x72
lea edx, [esp + 0x30]
fchs
faddp st(1)
fstp qword [esp + 0x5c]
call fcn.00432a50
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x74]
mov byte [esp + 0x150], 1
call fcn.00401b70
cmp dword [esp + 0x48], 8
jb 0x40bdc5
mov edx, dword [esp + 0x34]
push edx
call fcn.0045a870
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x14c], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00436cc0
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, ebx
je 0x40be32
mov ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, eax
sar edx, 2
je 0x40be32
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x40be13
call fcn.00478a25
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x14], ecx
jb 0x40be1e
call fcn.00478a25
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
push 0x812c
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 0xac]
call fcn.004163e0
push esi
lea edx, [esp + 0x50]
push edx
lea ecx, [edi + 0x40]
mov byte [esp + 0x150], 3
mov eax, dword [edi + 0x64]
push ecx
lea esi, [esp + 0xb8]
call fcn.00416530
lea edx, [esp + 0x4c]
push edx
call fcn.0041a6c0
add esp, 4
cmp byte [esp + 0xa4], bl
je 0x40bf56
push ebx
push 0x4a9c14
lea esi, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
call fcn.00401c20
mov edx, dword [esp + 0x2c]
mov eax, esi
push eax
mov byte [esp + 0x14c], 4
push ebp
mov ecx, 0xa
mov dword [edi + 0x70], 0xc
call fcn.0040d380
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x40bed2
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0045a870
add esp, 4
lea ecx, [esp + 0xac]
mov byte [esp + 0x148], 2
call fcn.00416460
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40bef7
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jb 0x40bf1c
mov edx, dword [esp + 0x8c]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
jb 0x40bf4c
mov eax, dword [esp + 0x70]
push eax
call fcn.0045a870
add esp, 4
mov eax, 0xc
jmp 0x40bfda
lea ecx, [esp + 0xac]
mov byte [esp + 0x148], 2
call fcn.00416460
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40bf7b
push eax
call fcn.0045a870
add esp, 4
mov esi, 8
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jb 0x40bfa5
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
jb 0x40bfd5
mov edx, dword [esp + 0x70]
push edx
call fcn.0045a870
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00478599
add esp, 0x13c
ret 8