Function at 0x14004df50
Capabilities:
Query service status
Start service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rcx
xor esi, esi
cmp qword [rcx + 0x30], rsi
jne 0x14004dfd6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], sil
lea r8d, [rsi + 0x12]
lea rdx, str.Empty_ServiceName.
lea rcx, [rsp + 0x50]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x50]
call fcn.14004c6e0
xor al, al
jmp 0x14004e4a7
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000004
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x38], rax
test rax, rax
jne 0x14004e035
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], sil
mov r8d, 0x1e
lea rdx, str.OpenSCMManager_failed__Error:
lea rcx, [rsp + 0x50]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x50]
call fcn.14004c820
xor al, al
jmp 0x14004e4a7
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], rdi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x58], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_073deef46429565c1b9d7cbda5b2b61e___void___.0
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x78], xmm0
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x78], rsi
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14004e09f
lea rdx, [rbp + 0x40]
mov rax, qword [rsp + 0x70]
call qword [rax]
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14004e0bd
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x58], rsi
lea rbx, [rdi + 0x20]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14004e0ce
mov rdx, qword [rbx]
mov r8d, reloc.WS2_32.dll_socket
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x14004e12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov r8d, 0x1b
lea rdx, str.OpenService_failed__Error:
lea rcx, [rsp + 0x30]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x30]
call fcn.14004c820
xor bl, bl
jmp 0x14004e46d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x58], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_19115fc0b05220e2fce1d44c9de7b13b___void___.0
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x78], xmm0
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov qword [rbp + 0x38], rsi
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14004e197
lea rdx, [rbp]
mov rax, qword [rsp + 0x70]
call qword [rax]
mov qword [rbp + 0x38], rax
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14004e1b5
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x58], rsi
mov dword [rbp - 0x30], esi
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x28]
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea rcx, [rsp + 0x30]
test eax, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
jne 0x14004e22a
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov r8d, 0x1d
lea rdx, str.QueryServiceStatusEx_failed:
call fcn.14000bc80
nop
jmp 0x14004e427
mov r8, rbx
cmp dword [rbp - 0x24], 4
jne 0x14004e24f
lea rdx, str.Service_already_running__no_need_to_start:
call fcn.14000d510
nop
mov rcx, rax
call fcn.14004c770
mov bl, 1
jmp 0x14004e433
lea rdx, str.Starting_service:
call fcn.14000d510
nop
mov rcx, rax
call fcn.14004c770
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14004e319
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14004e319
lea rcx, [rsp + 0x30]
cmp eax, 0x241
je 0x14004e2d7
mov qword [rsp + 0x50], rcx
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14004c2f0
nop
mov r8, rax
lea rdx, str.Critical_failure__StartService_failed:
lea rcx, [rsp + 0x30]
call fcn.1400377a0
nop
mov rcx, rax
call fcn.14004c6e0
nop
lea rcx, [rsp + 0x70]
call fcn.14000bc00
jmp 0x14004e431
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov edx, 0x241
call fcn.14004c2f0
nop
mov r8, rax
lea rdx, str.Critical_failure__Service_likely_requires_restart_due_to_ELAM_driver_state:
lea rcx, [rsp + 0x70]
call fcn.1400377a0
nop
mov rcx, rax
call fcn.14004c6e0
nop
lea rcx, [rsp + 0x30]
call fcn.14000bc00
jmp 0x14004e431
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov r8d, 0x3a
lea rdx, str.StartService_call_succeeded._Waiting_for_service_to_start.
lea rcx, [rsp + 0x30]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x30]
call fcn.14004c6e0
mov ebx, esi
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x28]
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14004e3f2
cmp dword [rbp - 0x24], 4
je 0x14004e39d
inc ebx
cmp ebx, 0x3c
jae 0x14004e3a2
jmp 0x14004e360
cmp ebx, 0x3c
jb 0x14004e3e3
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov r8d, 0x25
lea rdx, str.Timed_out_waiting_for_service_start:
lea rcx, [rsp + 0x30]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x30]
call fcn.14004c6e0
jmp 0x14004e431
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 1
jmp 0x14004e433
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov r8d, 0x1d
lea rdx, str.QueryServiceStatusEx_failed:
lea rcx, [rsp + 0x30]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x30]
call fcn.14004c820
xor bl, bl
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14004e4d5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea rax, [rbp]
mov qword [rsp + 0x50], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14004e46d
mov rax, qword [rcx]
lea rdx, [rbp]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x38], rsi
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14004e4cf
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea rax, [rbp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14004e4a4
mov r8, qword [rcx]
lea rax, [rbp + 0x40]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov qword [rbp + 0x78], rsi
movzx eax, bl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140280d48
nop
call fcn.140280d48
int3