Function at 0x407d10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4499d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4630d8]
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.0040ed50
push str.ServiceDetectionService:_please_wait_...
push 3
mov dword [esp + 0x40], ebx
call fcn.0040ebe0
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.0040fbb0
add esp, 0xc
cmp eax, ebx
je 0x407e71
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.00401b30
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ed80
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 0x407dfd
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.00431914
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ed80
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e3d
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00401c20
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ed80
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 0x408077
push str.ServiceDetectionService:_service_already_exists._Uninstalling...
push 3
call fcn.0040ebe0
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.0040f970
add esp, 0xc
cmp eax, ebx
je 0x407f5c
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.00401b30
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ed80
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 0x407f20
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.00431914
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 5
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ed80
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e3d
mov ecx, dword [eax - 0xc]
push ecx
jmp 0x407e30
sub esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.00401050
call fcn.0040f870
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x14]
je 0x408028
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.00401b30
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ed80
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 0x407fec
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.00431914
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ed80
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e3d
mov eax, dword [eax - 0xc]
push eax
jmp 0x407e30
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.00401b30
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040ed80
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x40806c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00401c20
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ed80
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