Function at 0x1400017b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [0x140006708]
xor ebp, ebp
mov qword [rbx + 0x34], 0x10
lea rdx, [rbx + 0x34]
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
mov rcx, qword [rbx + 0x50]
mov dword [rbx + 0x3c], ebp
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x14000186d
lea r8, str.:_service_main:_SetServiceStatus_change_accepted_controls_operation_failed
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.140002190
cmp qword [rsp + 0x38], 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14000186d
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001868
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001868
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000256c
mov edx, 2
mov dword [rbx + 0x44], ebp
mov rcx, rbx
call fcn.140001b10
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rbx + 0x68], rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rbx + 0x70], rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x78], rax
cmp qword [rbx + 0x68], rbp
jne 0x1400019ea
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x34]
mov dword [rbx + 0x3c], ebp
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140001953
lea r8, str.:_service_main:_SetServiceStatus_change_accepted_controls_operation_failed
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.140002190
cmp qword [rsp + 0x38], 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140001953
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000194e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000194e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000256c
mov dword [rbx + 0x38], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x34]
mov dword [rbx + 0x40], eax
mov dword [rbx + 0x48], ebp
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140001a01
lea r8, str.:_service_main:_SetServiceStatus_returned_an_error
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.140002190
cmp qword [rsp + 0x38], 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140001a01
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019e3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000256c
jmp 0x140001a01
mov dl, 1
mov rcx, rbx
call fcn.140001be0
mov edx, 4
mov rcx, rbx
call fcn.140001b10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140002510
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret