Function at 0x140016380
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 [0x14006d0e0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
lea rax, [0x14004a808]
mov qword [rsp + 0x48], rax
lea rax, [0x14004a810]
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.140002020
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.140002150
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.140001390
mov r8, rax
test rax, rax
jne 0x14001649a
mov ecx, esi
jmp 0x1400164a4
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.1400122d0
mov rbx, rax
test rax, rax
jne 0x1400164ca
mov rcx, rsi
jmp 0x1400164d4
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.140008ac0
movzx edx, ax
mov rcx, rbx
call fcn.1400084a0
mov rcx, rbx
call fcn.140007ec0
nop
lea rcx, [rbp - 0x18]
call fcn.14000e9d0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140025c9c
nop
mov ecx, DispGetParam
call fcn.140026a94
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140016555
mov r9, qword [rdi + 0xa8]
mov r8d, dword [rdi + 0x40]
mov rdx, rdi
mov rcx, rax
call fcn.140011dd0
mov r14, rax
jmp 0x140016558
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 4
mov r9, r14
lea r8, [0x140013b70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400165b6
lea edx, [rax + 0x18]
mov rcx, r14
call fcn.140026ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.ClientMonitor::startMonitor___CreateThread
lea rcx, [rbp + 0x60]
call fcn.140009670
lea rdx, [0x14006aee0]
lea rcx, [rbp + 0x60]
call fcn.140029aa0
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14001e660]
mov rcx, rdi
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140016625
mov edx, DispGetParam
mov rcx, r14
call fcn.140026ad8
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.14001e660]
mov rcx, rdi
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.ClientMonitor::startMonitor___ResumeThread
lea rcx, [rbp + 0x48]
call fcn.1400026d0
lea rdx, [0x14006ac70]
lea rcx, [rbp + 0x48]
call fcn.140029aa0
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400271a0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret