Function at 0x14001f450
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rsi, rcx
xor ebx, ebx
mov dword [rbp + 0xb0], ebx
call fcn.140016020
mov qword [rsi], rax
test rax, rax
jne 0x14001f6ac
lea r12, [0x140062260]
mov qword [rsp + 0x30], r12
lea r13, [0x140062268]
mov qword [rsp + 0x40], r13
mov dword [rbp + 0xb0], 1
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 0x88
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x30]
call fcn.140004e10
lea rax, [rsp + 0x48]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rbx
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x30]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov rdi, rax
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x14001f522
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001f522
mov r8, qword [rax]
lea edx, [rbx + 1]
mov rcx, rax
call qword [r8]
mov rax, qword [rdi]
mov dl, 0x20
mov rcx, rdi
call qword [rax + 0x60]
mov word [rbp + 0x28], ax
cmp qword [rbp + 0x18], 0
jne 0x14001f54b
mov edx, dword [rbp - 0x20]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140005560
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
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 + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x2c], edx
mov dword [rbp - 0x40], 0xa
lea rdx, str.Create_Excape_Call_failed
lea rcx, [rsp + 0x40]
call fcn.140001460
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov rdi, rax
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x14001f666
mov r8, qword [rcx]
call qword [r8 + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001f666
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rdi]
mov dl, 0xa
mov rcx, rdi
call qword [rax + 0x60]
movzx edx, ax
mov rcx, rbx
call fcn.14000c170
mov rcx, rbx
call fcn.140005c60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
lea r15, vtable.std::ios_base.0
mov qword [rbp - 0x30], r15
lea rcx, [rbp - 0x30]
call fcn.140027088
mov edi, 0x80004005
jmp 0x1400200c4
mov rcx, rsi
call fcn.140021500
mov edi, eax
lea r12, [0x140062260]
lea r13, [0x140062268]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r13
test eax, eax
jns 0x14001f865
mov dword [rbp + 0xb0], SafeArrayAllocDescriptorEx
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 0x88
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x30]
call fcn.140004e10
lea rax, [rsp + 0x48]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rbx
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x30]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov r14, rax
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x14001f74e
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001f74e
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [r14]
mov dl, 0x20
mov rcx, r14
call qword [rax + 0x60]
mov word [rbp + 0x28], ax
cmp qword [rbp + 0x18], 0
jne 0x14001f777
mov edx, dword [rbp - 0x20]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140005560
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
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 + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x2c], edx
mov dword [rbp - 0x40], 0xa
lea rdx, str.QueryForLSPCON_failed
lea rcx, [rsp + 0x40]
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
lea r15, vtable.std::ios_base.0
jmp 0x14001fec0
cmp dword [rsi + 0x10], ebx
jne 0x14001f9a1
mov dword [rbp + 0xb0], 0x400
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 0x88
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140005d60
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
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 + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x2c], edx
mov dword [rbp - 0x40], 0xa
lea rdx, str.LSPCON_not_detected
lea rcx, [rsp + 0x40]
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
lea r15, vtable.std::ios_base.0
mov qword [rbp - 0x30], r15
lea rcx, [rbp - 0x30]
call fcn.140027088
mov edi, 1
jmp 0x1400200c4
mov dword [rbp + 0xb0], 0x8000
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 0x88
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140005d60
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
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 + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x2c], edx
mov dword [rbp - 0x40], 0x64
lea rdx, str.LSPCON_detected
lea rcx, [rsp + 0x40]
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
lea r15, vtable.std::ios_base.0
mov qword [rbp - 0x30], r15
lea rcx, [rbp - 0x30]
call fcn.140027088
mov r14d, ebx
lea rdi, [rsi + 0x20]
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
test rax, rax
je 0x14001ff17
inc r14d
add rdi, 8
cmp r14d, 4
jl 0x14001fae0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x40], rax
test rax, rax
jne 0x14001fcb8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r13
mov dword [rbp + 0xb0], 0x2008000
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 0x88
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x30]
call fcn.140004e10
lea rax, [rsp + 0x48]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rbx
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x30]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov rdi, rax
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x14001fba8
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001fba8
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rdi]
mov dl, 0x20
mov rcx, rdi
call qword [rax + 0x60]
mov word [rbp + 0x28], ax
cmp qword [rbp + 0x18], 0
jne 0x14001fbd1
mov edx, dword [rbp - 0x20]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140005560
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
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 + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x2c], edx
mov dword [rbp - 0x40], 0xa
lea rdx, str.m_HeciInitEvent_CreateEvent_failed
lea rcx, [rsp + 0x40]
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
jmp 0x14001f695
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x48], rax
test rax, rax
jne 0x14001fd10
lea edx, [rax + 1]
lea rcx, [rsp + 0x30]
call fcn.140001ed0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.m_hTaskDone_CreateEvent_failed
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
jmp 0x14001f695
mov rcx, rsi
call fcn.14001ef40
mov edi, eax
test eax, eax
jns 0x14001fd9b
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001ed0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.InitOPMPath_Failed_hr_:
call fcn.140001460
mov rcx, rax
test rax, rax
je 0x14001fd5a
mov rax, qword [rax]
movsxd rbx, dword [rax + 4]
add rbx, rcx
and dword [rbx + 0x18], 0xfffff9ff
or dword [rbx + 0x18], 0x800
mov edx, edi
call fcn.14000ceb0
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
mov qword [rbp - 0x30], r15
lea rcx, [rbp - 0x30]
call fcn.140027088
mov rcx, rsi
call fcn.14001d560
jmp 0x14001fecd
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rsi
lea r8, [0x140021070]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x50], rax
mov edx, 1
lea rcx, [rsp + 0x30]
test rax, rax
jne 0x14001fe02
call fcn.140001ed0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Create_listening_thread_failed
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
jmp 0x14001f695
call fcn.140001ed0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Created_listening_thread_success
call fcn.140001460
mov rcx, rax
test rax, rax
je 0x14001fe34
mov rax, qword [rax]
movsxd rbx, dword [rax + 4]
add rbx, rcx
and dword [rbx + 0x18], 0xfffff9ff
or dword [rbx + 0x18], 0x800
mov rdx, qword [rsi + 0x50]
call fcn.14001cfd0
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
mov qword [rbp - 0x30], r15
lea rcx, [rbp - 0x30]
call fcn.140027088
mov edx, 0x2710
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov edx, 1
lea rcx, [rsp + 0x30]
cmp dword [rsi + 0x64], 0
je 0x14001feda
mov dword [rsi + 0x5c], edx
call fcn.140001ed0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Init_Successful_
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
mov qword [rbp - 0x30], r15
lea rcx, [rbp - 0x30]
call fcn.140027088
test edi, edi
jne 0x1400200c4
jmp 0x1400200d1
mov edi, 0x80004005
call fcn.140001ed0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Init_Failed__Event:
call fcn.140001460
mov rcx, rax
mov edx, ebx
call fcn.1400086c0
mov rcx, rax
call fcn.14000ca60
nop
jmp 0x1400200ae
mov edi, 0x80004005
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r13
mov dword [rbp + 0xb0], 0x108000
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 0x88
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x30]
call fcn.140004e10
lea rax, [rsp + 0x48]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rbx
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x30]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov r12, rax
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x14001ff9e
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001ff9e
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [r12]
mov dl, 0x20
mov rcx, r12
call qword [rax + 0x60]
mov word [rbp + 0x28], ax
cmp qword [rbp + 0x18], 0
jne 0x14001ffc8
mov edx, dword [rbp - 0x20]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140005560
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
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 + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa0]
mov dword [rsp + rcx + 0x2c], r8d
mov dword [rbp - 0x40], 0xa
lea rdx, str.m_hEvents_creation_failed___number_:
lea rcx, [rsp + 0x40]
call fcn.140001460
mov rcx, rax
mov edx, r14d
call fcn.14000cd10
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp - 0x30]
call fcn.140008370
mov qword [rbp - 0x30], r15
lea rcx, [rbp - 0x30]
call fcn.140027088
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400200d1
call fcn.140016190
mov eax, edi
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret