Function at 0x40d1f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47bab8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.00406e20
push 0x4840cc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x40], 0
call fcn.00402800
add esp, 0x10
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40d39d
cmp byte [0x4a55a8], 0
jne 0x40d39d
call fcn.004412f5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d27a
push 0x80004005
call fcn.004011b0
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.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x483af8
mov byte [esp + 0x40], 3
call fcn.00401ab0
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x40], 2
call fcn.00412920
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x3c], 4
call fcn.004029f0
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 0x40d307
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.004433b9
cmp eax, 6
je 0x40d322
lea eax, [ebp - 0x10]
jmp 0x40d42a
push 0
call fcn.0040a900
add esp, 4
call fcn.00443bc5
test eax, eax
je 0x40d383
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov esi, eax
test esi, esi
je 0x40d383
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 0x40d43c
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401ab0
mov edx, dword [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 5
call fcn.00402800
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, 0x4a55d8
mov byte [esp + 0x34], 6
call fcn.004445b6
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x40d3e1
xor edx, edx
jmp 0x40d3f5
mov edx, edi
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x40d3e6
sub edx, ecx
sar edx, 1
push edx
push edi
mov ecx, eax
call fcn.004017a0
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 0x40d423
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 0x40d448
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 0x40d46d
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 0x40d495
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