Function at 0x1400a2b00
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov r14, rcx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea r12, str.D:_apia_desktoppia_desktopdaemon_srcwin.._.._.._extras_installer_win_service.inl
lea r13, [0x1400fc9c5]
mov eax, dword [rdx + rcx]
cmp dword [0x1401471fc], eax
jg 0x1400a30c4
mov eax, dword [0x140138870]
mov r15d, 0x7fffffff
cmp eax, r15d
sete sil
mov byte [rsp + 0x48], sil
mov ecx, 0x7530
test sil, sil
cmovne eax, ecx
mov dword [0x140138870], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x1400a2c20
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r13
mov r8d, 0x16d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x40], xmm1
xor r9d, r9d
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Unable_to_open_Service_Control_Manager___d_
mov rcx, rbx
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
lea r14d, [rdi + 0x2a]
jmp 0x1400a306f
mov r8d, 0x10024
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1400a2d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
lea rdx, [rsp + 0x38]
cmp eax, 0x424
jne 0x1400a2cc0
mov r8d, 0x174
lea rcx, [rsp + 0x50]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x40], xmm1
xor r9d, r9d
lea r8d, [rbx + 3]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
nop
mov r8, r14
lea rdx, str.Service__ls_not_installed
mov rcx, rax
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
lea r14d, [rbx + 0x2b]
jmp 0x1400a305b
mov r8d, 0x178
lea rcx, [rbp - 0x70]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov r15, rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.14009d480
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400a2d13
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, r14
lea rdx, str.Unable_to_open_service__ls__0x_X___s
mov rcx, r15
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1400a2d6f
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a2d6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a2d6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cdbac
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
jmp 0x1400a2fd2
mov rcx, rbx
call fcn.1400a1500
mov r15d, eax
cmp eax, 0x1f
jne 0x1400a2da1
lea r14d, [rax + 0xb]
jmp 0x1400a305b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov r8d, 0x181
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
nop
mov r8, r14
lea rdx, str.Uninstalling_service__ls
mov rcx, rax
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400a2fe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
cmp eax, 0x430
jne 0x1400a2f13
mov r8d, 0x188
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov r15, rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.14009d480
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400a2e8e
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, r14
lea rdx, str.Service__ls_already_marked_for_deletion__0x_X___s
mov rcx, r15
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1400a2eea
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a2ee5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a2ee5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cdbac
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
mov r14d, 0x32
jmp 0x1400a305b
mov r8d, 0x18c
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov r15, rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.14009d480
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400a2f62
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, r14
lea rdx, str.Failed_to_uninstall_service__ls__0x_X___s
mov rcx, r15
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1400a2fbe
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a2fb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a2fb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cdbac
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
mov r14d, 0x2a
jmp 0x1400a305b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov r8d, 0x190
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
nop
mov r8, r14
lea rdx, str.Successfully_uninstalled_service__ls
mov rcx, rax
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
cmp r15d, 0x1e
mov r14d, 0x28
je 0x1400a305b
mov r14d, 0x29
test rbx, rbx
je 0x1400a3069
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15d, 0x7fffffff
test rdi, rdi
je 0x1400a307e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov ecx, dword [0x140138870]
test sil, sil
cmovne ecx, r15d
mov dword [0x140138870], ecx
mov eax, r14d
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.1400cdb50
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [0x1401471fc]
call fcn.1400cdd3c
cmp dword [0x1401471fc], 0xffffffff
jne 0x1400a2b69
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r13
lea rax, str.win.service
mov qword [rsp + 0x70], rax
lea rax, [0x1400fc7db]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x80]
lea rcx, [0x1401471c0]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogCategory::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64____ptr64]
nop
lea rcx, [0x1401471fc]
call fcn.1400cdcdc
jmp 0x1400a2b69