Function at 0x408660
Capabilities:
Delete registry key
Delete registry value
Delete service
Print debug messages
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442470
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
push str.begin_uninst_Service_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4086ce
push str.OpenSCManager_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x408837
push 0x10020
mov ecx, dword [ebp - 0x7c]
add ecx, 0x12c
call fcn.0040a370
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x408711
push str.OpenService_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x408837
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x50]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x408789
mov ecx, dword [ebp - 0x7c]
add ecx, 0x12c
call fcn.0040a370
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x44bde8
lea ecx, [ebp - 0x4c]
call fcn.0040a290
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x7c]
add ecx, 0x12c
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040a330
push str.Parameters
lea ecx, [ebp - 0x4c]
call fcn.0040a350
lea ecx, [ebp - 0x4c]
call fcn.0040a370
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x70]
call fcn.0040a290
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7c]
add edx, 0x12c
push edx
lea ecx, [ebp - 0x70]
call fcn.0040a330
lea ecx, [ebp - 0x70]
call fcn.0040a370
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.end_uninst_service_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x78], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040a2d0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret