Function at 0x1400021f0
Capabilities:
Start service

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x1400dc010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x64
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rbx, 0xffffffffffffffff
mov r9d, ebx
mov r8, qword [rdx]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
jne 0x1400022fa
call fcn.14000d980
mov rcx, rax
test rax, rax
je 0x14000248d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
lea rbp, str.Failed_to_open_service_control_manager
mov rdx, rbp
mov rcx, rdi
call fcn.14000cc80
test al, al
jne 0x1400022ce
mov rax, rbx
inc rax
cmp word [rbp + rax*2], 0
jne 0x1400022b4
mov r8d, eax
mov rdx, rbp
mov rcx, rdi
call fcn.14000d160
nop
mov dword [rsp + 0x40], 1
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14000245c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x14000245c
mov r8d, 0x10
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
jne 0x140002377
call fcn.14000d980
mov rcx, rax
test rax, rax
je 0x140002498
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
lea rbp, str.Failed_to_open_service
mov rdx, rbp
mov rcx, rdi
call fcn.14000cc80
test al, al
jne 0x14000236a
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rbp + rax*2], 0
jne 0x140002350
mov r8d, eax
mov rdx, rbp
mov rcx, rdi
call fcn.14000d160
nop
mov dword [rsp + 0x40], 1
jmp 0x140002442
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400023e4
call fcn.14000d980
mov rcx, rax
test rax, rax
je 0x1400024a3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
lea rbp, str.Failed_to_start_service
mov rdx, rbp
mov rcx, rdi
call fcn.14000cc80
test al, al
jne 0x1400023da
mov rax, rbx
inc rax
cmp word [rbp + rax*2], 0
jne 0x1400023c0
mov r8d, eax
mov rdx, rbp
mov rcx, rdi
call fcn.14000d160
nop
mov dword [rsp + 0x40], 1
jmp 0x140002442
call fcn.14000d980
mov rcx, rax
test rax, rax
je 0x140002482
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
lea rbp, str.Service_started_successfully
mov rdx, rbp
mov rcx, rdi
call fcn.14000cc80
test al, al
jne 0x14000243a
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rbp + rax*2], 0
jne 0x140002420
mov r8d, eax
mov rdx, rbp
mov rcx, rdi
call fcn.14000d160
nop
mov dword [rsp + 0x40], 1
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14000245c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400691f0
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000dd90
int3
mov ecx, 0x80004005
call fcn.14000dd90
int3
mov ecx, 0x80004005
call fcn.14000dd90
int3
mov ecx, 0x80004005
call fcn.14000dd90
int3