Function at 0x401e40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4de541
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x517050]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x24]
call fcn.0041b9ac
push 0
push 0x40
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x14c], 0
call fcn.0041bf61
test eax, eax
lea ecx, [esp + 0x24]
jne 0x401ebe
mov dword [esp + 0x140], 0xffffffff
call fcn.0041bb6c
xor eax, eax
jmp 0x40218b
mov esi, dword [0x5302e4]
neg esi
push 0
sbb esi, esi
push 0
and esi, 0xe
push 0x10
add esi, 0x3a8
call fcn.0041b720
push 0x100
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041b695
push 0
push 0
push 0x110
lea ecx, [esp + 0x30]
call fcn.0041b720
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041b695
push 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x2c]
call fcn.0041b695
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041b695
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
bswap ecx
bswap eax
push 0
mov dword [esp + 0x1c], ecx
bswap edx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
call fcn.0041b720
mov eax, dword [esp + 0x18]
shr eax, 5
cmp eax, 0x400
mov dword [0x51b980], eax
jbe 0x401f7a
mov dword [0x51b980], 0x400
mov eax, dword [esp + 0x14]
push eax
call fcn.0041b40f
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
mov byte [esp + 0x140], 1
mov ecx, dword [esp + 0x14]
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.0041b695
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
je 0x401fda
push eax
call fcn.0041b40f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebp, eax
push edx
push ebp
lea ebx, [esp + 0x40]
mov eax, edi
call fcn.00401000
push edi
mov dword [esp + 0x2c], ebp
call fcn.0041b414
add esp, 0x10
mov edi, ebp
xor ebp, ebp
cmp dword [0x51b980], ebp
jbe 0x402018
mov ebx, 0x5296e0
lea esp, [esp]
push 0xc
push ebx
push 0xffffffffffffffff
push edi
push 0
push esi
mov byte [edi + 0xc], 0
call dword [fcn.00520fbc]
add ebp, 1
add edi, 0x20
add ebx, 0x1a
cmp ebp, dword [0x51b980]
jb 0x401ff0
mov edi, dword [esp + 0x1c]
push edi
mov byte [esp + 0x144], 0
call fcn.0041b414
add esp, 4
push 0
push 0
push 0x11c
lea ecx, [esp + 0x30]
call fcn.0041b720
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041b695
push 4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041b695
push 4
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
call fcn.0041b695
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
bswap ecx
bswap eax
push 0
mov dword [esp + 0x1c], ecx
bswap edx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
call fcn.0041b720
mov eax, 0x51eb851f
mul dword [esp + 0x18]
shr edx, 3
add edx, 0x32
mov dword [0x51b984], 0xff
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x14]
push eax
call fcn.0041b40f
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
mov byte [esp + 0x140], 2
mov ecx, dword [esp + 0x14]
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.0041b695
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
je 0x40211b
push eax
call fcn.0041b40f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebp, eax
push edx
push ebp
lea ebx, [esp + 0x40]
mov eax, edi
call fcn.00401000
push edi
mov dword [esp + 0x2c], ebp
call fcn.0041b414
add esp, 0x10
mov edi, ebp
xor ebp, ebp
cmp dword [0x51b984], ebp
jbe 0x402158
mov ebx, 0x5274e0
lea ebx, [ebx]
jmp 0x57a3df
push edi
mov byte [esp + 0x144], 0
call fcn.0041b414
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0041b94a
lea ecx, [esp + 0x24]
mov dword [esp + 0x140], 0xffffffff
call fcn.0041bb6c
mov eax, 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0043d16a
add esp, 0x130
ret