Function at 0x407f00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b178
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], ebx
call fcn.004114f0
push str.ServiceDetectionService:_please_wait_...
push 3
mov dword [esp + 0x40], ebx
call fcn.00411380
add esp, 8
lea eax, [esp + 0x10]
push eax
sub esp, 8
add esi, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.00401050
call fcn.004107d0
add esp, 0xc
cmp eax, ebx
je 0x408061
push str.ServiceDetectionService:_IsServiceInstalled_failed._Permission_was_refused._User_has_insufficient_rights_to_perform_this_installation_or_Windows_Service_Manager_is_open.
lea ecx, [esp + 0x18]
call fcn.004010e0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.00401d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00411520
push 0x4581ec
lea ecx, [esp + 0x18]
call fcn.004010e0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 2
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x38], 3
mov eax, dword [esi]
sub eax, 0x10
mov edi, 1
cmp dword [eax + 0xc], edi
jle 0x407fed
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00411520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x40802d
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00411520
mov eax, 0x64
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], ebx
je 0x408267
push str.ServiceDetectionService:_service_already_exists._Uninstalling...
push 3
call fcn.00411380
add esp, 8
mov edi, 1
push edi
sub esp, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.00401050
call fcn.00410590
add esp, 0xc
cmp eax, ebx
je 0x40814c
push str.ServiceDetectionService:_Couldnt_stop_service._Permission_was_refused._User_has_insufficient_rights_to_perform_this_installation_or_Windows_Service_Manager_is_open.
lea ecx, [esp + 0x18]
call fcn.004010e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 4
call fcn.00401d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00411520
push 0x4581ec
lea ecx, [esp + 0x18]
call fcn.004010e0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 5
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x38], 6
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], edi
jle 0x408110
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 5
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00411520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x40802d
mov ecx, dword [eax - 0xc]
push ecx
jmp 0x408020
sub esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.00401050
call fcn.00410490
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x14]
je 0x408218
push str.ServiceDetectionService:_Couldnt_delete_service._Permission_was_refused._User_has_insufficient_rights_to_perform_this_installation_or_Windows_Service_Manager_is_open.
call fcn.004010e0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 7
call fcn.00401d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00411520
push 0x4581ec
lea ecx, [esp + 0x18]
call fcn.004010e0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 8
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x38], 9
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], edi
jle 0x4081dc
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00411520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x40802d
mov eax, dword [eax - 0xc]
push eax
jmp 0x408020
push str.ServiceDetectionService:_service_deleted_successfully
call fcn.004010e0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0xa
call fcn.00401d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00411520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x40825c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret