Function at 0x1400081d0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140098500]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov ebx, ecx
xor edx, edx
xor ecx, ecx
mov r8d, 0x40000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rbp - 0x71], rax
test rax, rax
je 0x140008700
lea rcx, [rbp - 0x71]
mov qword [rbp - 0x69], rcx
lea rdx, [0x1400970e0]
cmp qword [0x1400970f8], 0xf
cmova rdx, qword [0x1400970e0]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rcx, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x14000878e
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
test ebx, ebx
je 0x140008457
cmp ebx, 1
jne 0x14000884f
lea r8, [rbp + 0x27]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400088bc
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], sendto
mov qword [rbp - 0x21], sendto
movsd xmm0, qword [str.service_stopped]
movsd qword [rbp - 0x39], xmm0
mov eax, dword [0x14007e230]
mov dword [rbp - 0x31], eax
movzx eax, word [0x14007e234]
mov word [rbp - 0x2d], ax
movzx eax, byte [0x14007e236]
mov byte [rbp - 0x2b], al
mov byte [rbp - 0x2a], 0
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140050590
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], 0
mov qword [rbp - 0x41], sendto
mov ecx, 0x60
call fcn.1400734b0
mov rdx, rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x49], 0x5c
mov qword [rbp - 0x41], 0x5f
movaps xmm0, xmmword [str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14007e1a0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14007e1b0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14007e1c0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14007e1d0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x14007e1e0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x14007e1e8]
mov dword [rdx + 0x58], eax
mov byte [rdx + 0x5c], 0
mov r9, rbx
mov r8d, 0xc7
lea rdx, [rbp - 0x59]
mov ecx, 1
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x1400083af
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400083aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x49], 0
mov qword [rbp - 0x41], sendto
mov byte [rbp - 0x59], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x140008401
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400083fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x140008640
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000863a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000863a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140008674
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], sendto
mov qword [rbp - 0x21], sendto
movsd xmm0, qword [str.service_started]
movsd qword [rbp - 0x39], xmm0
mov eax, dword [0x14007e220]
mov dword [rbp - 0x31], eax
movzx eax, word [0x14007e224]
mov word [rbp - 0x2d], ax
movzx eax, byte [0x14007e226]
mov byte [rbp - 0x2b], al
mov byte [rbp - 0x2a], 0
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140050590
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], 0
mov qword [rbp - 0x41], sendto
mov ecx, 0x60
call fcn.1400734b0
mov rcx, rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x49], 0x5c
mov qword [rbp - 0x41], 0x5f
movaps xmm0, xmmword [str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14007e1a0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14007e1b0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14007e1c0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14007e1d0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x14007e1e0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x14007e1e8]
mov dword [rcx + 0x58], eax
mov byte [rcx + 0x5c], 0
mov r9, rbx
mov r8d, 0xc1
lea rdx, [rbp - 0x59]
mov ecx, 1
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14000859e
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008599
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008599
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x49], 0
mov qword [rbp - 0x41], sendto
mov byte [rbp - 0x59], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x1400085f0
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400085eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400085eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x140008640
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000863a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000863a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
nop
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140073840
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.140033f90
nop
lea rcx, str.message:__with_code:_
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x51], 0x19
mov r9, rax
lea r8, str.unable_to_start_the_service
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 7]
call fcn.140006e20
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rbp - 0x19]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xc0
lea rdx, [rbp - 0x19]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rbp - 0x19]
call fcn.140007850
nop
lea rcx, [rbp + 7]
call fcn.140007850
nop
lea rcx, [rbp - 0x39]
call fcn.140007850
call fcn.140007ec0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.140033f90
nop
lea rcx, str.message:__with_code:_
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0x19
mov r9, rax
lea r8, str.unable_to_open_the_service_manager
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x39]
call fcn.140006e20
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rbp - 0x19]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xb3
lea rdx, [rbp - 0x19]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rbp - 0x19]
call fcn.140007850
nop
lea rcx, [rbp - 0x39]
call fcn.140007850
nop
lea rcx, [rbp - 0x59]
call fcn.140007850
call fcn.140007ec0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 7]
call fcn.140033f90
mov rbx, rax
lea rax, str.unable_to_open_the_service_
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1f
lea r8, [0x1400970e0]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x59]
call fcn.140006ed0
nop
lea rcx, str.message:__with_code:_
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0x19
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x39]
call fcn.140006ff0
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rbp - 0x19]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xb8
lea rdx, [rbp - 0x19]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rbp - 0x19]
call fcn.140007850
nop
lea rcx, [rbp - 0x39]
call fcn.140007850
nop
lea rcx, [rbp - 0x59]
call fcn.140007850
nop
lea rcx, [rbp + 7]
call fcn.140007850
call fcn.140007ec0
nop
lea rdx, str.assumption_failed:_false
lea rcx, [rbp - 0x39]
call fcn.1400073f0
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140050590
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rbp - 0x19]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xcc
lea rdx, [rbp - 0x19]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rbp - 0x19]
call fcn.140007850
nop
lea rcx, [rbp + 7]
call fcn.140007850
nop
lea rcx, [rbp - 0x39]
call fcn.140007850
call fcn.140007ec0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.140033f90
nop
lea rcx, str.message:__with_code:_
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x51], 0x19
mov r9, rax
lea r8, str.unable_to_stop_the_service
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 7]
call fcn.140006e20
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rbp - 0x19]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xc6
lea rdx, [rbp - 0x19]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rbp - 0x19]
call fcn.140007850
nop
lea rcx, [rbp + 7]
call fcn.140007850
nop
lea rcx, [rbp - 0x39]
call fcn.140007850
call fcn.140007ec0
int3