Function at 0x140032590
Capabilities:
Start service

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x24], 0x78
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
lea rdx, str._ServiceManager::Start_
lea rcx, [r11 - 0x140]
call fcn.140001d10
nop
mov qword [rsp + 0x48], rbx
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x1400326fb
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x1400326fb
lea edx, [rbx + 2]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0xb0]
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 + 0xb0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + rdx + 0xb0]
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::Start_
lea rcx, [rsp + 0xb0]
call fcn.140002150
lea rdx, str.Service_name:
mov rcx, rax
call fcn.140002150
mov rdx, rdi
mov rcx, rax
call fcn.140002150
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0xb0]
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 + 0x1a8]
cmp qword [rsp + 0x1c0], 8
cmovae r8, qword [rsp + 0x1a8]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x1b8]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x1a0]
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 + 0xb0]
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 0x140032733
mov dword [rsp + 0x30], 0x427
lea rax, str.Checking_ServiceMangerIsOpened_
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
mov r8d, 0xf01ff
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140032787
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 + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1400327da
cmp eax, 0x420
je 0x1400327da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.StartService
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x70]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 1
jmp 0x1400327ed
test rdi, rdi
je 0x1400327fb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x98]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret