Function at 0x1400322d0
Capabilities:
Delete service
Stop service

Disassembly:
push rsi
sub rsp, 0x200
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov rbx, rdx
mov rsi, rcx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x78
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
lea rdx, str._ServiceManager::Uninstall_
lea rcx, [rsp + 0xa0]
call fcn.140001d10
nop
mov qword [rsp + 0x48], 0
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x14003243f
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14003243f
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov rcx, qword [rsp + 0xc0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + rdx + 0xc0]
mov r8, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
lea rdx, str._ServiceManager::Uninstall_
lea rcx, [rsp + 0xc0]
call fcn.140002150
lea rdx, str.Service_name:
mov rcx, rax
call fcn.140002150
mov rdx, rbx
mov rcx, rax
call fcn.140002150
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x1d8]
cmp qword [rsp + 0x1f0], 8
cmovae r8, qword [rsp + 0x1d8]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x1e8]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
mov rcx, qword [rsi]
test rcx, rcx
jne 0x14003247d
mov dword [rsp + 0x30], 0x427
lea rax, str.Checking_ServiceMangerIsOpened_
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov r8d, 0xf01ff
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400324cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.OpenService
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll__CxxThrowException
lea r8, [rsp + 0x1b0]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140032526
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1401c7808]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 1
jmp 0x14003253d
test rbx, rbx
je 0x14003254b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.140155650
mov rbx, qword [rsp + 0x220]
add rsp, 0x200
pop rsi
ret