Function at 0x140003d00
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 0x140003d41
xor al, al
jmp 0x1400040a6
mov rax, qword [rsp + 0x240]
cmp qword [rax + 0x20], 0x10
jb 0x140003d66
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 8]
mov qword [rsp + 0x220], rax
jmp 0x140003d7a
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 0x140003db2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400040a6
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003de3
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 0x1400040a6
cmp dword [rsp + 0x44], 4
jne 0x140003e72
lea rax, [rsp + 0x108]
mov qword [rsp + 0x110], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140009950
lea rcx, str.__started.
call fcn.140015fd0
mov qword [rsp + 0x118], rax
mov r8, qword [rsp + 0x118]
lea rdx, str.__started.
lea rcx, [rsp + 0x68]
call fcn.14000a980
nop
lea rcx, [rsp + 0x68]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140009950
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 0x1400040a6
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 0x140003eaa
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 0x1400040a6
lea rax, [rsp + 0x158]
mov qword [rsp + 0x160], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140009950
lea rcx, str.__waiting_for_the_state_change
call fcn.140015fd0
mov qword [rsp + 0x168], rax
mov r8, qword [rsp + 0x168]
lea rdx, str.__waiting_for_the_state_change
lea rcx, [rsp + 0x90]
call fcn.14000a980
nop
lea rcx, [rsp + 0x90]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x90]
call fcn.140009950
mov dword [rsp + 0x60], 0
jmp 0x140003f32
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x1e
jge 0x14000408e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003f6e
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 0x1400040a6
cmp dword [rsp + 0x44], 4
jne 0x14000400b
lea rax, [rsp + 0x188]
mov qword [rsp + 0x190], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.140009950
lea rcx, str.__started.
call fcn.140015fd0
mov qword [rsp + 0x198], rax
mov r8, qword [rsp + 0x198]
lea rdx, str.__started.
lea rcx, [rsp + 0xb8]
call fcn.14000a980
nop
lea rcx, [rsp + 0xb8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb8]
call fcn.140009950
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 0x1400040a6
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.140009950
lea rcx, [0x1400259f0]
call fcn.140015fd0
mov qword [rsp + 0x1e8], rax
mov r8, qword [rsp + 0x1e8]
lea rdx, [0x1400259f0]
lea rcx, [rsp + 0xe0]
call fcn.14000a980
nop
lea rcx, [rsp + 0xe0]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xe0]
call fcn.140009950
jmp 0x140003f27
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