Function at 0x140003df0
Capabilities:
Delete service

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400101f0]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor sil, sil
xor r12d, r12d
mov edi, r12d
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], 2
lea r9, str.__verbose
mov r8, rdx
mov edx, ecx
lea rcx, [rbp - 0x30]
call qword [sym.imp.VBoxRT.dll_RTGetOptInit]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x30]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
test eax, eax
je 0x1400040df
nop dword [rax + rax]
mov edx, eax
sub edx, 0x75
je 0x140003e80
dec edx
jne 0x140003e98
mov sil, 1
jmp 0x140003e84
mov rdi, qword [rbp + 0x20]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x30]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
test eax, eax
je 0x140003eaf
jmp 0x140003e70
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, str.delete
call fcn.140003120
jmp 0x1400040eb
test rdi, rdi
je 0x1400040df
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rbx, vtable.com::Utf8Str.0
mov qword [rsp + 0x48], rbx
mov rdx, rdi
lea rcx, [rbp - 0x50]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_char_const____ptr64____ptr64]
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 0x78]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rbp - 0x78], rbx
lea rcx, [rsp + 0x68]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rsp + 0x68], rbx
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.140003b90
mov ebx, eax
test eax, eax
jns 0x140003f49
mov rcx, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x68]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
nop
mov rcx, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0x78]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
jmp 0x140003fb3
lea rcx, [rsp + 0x68]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x78]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, str.VBoxAutostartSvc
lea rdx, str._s_s_s
lea rcx, [rsp + 0x48]
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::printf_char_const____ptr64____ptr64]
nop
mov rax, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
nop
mov rax, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x78]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
mov ebx, r12d
lea rcx, [rbp - 0x50]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
test ebx, ebx
jns 0x140003fe4
mov rdx, rdi
lea rcx, str.delete___DeleteService_failed__service_name_for_user__s_can_not_be_constructed._n
call fcn.1400030c0
mov ebx, eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
mov eax, ebx
jmp 0x1400040eb
mov ebx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400061f0
nop
mov rcx, qword [0x14000aec0]
mov rax, qword [rsp + 0x40]
test rax, rax
cmovne rcx, rax
mov dword [rsp + 0x28], 0x424
mov dword [rsp + 0x20], ebx
mov r9d, 0x10000
lea r8d, [rbx + 1]
lea rdx, str.delete
call fcn.140003880
mov rdi, rax
lea rcx, [rsp + 0x40]
call fcn.140006100
test rdi, rdi
je 0x140004099
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14000407a
lea rcx, [rsp + 0x48]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rdx, rax
lea rcx, str.Successfully_deleted_the__s_service._n
call qword [sym.imp.VBoxRT.dll_RTPrintf]
mov ebx, r12d
jmp 0x14000408e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.delete___DeleteService_failed__err_d._n
call fcn.1400030c0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400040d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1400040d0
lea rcx, [rsp + 0x48]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rdx, rax
test sil, sil
lea rcx, str.The_service__s_was_not_installed__nothing_to_be_done.
jne 0x1400040c7
lea rcx, str.Successfully_deleted_the__s_service._n
call qword [sym.imp.VBoxRT.dll_RTPrintf]
mov ebx, r12d
lea rcx, [rsp + 0x48]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
mov eax, ebx
jmp 0x1400040eb
lea rcx, str.delete___DeleteService_failed__user_name_required._n
call fcn.1400030c0
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140005930
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret