Function at 0x140016540
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
lea rax, [0x14004e858]
mov qword [rsp + 0x48], rax
lea rax, [0x14004e860]
mov qword [rsp + 0x58], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x18], rax
mov dword [rsp + 0x30], 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140001fe0
nop
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x44], edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
call fcn.140002110
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x38], rsi
mov dword [rbp - 0x30], esi
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x44], edx
mov dword [rbp - 0x28], 0x64
lea rdx, str.ClientMonitor::startMonitor___session_0x
lea rcx, [rsp + 0x58]
call fcn.140001350
mov r8, rax
test rax, rax
jne 0x14001665a
mov ecx, esi
jmp 0x140016664
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r8
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov rdx, rdi
mov rcx, r8
call fcn.140012490
mov rbx, rax
test rax, rax
jne 0x14001668a
mov rcx, rsi
jmp 0x140016694
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
and dword [rcx + 0x18], 0xfffff3ff
or dword [rcx + 0x18], 0x200
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.1400089a0
movzx edx, ax
mov rcx, rbx
call fcn.1400083e0
mov rcx, rbx
call fcn.140007de0
nop
lea rcx, [rbp - 0x18]
call fcn.14000eab0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140027d0c
nop
mov ecx, DispGetParam
call fcn.140028b04
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140016715
mov r9, qword [rdi + 0xb8]
mov r8d, dword [rdi + 0x40]
mov rdx, rdi
mov rcx, rax
call fcn.140011f60
mov r14, rax
jmp 0x140016718
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 4
mov r9, r14
lea r8, [0x140013d30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140016776
lea edx, [rax + 0x18]
mov rcx, r14
call fcn.140029680
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.ClientMonitor::startMonitor___CreateThread
lea rcx, [rbp + 0x60]
call fcn.140009550
lea rdx, [0x140070100]
lea rcx, [rbp + 0x60]
call fcn.14002bb00
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000cbb0]
mov rcx, rdi
call rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1400167e5
mov edx, DispGetParam
mov rcx, r14
call fcn.140029680
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.14000cbb0]
mov rcx, rdi
call rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, str.ClientMonitor::startMonitor___ResumeThread
lea rcx, [rbp + 0x48]
call fcn.140002690
lea rdx, [0x14006fe90]
lea rcx, [rbp + 0x48]
call fcn.14002bb00
int3
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140029210
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret