Function at 0x14003f910
Capabilities:
Start service

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x1d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, rdx
mov qword [rsp + 0x40], rdx
xor r15d, r15d
mov r14d, r15d
cmp qword [rdx + 0x18], 8
jb 0x14003f960
mov rbx, qword [rdx]
jmp 0x14003f963
mov rbx, rdi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x14003f985
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14003f9b4
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
jne 0x14003fa75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x14003fa78
cmp qword [rdi + 0x18], 8
jb 0x14003f9c8
mov r8, qword [rdi]
jmp 0x14003f9cb
mov r8, rdi
mov r9d, esi
lea rdx, str.Manage_Service:_Failed_to_open_service:__s__error__d_
lea rcx, [rsp + 0x48]
call fcn.140027a80
mov rbx, rax
lea rax, str.E:BT0d8f5312_643f_43bd_ae61_302563aaaba4UBF_1PEFAppSrcPEFCommonCmcService.h
mov qword [rsp + 0x20], rax
lea r9, str.ManageMcServices::CMcService::StartMcService
mov edx, 4
mov r8d, 0x158
lea rcx, [rsp + 0x70]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rsp + 0x70]
call fcn.1400298d0
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14003fa40
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x14003fa58
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.14002e610
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
cmp qword [rdi + 0x18], 8
jb 0x14003fa6e
mov rdi, qword [rdi]
xor eax, eax
jmp 0x14003fb97
mov esi, r15d
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14002ddd0
lea rdx, [rsp + 0x48]
call fcn.14003f640
cmp eax, 1
jne 0x14003fb54
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14003fb54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp qword [rdi + 0x18], 8
jb 0x14003fadd
mov r8, qword [rdi]
jmp 0x14003fae0
mov r8, rdi
mov r9d, eax
lea rdx, str.Manage_Service:_Failed_to_start_service:__s__error__d_
lea rcx, [rsp + 0x48]
call fcn.140027a80
mov rbx, rax
lea rax, str.E:BT0d8f5312_643f_43bd_ae61_302563aaaba4UBF_1PEFAppSrcPEFCommonCmcService.h
mov qword [rsp + 0x20], rax
lea r9, str.ManageMcServices::CMcService::StartMcService
mov edx, 4
mov r8d, 0x160
lea rcx, [rsp + 0x70]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rsp + 0x70]
call fcn.1400298d0
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14003fb54
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x14003fb7f
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.14002e610
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
cmp qword [rdi + 0x18], 8
jb 0x14003fb95
mov rdi, qword [rdi]
mov eax, esi
mov word [rdi], r15w
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret