Function at 0x40e120
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4877d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.00407280
push 0x490340
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x40], 0
call fcn.00403080
add esp, 0x10
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e2cd
cmp byte [0x4b36ac], 0
jne 0x40e2cd
call fcn.0044ba29
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e1aa
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Cant_write_to_file_n_s_nRequest_run_as_administrator._nRestart_program_now_
mov byte [esp + 0x3c], 2
call fcn.00402410
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x48fda4
mov byte [esp + 0x40], 3
call fcn.00402410
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x40], 2
call fcn.00413c80
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x3c], 4
call fcn.004019b0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e237
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
push 0
push 4
push ebp
call fcn.0044bd8b
cmp eax, 6
je 0x40e252
lea eax, [ebp - 0x10]
jmp 0x40e35a
push 0
call fcn.0040b800
add esp, 4
call fcn.0044ec71
test eax, eax
je 0x40e2b3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov esi, eax
test esi, esi
je 0x40e2b3
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push 0x64
push 2
push 0
push 0
push 0x11
push edx
mov dword [esp + 0x38], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x12
push ecx
call edi
lea eax, [ebp - 0x10]
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40e36c
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402410
mov edx, dword [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 5
call fcn.00403080
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, 0x4b36dc
mov byte [esp + 0x34], 6
call fcn.0044fa66
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x40e311
xor edx, edx
jmp 0x40e325
mov edx, edi
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x40e316
sub edx, ecx
sar edx, 1
push edx
push edi
mov ecx, eax
call fcn.00402100
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x30], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e378
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e39d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret