Function at 0x140003cf0
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x238
mov qword [rsp + 0x218], 0xfffffffffffffffe
mov byte [rsp + 0x20], 0
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140003d31
xor al, al
jmp 0x140004096
mov rax, qword [rsp + 0x240]
cmp qword [rax + 0x20], 0x10
jb 0x140003d56
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 8]
mov qword [rsp + 0x220], rax
jmp 0x140003d6a
mov rax, qword [rsp + 0x240]
add rax, 8
mov qword [rsp + 0x220], rax
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140003da2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140004096
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003dd3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140004096
cmp dword [rsp + 0x44], 4
jne 0x140003e62
lea rax, [rsp + 0x108]
mov qword [rsp + 0x110], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140009910
lea rcx, str.__started.
call fcn.140015f90
mov qword [rsp + 0x118], rax
mov r8, qword [rsp + 0x118]
lea rdx, str.__started.
lea rcx, [rsp + 0x68]
call fcn.14000a940
nop
lea rcx, [rsp + 0x68]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140009910
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140004096
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140003e9a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140004096
lea rax, [rsp + 0x158]
mov qword [rsp + 0x160], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140009910
lea rcx, str.__waiting_for_the_state_change
call fcn.140015f90
mov qword [rsp + 0x168], rax
mov r8, qword [rsp + 0x168]
lea rdx, str.__waiting_for_the_state_change
lea rcx, [rsp + 0x90]
call fcn.14000a940
nop
lea rcx, [rsp + 0x90]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x90]
call fcn.140009910
mov dword [rsp + 0x60], 0
jmp 0x140003f22
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x1e
jge 0x14000407e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003f5e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140004096
cmp dword [rsp + 0x44], 4
jne 0x140003ffb
lea rax, [rsp + 0x188]
mov qword [rsp + 0x190], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.140009910
lea rcx, str.__started.
call fcn.140015f90
mov qword [rsp + 0x198], rax
mov r8, qword [rsp + 0x198]
lea rdx, str.__started.
lea rcx, [rsp + 0xb8]
call fcn.14000a940
nop
lea rcx, [rsp + 0xb8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb8]
call fcn.140009910
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140004096
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x1e0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.140009910
lea rcx, [0x1400259f0]
call fcn.140015f90
mov qword [rsp + 0x1e8], rax
mov r8, qword [rsp + 0x1e8]
lea rdx, [0x1400259f0]
lea rcx, [rsp + 0xe0]
call fcn.14000a940
nop
lea rcx, [rsp + 0xe0]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xe0]
call fcn.140009910
jmp 0x140003f17
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
add rsp, 0x238
ret