Function at 0x40de50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x45f767
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c003c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
xor edi, edi
mov dword [eax], edi
mov eax, dword [esp + 0x48]
push eax
call dword [0x46a894]
push 0x14
mov dword [esp + 0x40], edi
mov dword [esi], 0x46d634
mov dword [esi + 8], 0x46d614
call fcn.0045dcdc
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 1
cmp ebx, edi
je 0x40dede
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push edi
mov ecx, ebx
mov dword [eax], edi
call dword [0x46bbdc]
mov dword [ebx], 0x46c20c
mov dword [ebx + 8], 0x46c1ec
jmp 0x40dee0
xor ebx, ebx
push 0x14
mov byte [esp + 0x40], 0
mov dword [esi + 0x14], ebx
call fcn.0045dcdc
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 2
cmp ebx, edi
je 0x40df1b
push edi
push 1
mov ecx, ebx
call dword [0x46a890]
mov dword [ebx], 0x46d544
mov dword [ebx + 8], 0x46d524
jmp 0x40df1d
xor ebx, ebx
push 0x18
mov byte [esp + 0x40], 0
mov dword [esi + 0x18], ebx
call fcn.0045dcdc
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0x3c], 3
cmp eax, edi
je 0x40df46
push edi
mov ecx, eax
call fcn.0040da60
jmp 0x40df48
xor eax, eax
push 0xffffffffffffffff
push 0x46d514
mov byte [esp + 0x44], 0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
call dword [0x46a64c]
add esp, 8
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov byte [esp + 0x40], 4
call dword [0x46a74c]
mov edx, dword [esp + 0x44]
mov byte [esp + 0x3c], 0
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40df99
mov ecx, dword [esp + 0x44]
push ecx
call dword [0x46a75c]
add esp, 4
push 0x14
call fcn.0045dcdc
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 5
cmp ebx, edi
je 0x40dfd7
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push esi
mov ecx, ebx
mov dword [eax], edi
call dword [0x46a88c]
mov dword [ebx], 0x46d44c
mov dword [ebx + 8], 0x46d430
mov dword [esp + 0x20], ebx
jmp 0x40dfdb
mov dword [esp + 0x20], edi
push 0x10
mov byte [esp + 0x40], 0
call fcn.0045dcdc
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 6
cmp ebx, edi
je 0x40e019
mov edx, dword [esp + 0x20]
push edx
mov ecx, ebx
call dword [0x46bbcc]
mov dword [ebx], 0x46c404
mov dword [ebx + 8], 0x46c3c4
mov dword [esp + 0x1c], ebx
jmp 0x40e01d
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x1c]
push 5
mov byte [esp + 0x40], 0
call dword [0x46a888]
push 0x10
call fcn.0045dcdc
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 7
cmp ebx, edi
je 0x40e062
mov ecx, ebx
call dword [0x46bbd4]
mov dword [ebx], 0x46c36c
mov dword [ebx + 8], 0x46c32c
mov dword [esp + 0x18], ebx
jmp 0x40e068
mov dword [esp + 0x18], edi
mov ebx, edi
mov ecx, dword [esi + 0x18]
push 0x64
push edi
mov byte [esp + 0x44], 0
call dword [0x46a884]
mov ecx, dword [esi + 0x18]
push edi
call dword [0x46b748]
mov ebp, dword [0x46bbf0]
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
mov dword [eax], edi
mov eax, dword [esi + 0x14]
push edi
push eax
mov ecx, ebx
call ebp
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
mov dword [eax], edi
mov ecx, dword [esi + 0x18]
push edi
push ecx
mov ecx, ebx
call ebp
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push edx
call dword [0x46a880]
mov ebp, dword [0x4c0084]
push 0x14
call fcn.0045dcdc
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 8
cmp ebx, edi
je 0x40e0f1
push esi
mov ecx, ebx
call dword [0x46a83c]
mov dword [ebx], 0x46d364
mov dword [ebx + 8], 0x46d344
mov edi, ebx
mov eax, dword [ebp + 0x18]
mov ebx, dword [0x46a838]
push eax
mov ecx, edi
mov byte [esp + 0x40], 0
call ebx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, edi
call ebx
push 0xffffffffffffffff
push 0x46d320
call dword [0x46a64c]
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 9
call dword [0x46a87c]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x3c], 0xb
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40e154
mov eax, dword [esp + 0x14]
push eax
call dword [0x46a75c]
add esp, 4
push 0x14
call fcn.0045dcdc
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0x3c], 0xc
test eax, eax
je 0x40e18c
push 0
mov ecx, eax
call dword [0x46a878]
mov eax, dword [esp + 0x44]
mov dword [eax], 0x46d24c
mov dword [eax + 8], 0x46d230
mov dword [esp + 0x44], eax
jmp 0x40e194
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x44]
push 2
mov byte [esp + 0x40], 0xb
call dword [0x46a874]
push edi
mov edi, dword [esp + 0x48]
mov ecx, edi
call dword [0x46a870]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call dword [0x46a86c]
push 0x14
call fcn.0045dcdc
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
mov byte [esp + 0x3c], 0xd
test edi, edi
je 0x40e1f1
push 0
mov ecx, edi
call dword [0x46a868]
mov dword [edi], 0x46d164
mov dword [edi + 8], 0x46d144
jmp 0x40e1f3
xor edi, edi
push 0
mov ecx, edi
mov byte [esp + 0x40], 0xb
call dword [0x46a864]
push 0
mov ecx, edi
call dword [0x46a860]
mov eax, 0x10
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [0x46a85c]
mov eax, dword [esp + 0x44]
push eax
mov ecx, edi
call dword [0x46a858]
mov eax, dword [ebp + 0x38]
push eax
mov ecx, edi
call ebx
mov eax, dword [ebp + 0x3c]
push eax
mov ecx, edi
call ebx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, edi
call ebx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, edi
call ebx
mov ecx, edi
call dword [0x46a854]
mov ebp, dword [ebp + 0x40]
push ebp
mov ecx, edi
call ebx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
push ecx
mov ecx, ebx
call dword [0x46bbf4]
mov ebp, dword [0x46bbf0]
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
mov dword [eax], 0
mov edx, dword [esi + 0x1c]
push 0
push edx
mov ecx, ebx
call ebp
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
push 0
push edi
mov ecx, ebx
mov dword [eax], 0
call ebp
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call dword [0x46a850]
mov ecx, esi
call fcn.0040d990
mov ecx, dword [esi + 0x18]
mov edi, dword [0x46a750]
push 0
push 0x46d128
push esi
push 0x46d114
push ecx
call edi
add esp, 0x14
mov ecx, esi
call fcn.0040d800
mov edx, dword [esi + 0x1c]
push 0
push 0x46d100
push edx
push 0x46d0e4
push esi
call edi
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call dword [0x46a84c]
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4