Function at 0x14001a780
Capabilities:
Resume thread

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x1d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov r13, rdx
mov rdi, rcx
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x78
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x24]
lea rdx, str._ProcessWatcher::Start_
lea rcx, [rsp + 0x98]
call fcn.140001d10
nop
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x14001a8ec
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14001a8ec
mov edx, 2
lea r8d, [rdx - 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 r8, dword [rcx + 4]
lea rcx, [rsp + r8 + 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._ProcessWatcher::Start_
lea rcx, [rsp + 0xb0]
call fcn.140002150
lea rdx, str.DeviceName:
mov rcx, rax
call fcn.140002150
lea rdx, [rdi + 0x30]
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_]
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]
lea rbx, [rdi + 0x68]
mov qword [rsp + 0x90], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rdi + 0x60], 0
je 0x14001a939
mov dword [rsp + 0x30], 0x420
lea rax, str.Checking_NotRunning_
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x50]
call sub.MSVCR90.dll__CxxThrowException
lea rdx, [rdi + 0x60]
mov rcx, rdi
call fcn.14001acf0
test eax, eax
jne 0x14001a981
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.ProcessWatcher::Initialize
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 rax, qword [rdi + 0x60]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14001a992
lea eax, [rcx + 0x57]
jmp 0x14001a9a7
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x14001a9a1
xor eax, eax
jmp 0x14001a9a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x14001a9ed
lea rdx, [rdi + 0x60]
mov rcx, rdi
call fcn.14001b170
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.ProcessWatcher::ExecutionContext::Resume
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 rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x60]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x58]
mov rax, qword [rcx]
mov r8, r13
mov rdx, rdi
call qword [rax]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov ebx, dword [rsp + 0x24]
lea rcx, [rsp + 0x98]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140155650
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop r13
pop r12
pop rdi
ret