Function at 0x407d40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449978
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4630d0]
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.0040fd30
push str.ServiceDetectionService:_please_wait_...
push 3
mov dword [esp + 0x40], ebx
call fcn.00410660
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.0040f120
add esp, 0xc
cmp eax, ebx
je 0x407ea1
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.0040fd60
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 0x407e2d
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431abd
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040fd60
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e6d
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.00410660
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040fd60
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 0x4080a7
push str.ServiceDetectionService:_service_already_exists._Uninstalling...
push 3
call fcn.00410660
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.0040eee0
add esp, 0xc
cmp eax, ebx
je 0x407f8c
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.0040fd60
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 0x407f50
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431abd
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 5
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040fd60
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e6d
mov ecx, dword [eax - 0xc]
push ecx
jmp 0x407e60
sub esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.00401050
call fcn.0040ede0
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x14]
je 0x408058
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.0040fd60
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 0x40801c
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431abd
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.0040fd60
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x407e6d
mov eax, dword [eax - 0xc]
push eax
jmp 0x407e60
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.0040fd60
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], edi
jle 0x40809c
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.00410660
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040fd60
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