Function at 0x140013e70
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8f0]
sub rsp, 0x9f0
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa48], rbx
mov rax, qword [0x140115fa8]
xor rax, rsp
mov qword [rbp + 0x8e0], rax
movzx r14d, r9b
mov byte [rsp + 0x44], r9b
mov r15, rdx
mov r13, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp byte [rcx + 0xc], bl
je 0x14001433c
lea rax, [0x1400dd080]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 0x40
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r12
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], 4
lea rdx, str.Shared_Memory_already_initialized._SM:
lea rcx, [rsp + 0x50]
call fcn.1400020e0
mov r8, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 0x10
jb 0x140013f69
mov r15, qword [r15]
mov rdx, r15
mov rcx, rax
call fcn.140002640
lea rcx, [rbp + 0x50]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
cmp qword [rax], 0
je 0x140013f92
cmp qword [0x140118a80], 0
je 0x140013f92
mov dil, 1
jmp 0x140013f95
xor dil, dil
mov r14, 0xffffffffffffffff
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x140013fd0
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140013fd0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140013fd0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
test dil, dil
je 0x1400142f2
mov rcx, qword [0x140118a80]
call qword [sym.imp.uvdilogger.dll_CSFLogger_getName]
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x710], xmm0
mov byte [rbp + 0x700], 0
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x140014000
mov rdx, rax
lea rcx, [rbp + 0x700]
call fcn.140003630
nop
lea rcx, [rbp + 0x60]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
nop
mov rdi, qword [rax]
mov rax, qword [rdi]
mov rsi, qword [rax + 0x38]
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x5f0], xmm0
mov byte [rbp + 0x5e0], 0
mov dword [rsp + 0x40], 0x140
mov eax, dword [rbp - 0x38]
test al, 2
jne 0x140014092
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14001408f
mov rax, qword [rsp + 0x78]
mov rbx, qword [rax]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov qword [rbp + 0x48], rax
cmp rax, qword [rbp - 0x40]
cmovb rax, qword [rbp - 0x40]
sub rax, rbx
mov r8, rax
mov rdx, rbx
jmp 0x1400140bf
mov eax, dword [rbp - 0x38]
test al, 4
jne 0x1400140cc
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
test rax, rax
je 0x1400140cc
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd r8, dword [rax]
sub r8, rdx
mov rax, qword [rbp - 0x70]
add r8, qword [rax]
lea rcx, [rbp + 0x5e0]
call fcn.140003630
nop
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x6d0], xmm0
mov byte [rbp + 0x6c0], 0
mov r8d, 0x1d
lea rdx, str.SharedMemoryWin::CreateOrOpen
lea rcx, [rbp + 0x6c0]
call fcn.140003630
nop
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x610], xmm0
mov byte [rbp + 0x600], 0
mov r8d, 0x30
lea rdx, str.srcSharedMemory_srcWindowsSharedMemoryWin.cpp
lea rcx, [rbp + 0x600]
call fcn.140003630
nop
lea rax, [rbp + 0x5e0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x6c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2e
lea r9, [rbp + 0x600]
mov r8d, 5
lea rdx, [rbp + 0x700]
mov rcx, rdi
call rsi
nop
mov rdx, qword [rbp + 0x618]
cmp rdx, 0x10
jb 0x1400141ac
inc rdx
mov rcx, qword [rbp + 0x600]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400141a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400141a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x610], xmm0
mov byte [rbp + 0x600], 0
mov rdx, qword [rbp + 0x6d8]
cmp rdx, 0x10
jb 0x140014207
inc rdx
mov rcx, qword [rbp + 0x6c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014202
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014202
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x6d0], xmm0
mov byte [rbp + 0x6c0], 0
mov rdx, qword [rbp + 0x5f8]
cmp rdx, 0x10
jb 0x140014262
inc rdx
mov rcx, qword [rbp + 0x5e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001425d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001425d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x5f0], xmm0
mov byte [rbp + 0x5e0], 0
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x1400142ad
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400142ad
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x1400142ad
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x718]
cmp rdx, 0x10
jb 0x1400142f2
inc rdx
mov rcx, qword [rbp + 0x700]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400142ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400142ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r12
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov rax, rcx
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140002d10
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor al, al
jmp 0x1400154c0
mov dword [rcx + 0x1c], r8d
mov edx, r8d
call fcn.140018c70
mov dword [r13 + 0x18], eax
lea rbx, [r13 + 0x210]
mov r8d, 6
lea rdx, str.Local_
mov rcx, rbx
call fcn.140003630
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140014375
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.140007300
mov rcx, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140014391
mov rcx, qword [rbx]
mov rsi, qword [rbx + 0x10]
add rsi, rcx
mov rdi, rbx
cmp rdx, 0x10
jb 0x1400143a4
mov rdi, qword [rbx]
movdqa xmm0, xmmword [0x1400de280]
movdqu xmmword [rbp + 0x5d0], xmm0
xor eax, eax
mov word [rbp + 0x5c0], ax
mov rdx, rsi
sub rdx, rdi
lea rcx, [rbp + 0x5c0]
call fcn.140015660
movzx r9d, byte [rsp + 0x44]
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0x5c0]
call fcn.140013600
nop
lea rax, [0x1400dd080]
test r14b, r14b
je 0x140014866
mov qword [rbp + 0x200], rax
lea rcx, [rbp + 0x288]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 0x200
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x208]
lea rcx, [rbp + 0x200]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x200]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x200], r12
mov rax, qword [rbp + 0x200]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1fc], edx
lea rcx, [rbp + 0x208]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x208], rax
xor eax, eax
mov qword [rbp + 0x270], rax
mov dword [rbp + 0x278], 4
lea rdx, str.Creating_shared_memory:
lea rcx, [rbp + 0x200]
call fcn.1400020e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400144b1
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.140002640
lea rcx, [rbp + 0x70]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
cmp qword [rax], 0
je 0x1400144da
cmp qword [0x140118a80], 0
je 0x1400144da
mov dil, 1
jmp 0x1400144dd
xor dil, dil
mov dword [rsp + 0x40], 0x200
mov r14, 0xffffffffffffffff
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x140014538
mov dword [rsp + 0x40], 0x200
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140014538
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov dword [rsp + 0x40], 0x200
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140014538
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov dword [rsp + 0x40], 0x200
test dil, dil
je 0x1400147da
mov rcx, qword [0x140118a80]
call qword [sym.imp.uvdilogger.dll_CSFLogger_getName]
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x730], xmm0
mov byte [rbp + 0x720], 0
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140014570
mov rdx, rax
lea rcx, [rbp + 0x720]
call fcn.140003630
nop
lea rcx, [rbp + 0x80]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
nop
mov rsi, qword [rax]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
lea rdx, [rbp + 0x780]
lea rcx, [rbp + 0x200]
call fcn.140006c50
mov rbx, rax
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x690], xmm0
mov byte [rbp + 0x680], 0
mov r8d, 0x1d
lea rdx, str.SharedMemoryWin::CreateOrOpen
lea rcx, [rbp + 0x680]
call fcn.140003630
nop
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x6b0], xmm0
mov byte [rbp + 0x6a0], 0
mov r8d, 0x30
lea rdx, str.srcSharedMemory_srcWindowsSharedMemoryWin.cpp
lea rcx, [rbp + 0x6a0]
call fcn.140003630
nop
mov qword [rsp + 0x30], rbx
lea rax, [rbp + 0x680]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x3f
lea r9, [rbp + 0x6a0]
mov r8d, 4
lea rdx, [rbp + 0x720]
mov rcx, rsi
call rdi
nop
mov rdx, qword [rbp + 0x6b8]
cmp rdx, 0x10
jb 0x140014690
inc rdx
mov rcx, qword [rbp + 0x6a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001468b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001468b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x6b0], xmm0
mov byte [rbp + 0x6a0], 0
mov rdx, qword [rbp + 0x698]
cmp rdx, 0x10
jb 0x1400146eb
inc rdx
mov rcx, qword [rbp + 0x680]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400146e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400146e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x690], xmm0
mov byte [rbp + 0x680], 0
mov rdx, qword [rbp + 0x798]
cmp rdx, 0x10
jb 0x140014746
inc rdx
mov rcx, qword [rbp + 0x780]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014741
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014741
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x790], xmm0
mov byte [rbp + 0x780], 0
mov rbx, qword [rbp + 0x88]
test rbx, rbx
je 0x140014795
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140014795
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140014795
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x738]
cmp rdx, 0x10
jb 0x1400147da
inc rdx
mov rcx, qword [rbp + 0x720]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400147d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400147d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
nop
mov rax, qword [rbp + 0x200]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x200], r12
mov rax, qword [rbp + 0x200]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1fc], edx
lea rcx, [rbp + 0x208]
call fcn.140002d10
lea rcx, [rbp + 0x210]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x288]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x5c0]
cmp qword [rbp + 0x5d8], 8
cmovae rcx, qword [rbp + 0x5c0]
mov eax, dword [r13 + 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
jmp 0x140014cbd
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x198]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 0x400
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x110]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x110], r12
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x118]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x118], rax
xor eax, eax
mov qword [rbp + 0x180], rax
mov dword [rbp + 0x188], 4
lea rdx, str.Opening_shared_memory:
lea rcx, [rbp + 0x110]
call fcn.1400020e0
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14001491e
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rax
call fcn.140002640
lea rcx, [rbp + 0x90]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
cmp qword [rax], 0
je 0x14001494b
cmp qword [0x140118a80], 0
je 0x14001494b
mov dil, 1
jmp 0x14001494e
xor dil, dil
mov dword [rsp + 0x40], 0x400
mov r14, 0xffffffffffffffff
mov rbx, qword [rbp + 0x98]
test rbx, rbx
je 0x1400149ac
mov dword [rsp + 0x40], 0x400
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400149ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov dword [rsp + 0x40], 0x400
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400149ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov dword [rsp + 0x40], 0x400
test dil, dil
je 0x140014c4a
mov rcx, qword [0x140118a80]
call qword [sym.imp.uvdilogger.dll_CSFLogger_getName]
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x750], xmm0
mov byte [rbp + 0x740], 0
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400149e0
mov rdx, rax
lea rcx, [rbp + 0x740]
call fcn.140003630
nop
lea rcx, [rbp + 0xa0]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
nop
mov rsi, qword [rax]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
lea rdx, [rbp + 0x7a0]
lea rcx, [rbp + 0x110]
call fcn.140006c50
mov rbx, rax
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x670], xmm0
mov byte [rbp + 0x660], 0
mov r8d, 0x1d
lea rdx, str.SharedMemoryWin::CreateOrOpen
lea rcx, [rbp + 0x660]
call fcn.140003630
nop
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x650], xmm0
mov byte [rbp + 0x640], 0
mov r8d, 0x30
lea rdx, str.srcSharedMemory_srcWindowsSharedMemoryWin.cpp
lea rcx, [rbp + 0x640]
call fcn.140003630
nop
mov qword [rsp + 0x30], rbx
lea rax, [rbp + 0x660]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x46
lea r9, [rbp + 0x640]
mov r8d, 4
lea rdx, [rbp + 0x740]
mov rcx, rsi
call rdi
nop
mov rdx, qword [rbp + 0x658]
cmp rdx, 0x10
jb 0x140014b00
inc rdx
mov rcx, qword [rbp + 0x640]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014afb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014afb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x650], xmm0
mov byte [rbp + 0x640], 0
mov rdx, qword [rbp + 0x678]
cmp rdx, 0x10
jb 0x140014b5b
inc rdx
mov rcx, qword [rbp + 0x660]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014b56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014b56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x670], xmm0
mov byte [rbp + 0x660], 0
mov rdx, qword [rbp + 0x7b8]
cmp rdx, 0x10
jb 0x140014bb6
inc rdx
mov rcx, qword [rbp + 0x7a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014bb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014bb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x7b0], xmm0
mov byte [rbp + 0x7a0], 0
mov rbx, qword [rbp + 0xa8]
test rbx, rbx
je 0x140014c05
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140014c05
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140014c05
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x758]
cmp rdx, 0x10
jb 0x140014c4a
inc rdx
mov rcx, qword [rbp + 0x740]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014c44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014c44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x110], r12
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x118]
call fcn.140002d10
lea rcx, [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x198]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea r8, [rbp + 0x5c0]
cmp qword [rbp + 0x5d8], 8
cmovae r8, qword [rbp + 0x5c0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [r13 + 0x208], rax
test rax, rax
jne 0x14001509f
lea rax, [0x1400dd080]
mov qword [rbp + 0x2f0], rax
lea rcx, [rbp + 0x378]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or dword [rsp + 0x40], 0x800
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x2f8]
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x2f0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x2f0], r12
mov rax, qword [rbp + 0x2f0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2ec], edx
lea rcx, [rbp + 0x2f8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x2f8], rax
xor eax, eax
mov qword [rbp + 0x360], rax
mov dword [rbp + 0x368], 4
lea rdx, str.Failed_to_create_open_shared_memory:
lea rcx, [rbp + 0x2f0]
call fcn.1400020e0
mov r8, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 0x10
jb 0x140014d86
mov r15, qword [r15]
mov rdx, r15
mov rcx, rax
call fcn.140002640
lea rcx, [rbp + 0xb0]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
cmp qword [rax], 0
je 0x140014db2
cmp qword [0x140118a80], 0
je 0x140014db2
mov dil, 1
jmp 0x140014db5
xor dil, dil
mov rbx, qword [rbp + 0xb8]
test rbx, rbx
je 0x140014dec
mov eax, r14d
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x140014dec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x140014dec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
test dil, dil
je 0x140015089
mov rcx, qword [0x140118a80]
call qword [sym.imp.uvdilogger.dll_CSFLogger_getName]
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x770], xmm0
mov byte [rbp + 0x760], 0
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140014e20
mov rdx, rax
lea rcx, [rbp + 0x760]
call fcn.140003630
nop
lea rcx, [rbp + 0xc0]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
nop
mov rsi, qword [rax]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
lea rdx, [rbp + 0x7c0]
lea rcx, [rbp + 0x2f0]
call fcn.140006c50
mov rbx, rax
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x630], xmm0
mov byte [rbp + 0x620], 0
mov r8d, 0x1d
lea rdx, str.SharedMemoryWin::CreateOrOpen
lea rcx, [rbp + 0x620]
call fcn.140003630
nop
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x6f0], xmm0
mov byte [rbp + 0x6e0], 0
mov r8d, 0x30
lea rdx, str.srcSharedMemory_srcWindowsSharedMemoryWin.cpp
lea rcx, [rbp + 0x6e0]
call fcn.140003630
nop
mov qword [rsp + 0x30], rbx
lea rax, [rbp + 0x620]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x4d
lea r9, [rbp + 0x6e0]
mov r8d, 5
lea rdx, [rbp + 0x760]
mov rcx, rsi
call rdi
nop
mov rdx, qword [rbp + 0x6f8]
cmp rdx, 0x10
jb 0x140014f40
inc rdx
mov rcx, qword [rbp + 0x6e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014f3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014f3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x6f0], xmm0
mov byte [rbp + 0x6e0], 0
mov rdx, qword [rbp + 0x638]
cmp rdx, 0x10
jb 0x140014f9b
inc rdx
mov rcx, qword [rbp + 0x620]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014f96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014f96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x630], xmm0
mov byte [rbp + 0x620], 0
mov rdx, qword [rbp + 0x7d8]
cmp rdx, 0x10
jb 0x140014ff6
inc rdx
mov rcx, qword [rbp + 0x7c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014ff1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014ff1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x7d0], xmm0
mov byte [rbp + 0x7c0], 0
mov rbx, qword [rbp + 0xc8]
test rbx, rbx
je 0x140015044
mov eax, r14d
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x140015044
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140015044
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x778]
cmp rdx, 0x10
jb 0x140015089
inc rdx
mov rcx, qword [rbp + 0x760]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015083
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015083
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047a18
nop
lea rcx, [rbp + 0x2f0]
call fcn.140002f50
movzx ebx, byte [r13 + 0xc]
jmp 0x14001549a
cmp byte [rsp + 0x44], 0
je 0x140015289
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140015289
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x3e0]
call fcn.1400029c0
nop
lea rdx, str.Shared_Memory_is_already_created._SM:
lea rcx, [rbp + 0x3e0]
call fcn.1400020e0
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1400150f1
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rax
call fcn.140002640
lea rcx, [rbp + 0xd0]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
cmp qword [rax], 0
je 0x14001511d
cmp qword [0x140118a80], 0
je 0x14001511d
mov bl, 1
jmp 0x14001511f
xor bl, bl
lea rcx, [rbp + 0xd0]
call fcn.140002e10
test bl, bl
je 0x14001527d
mov rcx, qword [0x140118a80]
call qword [sym.imp.uvdilogger.dll_CSFLogger_getName]
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x830], xmm0
mov byte [rbp + 0x820], 0
mov r8, r14
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140015160
mov rdx, rax
lea rcx, [rbp + 0x820]
call fcn.140003630
nop
lea rcx, [rbp + 0xe0]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
nop
mov rsi, qword [rax]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
lea rdx, [rbp + 0x8a0]
lea rcx, [rbp + 0x3e0]
call fcn.140006c50
mov rbx, rax
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x810], xmm0
mov byte [rbp + 0x800], 0
mov r8d, 0x1d
lea rdx, str.SharedMemoryWin::CreateOrOpen
lea rcx, [rbp + 0x800]
call fcn.140003630
nop
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x7f0], xmm0
mov byte [rbp + 0x7e0], 0
mov r8d, 0x30
lea rdx, str.srcSharedMemory_srcWindowsSharedMemoryWin.cpp
lea rcx, [rbp + 0x7e0]
call fcn.140003630
nop
mov qword [rsp + 0x30], rbx
lea rax, [rbp + 0x800]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x55
lea r9, [rbp + 0x7e0]
mov r8d, 4
lea rdx, [rbp + 0x820]
mov rcx, rsi
call rdi
nop
lea rcx, [rbp + 0x7e0]
call fcn.140002cb0
nop
lea rcx, [rbp + 0x800]
call fcn.140002cb0
nop
lea rcx, [rbp + 0x8a0]
call fcn.140002cb0
nop
lea rcx, [rbp + 0xe0]
call fcn.140002e10
nop
lea rcx, [rbp + 0x820]
call fcn.140002cb0
nop
lea rcx, [rbp + 0x3e0]
call fcn.140002f50
mov eax, dword [r13 + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, qword [r13 + 0x208]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r13 + 0x10], rax
test rax, rax
jne 0x140015493
mov rcx, qword [r13 + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x4d0]
call fcn.1400029c0
nop
lea rdx, str.Failed_to_map_shared_memory:
lea rcx, [rbp + 0x4d0]
call fcn.1400020e0
mov r8, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 0x10
jb 0x1400152fa
mov r15, qword [r15]
mov rdx, r15
mov rcx, rax
call fcn.140002640
lea rcx, [rbp + 0xf0]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
cmp qword [rax], 0
je 0x140015325
cmp qword [0x140118a80], 0
je 0x140015325
mov bl, 1
jmp 0x140015327
xor bl, bl
lea rcx, [rbp + 0xf0]
call fcn.140002e10
test bl, bl
je 0x140015480
mov rcx, qword [0x140118a80]
call qword [sym.imp.uvdilogger.dll_CSFLogger_getName]
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x870], xmm0
mov byte [rbp + 0x860], 0
nop
inc r14
cmp byte [rax + r14], 0
jne 0x140015360
mov r8, r14
mov rdx, rax
lea rcx, [rbp + 0x860]
call fcn.140003630
nop
lea rcx, [rbp + 0x100]
call sub.Common_HvdAgent.dll_class_std::shared_ptr_class_CSF::csflogger::LogController____cdecl_VirtualChannelLogger_getInstance_void_
nop
mov rsi, qword [rax]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
lea rdx, [rbp + 0x8c0]
lea rcx, [rbp + 0x4d0]
call fcn.140006c50
mov rbx, rax
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x850], xmm0
mov byte [rbp + 0x840], 0
mov r8d, 0x1d
lea rdx, str.SharedMemoryWin::CreateOrOpen
lea rcx, [rbp + 0x840]
call fcn.140003630
nop
movdqa xmm0, xmmword [0x1400dd280]
movdqu xmmword [rbp + 0x890], xmm0
mov byte [rbp + 0x880], 0
mov r8d, 0x30
lea rdx, str.srcSharedMemory_srcWindowsSharedMemoryWin.cpp
lea rcx, [rbp + 0x880]
call fcn.140003630
nop
mov qword [rsp + 0x30], rbx
lea rax, [rbp + 0x840]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x61
lea r9, [rbp + 0x880]
mov r8d, 5
lea rdx, [rbp + 0x860]
mov rcx, rsi
call rdi
nop
lea rcx, [rbp + 0x880]
call fcn.140002cb0
nop
lea rcx, [rbp + 0x840]
call fcn.140002cb0
nop
lea rcx, [rbp + 0x8c0]
call fcn.140002cb0
nop
lea rcx, [rbp + 0x100]
call fcn.140002e10
nop
lea rcx, [rbp + 0x860]
call fcn.140002cb0
nop
lea rcx, [rbp + 0x4d0]
call fcn.140002f50
movzx ebx, byte [r13 + 0xc]
jmp 0x14001549a
mov byte [r13 + 0xc], 1
mov bl, 1
mov r8, qword [rbp + 0x5d8]
cmp r8, 8
jb 0x1400154bd
inc r8
mov rdx, qword [rbp + 0x5c0]
lea rcx, [rbp + 0x5c0]
call fcn.140015620
movzx eax, bl
mov rcx, qword [rbp + 0x8e0]
xor rcx, rsp
call fcn.140047d70
mov rbx, qword [rsp + 0xa48]
add rsp, 0x9f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret