Function at 0x140026500
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x64], 0
mov rdi, rcx
jne 0x140026788
mov qword [rsp + 0x40], rbx
lea rdx, str.CSecureChannelMELSPCON::Initialize
lea rcx, str.ENTER_______s_n
mov qword [rsp + 0x48], rsi
call fcn.140021bd0
call fcn.14001e650
mov qword [rdi], rax
test rax, rax
jne 0x140026560
mov r8d, 0x19b
lea rdx, str.CSecureChannelMELSPCON::Initialize
lea rcx, str._s:_d:_ERROR:_Create_Escape_Call_failed_n
call fcn.140021bd0
mov ebx, 0x80004005
jmp 0x14002671d
mov rcx, rdi
call fcn.140026e50
mov ebx, eax
test eax, eax
jns 0x140026580
mov r8d, 0x1a3
lea rcx, str._s:_d:_ERROR:_QueryForLSPCON_failed_n
jmp 0x1400266ea
cmp dword [rdi + 0x18], 0
lea rdx, str.CSecureChannelMELSPCON::Initialize
jne 0x14002659c
mov r8d, 0x1a8
lea rcx, str._s:_d:_ERROR:_LSPCON_not_detected_n
jmp 0x1400265b0
mov dword [rdi + 0x70], 1
lea rcx, str._s:_d:_LSPCON_detected_n
mov r8d, 0x1af
call fcn.140021bd0
xor esi, esi
lea rbx, [rdi + 0x28]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
test rax, rax
je 0x1400266fc
inc esi
add rbx, 8
cmp esi, 5
jl 0x1400265c0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x140026623
mov r8d, 0x1c4
lea rdx, str.CSecureChannelMELSPCON::Initialize
lea rcx, str._s:_d:_m_hTaskDone_CreateEvent_failed__n
call fcn.140021bd0
mov ebx, 0x80004005
jmp 0x14002671d
mov rcx, rdi
call fcn.1400261b0
mov ebx, eax
test eax, eax
jns 0x14002665a
mov r9d, eax
lea rdx, str.CSecureChannelMELSPCON::Initialize
mov r8d, 0x1cc
lea rcx, str._s:_d:_InitOPMPath_Failed_hr_:__d_n
call fcn.140021bd0
mov rcx, rdi
call fcn.1400252b0
jmp 0x1400266f6
mov qword [rsp + 0x28], 0
lea r8, [0x140026d00]
mov r9, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x1400266a8
mov r8d, 0x1dc
lea rdx, str.CSecureChannelMELSPCON::Initialize
lea rcx, str._s:_d:_Create_listening_thread_failed__n
call fcn.140021bd0
mov ebx, 0x80004005
jmp 0x14002671d
call fcn.140003740
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400266d9
mov r8d, 0x1e5
lea rdx, str.CSecureChannelMELSPCON::Initialize
lea rcx, str._s:_d:_ERROR:_m_pEventHandler_is_NULL_n
call fcn.140021bd0
mov rcx, rdi
call fcn.1400252b0
jmp 0x1400266f6
mov byte [rdi + 0x64], 1
lea rcx, str._s:_d:_Init_Successful__n
mov r8d, 0x1ea
lea rdx, str.CSecureChannelMELSPCON::Initialize
call fcn.140021bd0
test ebx, ebx
je 0x140026743
jmp 0x14002671d
mov r9d, esi
lea rdx, str.CSecureChannelMELSPCON::Initialize
mov r8d, 0x1b8
lea rcx, str._s:_d:_m_hEvents_creation_failed___number_:_d__n
mov ebx, 0x80004005
call fcn.140021bd0
mov r8d, 0x1ef
lea rdx, str.CSecureChannelMELSPCON::Initialize
lea rcx, str._s:_d:_Init_Failed__n
call fcn.140021bd0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140026743
call fcn.14001e950
mov r8d, ebx
lea rdx, str.CSecureChannelMELSPCON::Initialize
lea rcx, str.EXIT________s:_ret__0x_x_n
call fcn.140021bd0
mov rsi, qword [rsp + 0x48]
test ebx, ebx
mov rbx, qword [rsp + 0x40]
jns 0x140026788
mov r8d, 0x536
lea rdx, str.CSecureChannelMELSPCON::IsLSPCONPresent
lea rcx, str._s:_d:_ERROR:_Initialize___failed_hr_n
call fcn.140021bd0
xor al, al
add rsp, 0x30
pop rdi
ret
movzx eax, byte [rdi + 0x6a]
add rsp, 0x30
pop rdi
ret