Function at 0x1400068e0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x40
xor r9d, r9d
lea rax, str.CGenericService::DefaultMainHandler.
mov r12, rcx
mov qword [rsp + 0x28], rax
lea rdi, [0x14005bd4c]
lea rcx, str...SharedGenericService.cpp
lea edx, [r9 + 0x73]
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], rdi
call fcn.1400043b0
mov eax, dword [0x14007372c]
mov ebx, 2
cmp eax, 1
jle 0x140005be8
mov qword [rsp + 0x70], r13
mov r13d, 1
mov edi, r13d
cmp eax, r13d
jle 0x140005bdc
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
lea r15d, [rbx + 0x2d]
mov qword [rsp + 0x60], rbp
lea esi, [rbx + 6]
lea r14d, [rbx + 0x2b]
nop word [rax + rax]
mov rax, qword [0x140073738]
mov rcx, qword [rsi + rax]
movzx eax, word [rcx]
cmp r15w, ax
je 0x140005b8a
cmp r14w, ax
jne 0x140005bba
lea rbp, [rcx + 2]
lea rdx, str.Install
mov rcx, rbp
call fcn.1400248f0
test eax, eax
jne 0x140005ba5
xor ebx, ebx
jmp 0x140005bba
lea rdx, str.Uninstall
mov rcx, rbp
call fcn.1400248f0
test eax, eax
cmove ebx, r13d
inc edi
add rsi, 8
cmp edi, dword [0x14007372c]
jl 0x140005b70
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
lea rdi, [0x14005bd4c]
test ebx, ebx
je 0x140005cb6
dec ebx
je 0x140005c7b
dec ebx
jne 0x140005c70
lea rax, str.Executing_service.
lea r8d, [rbx + 2]
lea rcx, str...SharedGenericService.cpp
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0xa4
mov qword [rsp + 0x20], rdi
call fcn.1400043b0
mov rcx, r12
call fcn.1400057b0
mov ebx, eax
test eax, eax
jne 0x140005d59
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rbx + 2]
lea rcx, str...SharedGenericService.cpp
mov dword [rsp + 0x28], eax
lea rax, str.Failed_to_start_the_service._Error_code___d.
xor r9d, r9d
mov edx, 0xa8
mov qword [rsp + 0x20], rax
call fcn.1400043b0
mov eax, ebx
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret
xor r9d, r9d
lea rax, str.Un_installing_service.
lea rcx, str...SharedGenericService.cpp
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 2]
mov edx, 0x9f
mov qword [rsp + 0x20], rdi
call fcn.1400043b0
mov rcx, qword [r12 + 8]
add rsp, 0x40
pop r12
pop rdi
pop rbx
jmp 0x1400068e0
xor r9d, r9d
lea rax, str.Installing_service.
lea rcx, str...SharedGenericService.cpp
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 2]
mov edx, 0x93
mov qword [rsp + 0x20], rdi
call fcn.1400043b0
mov rdx, qword [r12 + 0x10]
mov rcx, qword [r12 + 8]
call fcn.1400063f0
xor r9d, r9d
lea r11, str.Setting_service_description.
mov qword [rsp + 0x28], r11
lea rcx, str...SharedGenericService.cpp
lea r8d, [r9 + 2]
mov edx, 0x96
mov qword [rsp + 0x20], rdi
call fcn.1400043b0
mov rdx, qword [r12 + 0x18]
mov rcx, qword [r12 + 8]
call fcn.140006720
xor r9d, r9d
lea rax, str.Executing_service.
mov qword [rsp + 0x28], rax
lea rcx, str...SharedGenericService.cpp
lea r8d, [r9 + 2]
mov edx, 0x99
mov qword [rsp + 0x20], rdi
call fcn.1400043b0
mov rcx, qword [r12 + 8]
call fcn.1400065c0
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x460
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor eax, eax
xor edi, edi
mov rbp, rcx
lea r8d, [rdi + 1]
xor edx, edx
xor ecx, ecx
mov ebx, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r12, [0x14005bd4c]
test rsi, rsi
jne 0x140006988
lea r8, str.OpenSCManager_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x50]
mov r9d, eax
call fcn.140006a80
lea r11, [rsp + 0x50]
lea edx, [rdi + 0x31]
mov qword [rsp + 0x28], r11
lea r8d, [rdi + 1]
lea rcx, str.s:p4clientconsumermainrel2consumerplatform_vista_sharedGenericService.h
xor r9d, r9d
mov qword [rsp + 0x20], r12
call fcn.1400043b0
jmp 0x14000699d
mov r8d, 0x10024
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
jne 0x1400069ea
lea r8, str.OpenService_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x50]
mov r9d, eax
call fcn.140006a80
lea r11, [rsp + 0x50]
lea edx, [rbx + 0x31]
mov qword [rsp + 0x28], r11
lea r8d, [rbx + 1]
lea rcx, str.s:p4clientconsumermainrel2consumerplatform_vista_sharedGenericService.h
xor r9d, r9d
mov qword [rsp + 0x20], r12
call fcn.1400043b0
jmp 0x140006a3b
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140006a27
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140006a27
cmp dword [rsp + 0x34], 3
jne 0x140006a27
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006a01
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x140006a49
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140023ca0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret