Function at 0x407d20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4630c8]
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.0040ec40
push str.ServiceDetectionService:_please_wait_...
push 3
mov dword [esp + 0x40], ebx
call fcn.00410650
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.0040faa0
add esp, 0xc
cmp eax, ebx
je 0x407e81
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.00401b00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ec70
push 0x45607c
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 0x407e0d
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431e5a
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ec70
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e4d
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00401bf0
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ec70
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 0x408087
push str.ServiceDetectionService:_service_already_exists._Uninstalling...
push 3
call fcn.00410650
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.0040f860
add esp, 0xc
cmp eax, ebx
je 0x407f6c
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.00401b00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ec70
push 0x45607c
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 0x407f30
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431e5a
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 5
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ec70
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e4d
mov ecx, dword [eax - 0xc]
push ecx
jmp 0x407e40
sub esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.00401050
call fcn.0040f760
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x14]
je 0x408038
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.00401b00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ec70
push 0x45607c
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 0x407ffc
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431e5a
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ec70
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e4d
mov eax, dword [eax - 0xc]
push eax
jmp 0x407e40
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.00401b00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ec70
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x40807c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00401bf0
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ec70
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