Function at 0x405ef0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x587cec
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push 1
push 0x654c4c
mov esi, ecx
mov dword [esp + 0x38], 0x654c4c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [esp + 0x30], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x280], ecx
je 0x405f67
xor eax, eax
jmp 0x4061ee
mov eax, dword [esi + 0xac]
sub eax, 1
je 0x405fb9
sub eax, 1
jne 0x405fb2
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov esi, dword [esi + 0x84]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call eax
test eax, eax
jl 0x405fb2
fldz
mov ecx, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push ecx
call fcn.0055f7e0
add esp, 0xc
mov dword [edi], eax
mov dword [edi + 4], edx
xor eax, eax
jmp 0x4061e4
mov eax, dword [esi + 0x74]
mov edx, dword [eax]
push ebx
push eax
mov eax, dword [edx + 0x30]
call eax
mov eax, dword [esi + 0x74]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push edi
push eax
call edx
xor edi, edi
cmp byte [esi + 0x25], 0
je 0x40612e
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov byte [esp + 0x280], 1
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x406111
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x40610d
mov dword [esp + 0x14], edi
push edi
mov byte [esp + 0x284], 2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4060f5
mov bl, 3
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x1c], ecx
je 0x40605c
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x59da1c
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
mov byte [esp + 0x280], bl
jne 0x406099
cmp eax, edi
mov byte [esp + 0x280], 2
je 0x40607f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x406035
jmp 0x4060f5
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
mov edx, dword [ecx]
push eax
push ecx
mov ecx, dword [edx + 0x34]
call ecx
test eax, eax
jl 0x4060dd
mov eax, dword [esp + 0x24]
cmp eax, edi
jle 0x4060dd
push eax
lea edx, [esp + 0x38]
push 0x5eaad4
push edx
call fcn.00474269
mov esi, dword [esi + 0xb0]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call edx
mov byte [esp + 0x280], 2
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4060f5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x280], 1
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40610d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x18]
cmp ecx, edi
mov byte [esp + 0x280], 0
je 0x4061df
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
jmp 0x4061df
mov eax, dword [esi + 0x7c]
cmp eax, edi
je 0x406214
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
test eax, eax
jl 0x4061bd
mov ebx, dword [esp + 0x28]
cmp ebx, edi
jl 0x4061bd
mov edi, dword [esp + 0x24]
jg 0x406171
test edi, edi
jbe 0x4061bd
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jg 0x4061bd
mov eax, dword [esp + 0x1c]
jl 0x406183
cmp eax, edi
jae 0x4061bd
push 0
push 0x64
push ecx
push eax
call fcn.00473670
push ebx
push edi
push edx
push eax
call fcn.004735c0
push edx
push eax
lea eax, [esp + 0x3c]
push 0x5eaad4
push eax
call fcn.00474269
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
add esp, 0x10
lea eax, [esp + 0x34]
push eax
jmp 0x4061dd
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
cmp eax, 2
jne 0x4061df
push str.ck_W
mov esi, dword [esi + 0xb0]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov eax, 1
mov dword [0x654c4c], 0
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004721e8
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
cmp eax, 1
jne 0x4061cb
push 0x5eaacc
jmp 0x4061d0