Function at 0x401d80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x543edb
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5b01b0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x5b01b0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
push 0x4d
pop eax
push 0x6d
mov word [esp + 0x104], ax
pop eax
push 0x67
mov word [esp + 0x11a], ax
pop eax
push 0x65
pop ecx
push 0x76
mov word [esp + 0x10e], ax
xor eax, eax
mov word [esp + 0x12a], ax
pop eax
push 0x61
mov word [esp + 0x11e], ax
pop eax
push 0x54
mov word [esp + 0x10c], ax
pop eax
push 0x6f
mov word [esp + 0x120], cx
mov word [esp + 0x118], cx
mov word [esp + 0x106], cx
mov word [esp + 0x110], cx
pop ecx
push 0x6b
mov word [esp + 0x112], ax
pop eax
push 0x73
pop edx
push 0x48
mov word [esp + 0x128], ax
pop eax
mov word [esp + 0x11e], ax
push 0x52
mov word [esp + 0x124], cx
mov word [esp + 0x11c], cx
mov word [esp + 0x126], cx
mov word [esp + 0x114], cx
lea ecx, [esp + 0x104]
pop eax
mov word [esp + 0x104], dx
mov word [esp + 0x106], dx
mov word [esp + 0x112], ax
call fcn.004048a0
lea ecx, [esp + 0x34]
mov dword [esi + 0xcc], eax
xor ebx, ebx
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], 0xff
call fcn.0040418f
mov ecx, esi
call fcn.004056b1
push 0xc
call fcn.00403170
mov dword [esp + 0x10], eax
mov dword [esp + 0x138], ebx
test eax, eax
je 0x401ee5
mov ecx, eax
call fcn.00405ed3
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x401eeb
mov edi, ebx
mov dword [esp + 0x10], ebx
or dword [esp + 0x138], 0xffffffff
push 0x55ab18
call fcn.0040df88
call fcn.004043b5
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.0040466a
mov esi, eax
lea ecx, [esp + 0x20]
push 0x58c4f8
mov dword [esp + 0x18], esi
call fcn.0040312c
xor eax, eax
lea ecx, [esp + 0x18]
inc eax
push 0x58c4f8
mov dword [esp + 0x13c], eax
call fcn.0040312c
mov al, bl
mov byte [esp + 0x138], 2
mov ecx, 0xc8
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], bl
call fcn.00404a19
test esi, esi
je 0x4021fa
mov eax, dword [esp + 0x1c]
xor ecx, ecx
inc ecx
cmp eax, ecx
jle 0x4021fa
push 0x70
pop eax
push 0x68
pop edx
mov edi, dword [esp + 0x1c]
mov esi, ecx
push 0x2d
pop ecx
mov word [esp + 0xf6], ax
xor eax, eax
push 0x61
mov word [esp + 0x102], ax
pop eax
mov word [esp + 0xf8], ax
push 0x74
pop eax
mov word [esp + 0xfa], ax
xor eax, eax
mov word [esp + 0xe2], ax
push 0x72
pop eax
mov word [esp + 0xee], ax
xor eax, eax
mov word [esp + 0xfc], dx
mov word [esp + 0xf4], cx
mov word [esp + 0xdc], cx
mov word [esp + 0xf2], ax
mov word [esp + 0xf0], dx
mov word [esp + 0xec], cx
xor eax, eax
lea ecx, [esp + 0xf4]
mov word [esp + 0xe8], ax
push 0x25
pop eax
mov word [esp + 0xe4], ax
push 0x73
pop eax
mov word [esp + 0xe6], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40203e
test dx, dx
je 0x40203a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40203e
add eax, 4
add ecx, 4
test dx, dx
jne 0x402018
mov eax, ebx
jmp 0x402043
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402068
mov eax, dword [esp + 0x14]
push dword [eax + esi*4 + 4]
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00402b51
mov edi, dword [esp + 0x28]
add esp, 0xc
push 0x64
pop eax
mov word [esp + 0xe0], ax
lea ecx, [esp + 0xdc]
push 0x69
pop eax
mov word [esp + 0xde], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4020b2
test dx, dx
je 0x4020ae
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4020b2
add eax, 4
add ecx, 4
test dx, dx
jne 0x40208c
mov eax, ebx
jmp 0x4020b7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4020dc
mov eax, dword [esp + 0x14]
push dword [eax + esi*4 + 4]
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402b51
mov edi, dword [esp + 0x28]
add esp, 0xc
push 0x68
pop eax
mov word [esp + 0xe0], ax
lea edx, [esp + 0x3c]
push 0x73
pop eax
mov word [esp + 0xde], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
mov eax, ecx
mov bx, word [eax]
cmp bx, word [edx]
push 0
pop ebx
jne 0x402132
cmp word [eax], bx
je 0x40212e
mov bx, word [eax + 2]
cmp bx, word [edx + 2]
push 0
mov word [esp + 0x32], bx
pop ebx
jne 0x402132
add eax, 4
add edx, 4
cmp word [esp + 0x2e], bx
jne 0x4020ff
mov eax, ebx
jmp 0x402137
sbb eax, eax
or eax, 1
mov edx, dword [esp + 0x24]
test eax, eax
push 1
pop eax
movzx edx, dl
cmove edx, eax
lea eax, [esp + 0xec]
mov dword [esp + 0x24], edx
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x402177
test dx, dx
je 0x402173
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x402177
add ecx, 4
add eax, 4
test dx, dx
jne 0x402151
mov eax, ebx
jmp 0x40217e
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
mov ecx, dword [esp + 0x28]
test eax, eax
push 1
movzx ecx, cl
pop eax
cmove ecx, eax
inc esi
mov dword [esp + 0x28], ecx
cmp esi, edi
jl 0x401fea
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
test al, al
je 0x4021ed
mov ecx, esi
call fcn.0040229e
push ecx
lea ecx, [esp + 0x48]
call fcn.004031d1
lea eax, [esp + 0x44]
mov byte [esp + 0x138], 3
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0041273d
mov ecx, esi
call fcn.004023be
lea ecx, [esp + 0x44]
mov byte [esp + 0x138], 2
call fcn.00403225
mov ecx, dword [esp + 0x28]
test cl, cl
je 0x4021fa
push 3
mov ecx, esi
call fcn.004023f4
lea ecx, [esp + 0x20]
call fcn.00402ad9
test al, al
jne 0x402250
lea ecx, [esp + 0x18]
call fcn.00402ad9
test al, al
jne 0x402250
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00402ad6
push eax
lea ecx, [esp + 0x24]
call fcn.00402ad6
mov edx, eax
call fcn.00404212
add esp, 0xc
test eax, eax
jne 0x402246
call fcn.0040484b
jmp 0x402250
xor ebx, ebx
cmp dword [esp + 0x10], ebx
setne bl
inc ebx
test edi, edi
je 0x40225f
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
mov ecx, edi
call dword [eax + 4]
mov ecx, ebx
call fcn.00404b0f
lea ecx, [esp + 0x18]
call fcn.00402b65
lea ecx, [esp + 0x20]
call fcn.00402b65
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0052b85c
mov esp, ebp
pop ebp
ret