Function at 0x402b90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40f828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
mov dword [0x4155cc], eax
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.00407bd0
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebp
test eax, eax
je 0x402bff
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x402c0b
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x18]
push edx
push ebp
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x402c46
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402c42
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x402c6a
xor esi, esi
jmp 0x402c6a
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call fcn.00408140
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
and esi, 0xffff
cmp esi, 0x3f0
jne 0x402c8c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00407ec0
add esp, 8
cmp eax, ebp
jl 0x402cb2
mov eax, dword [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00407ca0
test eax, eax
jl 0x402cb2
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea ecx, [esp + 0x28]
call fcn.00407db0
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x402cc3
push eax
call fcn.004097e8
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x402cd4
push eax
call fcn.004097e8
add esp, 4
mov edx, dword [esp + 0x20]
push ebp
push ebp
push ebp
push 3
push 4
push ebp
push ebp
push 0xffffffffffffffff
push edx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov eax, 0x415428
test eax, eax
je 0x402d6e
mov esi, dword [0x415438]
xor edi, edi
cmp dword [esi], ebp
je 0x402d6e
mov ebp, dword [sym.imp.ole32.dll_CoRegisterClassObject]
lea ebx, [esi + 0x14]
test edi, edi
jne 0x402d68
mov eax, dword [esi + 8]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x402d4c
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
push 0x410618
push edx
call eax
mov edi, eax
test edi, edi
jl 0x402d3e
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push ebx
push 1
push 0x14
push eax
push ecx
call ebp
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402d4c
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x415428], 0x64
jne 0x402d5d
add esi, 0x1c
add ebx, 0x1c
jmp 0x402d63
add esi, 0x24
add ebx, 0x24
cmp dword [esi], 0
jne 0x402d08
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
push str.Service_started
push ebx
call fcn.004029c0
mov eax, dword [ebx + 0x1a8]
add esp, 8
cmp eax, ebp
je 0x402d8f
push 4
mov ecx, ebx
call fcn.00402b60
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebp
push ebp
lea eax, [esp + 0x3c]
push ebp
push eax
call esi
test eax, eax
je 0x402dec
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esp + 0x38]
cmp eax, 0x466
jne 0x402dc2
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.00403770
jmp 0x402dde
cmp eax, 0x467
jne 0x402dd7
lea edx, [esp + 0x34]
mov ecx, ebx
push edx
call fcn.004035d0
jmp 0x402dde
lea eax, [esp + 0x34]
push eax
call edi
push ebp
push ebp
lea ecx, [esp + 0x3c]
push ebp
push ecx
call esi
test eax, eax
jne 0x402da9
mov edx, 0x415428
test edx, edx
je 0x402e26
mov esi, dword [0x415438]
xor eax, eax
cmp dword [esi], ebp
je 0x402e26
mov edi, dword [sym.imp.ole32.dll_CoRevokeClassObject]
cmp eax, ebp
jne 0x402e26
mov eax, dword [esi + 0x14]
push eax
call edi
cmp dword [0x415428], 0x64
jne 0x402e1f
add esi, 0x1c
jmp 0x402e22
add esi, 0x24
cmp dword [esi], ebp
jne 0x402e07
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x402e3d
push eax
call fcn.00408980
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x402e4e
push eax
call fcn.004097e8
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x402e5f
push eax
call fcn.004097e8
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x402e70
push eax
call fcn.004097e8
add esp, 4
mov eax, dword [esp + 0x30]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x402e85
push eax
call fcn.004097e8
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret