Function at 0x140012410
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x270
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp byte [rcx + 0x64], 0
mov rbp, rdx
mov rdi, rcx
jne 0x14001264a
mov qword [rsp + 0x2a0], rsi
call fcn.14000e7f0
mov qword [rdi], rax
test rax, rax
jne 0x14001246a
lea rdx, str.Create_Escape_Call_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012613
mov rcx, rdi
call fcn.140013300
mov ebx, eax
test eax, eax
jns 0x140012484
lea rdx, str.QueryForLSPCON_failed
jmp 0x1400125f0
xor ecx, ecx
cmp dword [rdi + 0x18], ecx
jne 0x140012494
lea rdx, str.LSPCON_not_detected
jmp 0x1400124a2
mov dword [rdi + 0x70], 1
lea rdx, str.LSPCON_detected
call fcn.140003fe0
xor esi, esi
lea rbx, [rdi + 0x28]
nop dword [rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx], rax
test rax, rax
je 0x1400125fd
inc esi
add rbx, 8
cmp esi, 5
jl 0x1400124b0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x140012508
lea rdx, str.m_hTaskDone_CreateEvent_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012613
mov rcx, rdi
call fcn.140012860
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x14001257e
mov r8d, eax
lea rdx, str.InitOPMPath_Failed_hr_:__d
call fcn.140003fe0
lea rdx, str.Calling_CloseOPMPath:
xor ecx, ecx
call fcn.140003fe0
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x30], 4
mov r8d, 0x22f
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x20], 0
call fcn.14000ef00
test eax, eax
jns 0x1400125f7
mov r8d, eax
lea rdx, str.Connect_to_escape_failed_hr:__d
xor ecx, ecx
call fcn.140003fe0
jmp 0x1400125f7
mov qword [rsp + 0x28], 0
lea r8, [0x1400131c0]
mov r9, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x1400125bf
lea rdx, str.Create_listening_thread_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012613
call fcn.140003880
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400125e5
lea rdx, str.m_pEventHandler_is_NULL
xor ecx, ecx
call fcn.140003fe0
mov rcx, rdi
call fcn.140011e70
jmp 0x1400125f7
mov byte [rdi + 0x64], 1
lea rdx, str.Init_Successful_
xor ecx, ecx
call fcn.140003fe0
test ebx, ebx
je 0x14001262e
jmp 0x140012613
mov r8d, esi
lea rdx, str.m_hEvents_creation_failed___number_:_d
xor ecx, ecx
mov ebx, 0x80004005
call fcn.140003fe0
lea rdx, str.Init_Failed_
xor ecx, ecx
call fcn.140003fe0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001262e
call fcn.14000e8a0
mov rsi, qword [rsp + 0x2a0]
test ebx, ebx
jns 0x14001264a
lea rdx, str.Initialize___failed_hr
xor ecx, ecx
call fcn.140003fe0
jmp 0x140012685
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x140012666
lea rdx, str.m_pLspconHeciChannel__is_NULL
call fcn.140003fe0
mov eax, 0x80070057
jmp 0x140012687
mov rdx, rbp
call fcn.14000f340
mov ebx, eax
test eax, eax
jns 0x140012685
mov r8d, eax
lea rdx, str.GetLspconStatus_hr_:__d
xor ecx, ecx
call fcn.140003fe0
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140013c00
add rsp, 0x270
pop rdi
pop rbp
pop rbx
ret