Function at 0x40bf40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x490d1c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.00406230
push 0x475120
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x40], 0
call fcn.00402c10
add esp, 0x10
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40c0ed
cmp byte [0x492128], 0
jne 0x40c0ed
call fcn.0043b055
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bfca
push 0x80004005
call fcn.00401530
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.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x474c40
mov byte [esp + 0x40], 3
call fcn.00401e60
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x40], 2
call fcn.004106c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x3c], 4
call fcn.00402e00
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 0x40c057
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.0043d2c4
cmp eax, 6
je 0x40c072
lea eax, [ebp - 0x10]
jmp 0x40c17a
push 0
call fcn.004095e0
add esp, 4
call fcn.0043db42
test eax, eax
je 0x40c0d3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov esi, eax
test esi, esi
je 0x40c0d3
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 0x40c18c
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401e60
mov edx, dword [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 5
call fcn.00402c10
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, 0x492158
mov byte [esp + 0x34], 6
call fcn.0043e55c
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x40c131
xor edx, edx
jmp 0x40c145
mov edx, edi
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x40c136
sub edx, ecx
sar edx, 1
push edx
push edi
mov ecx, eax
call fcn.00401b50
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 0x40c173
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 0x40c198
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 0x40c1bd
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 0x40c1e5
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