Function at 0x140015660
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x6d0
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.14000e600
xor r14d, r14d
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea ebp, [r14 - 1]
mov qword [rax], r14
mov qword [rax + 8], r14
mov rbx, qword [rdi + 8]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
test rbx, rbx
je 0x1400156e1
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400156e1
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002363a.0]
mov eax, ebp
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400156e1
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14002363a.0]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140015722
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140015722
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002363a.0]
mov eax, ebp
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140015722
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14002363a.0]
mov qword [rsp + 0x6e0], rsi
cmp qword [rdi], r14
jne 0x140015747
lea rdx, str.Create_Escape_Call_failed
xor ecx, ecx
call fcn.1400063c0
mov ebx, 0x80004005
jmp 0x140015a14
mov rcx, rdi
call fcn.140016b00
mov ebx, eax
test eax, eax
jns 0x140015768
lea rdx, str.QueryForLSPCON_failed
xor ecx, ecx
call fcn.1400063c0
jmp 0x1400159ea
cmp dword [rdi + 0x20], r14d
jne 0x140015777
lea rdx, str.LSPCON_not_detected
jmp 0x140015788
mov dword [rdi + 0x80], 1
lea rdx, str.LSPCON_detected
xor ecx, ecx
call fcn.1400063c0
mov esi, r14d
lea rbx, [rdi + 0x30]
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 [rbx], rax
test rax, rax
je 0x1400159fe
inc esi
add rbx, 8
cmp esi, 6
jl 0x1400157a0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateEventW]
xor ecx, ecx
mov qword [rdi + 0x60], rax
test rax, rax
jne 0x1400157f8
lea rdx, str.m_hTaskDone_CreateEvent_failed
call fcn.1400063c0
mov ebx, 0x80004005
jmp 0x140015a14
lea rdx, str.InitOPMPath_called
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400063c0
xor ecx, ecx
cmp qword [rdi + 0x38], r14
jne 0x14001582f
lea rdx, str.m_OPMTypeEvent_is_NULL
call fcn.1400063c0
mov ebx, 0x80004005
jmp 0x1400158c7
cmp qword [rdi + 0x58], r14
jne 0x140015848
lea rdx, str._POC_m_OPMTypeEvent_is_NULL
call fcn.1400063c0
mov ebx, 0x80004005
jmp 0x1400158c7
lfence
mov r8, qword [rdi + 0x38]
lea rdx, str.Event_passed_to_kmd:__lx
call fcn.1400063c0
mov rax, qword [rdi + 0x38]
lea rdx, str._D3_Resume_Event_passed_to_kmd:__lx
mov r8, qword [rdi + 0x58]
xor ecx, ecx
mov qword [rsp + 0x4c], rax
call fcn.1400063c0
mov rax, qword [rdi + 0x58]
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
mov r8d, 0x22f
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x20], 1
call fcn.14000e7b0
mov ebx, eax
test eax, eax
jns 0x1400158bf
lfence
mov r8d, eax
lea rdx, str.Connect_to_escape_to_init_KMD_escape_call_failed_hr__d:
xor ecx, ecx
call fcn.1400063c0
test ebx, ebx
jns 0x140015952
lfence
mov r8d, ebx
lea rdx, str.InitOPMPath_Failed_hr_:__d
xor ecx, ecx
call fcn.1400063c0
lea rdx, str.Calling_CloseOPMPath:
xor ecx, ecx
call fcn.1400063c0
mov dword [rsp + 0x270], 4
mov dword [rsp + 0x278], 4
cmp qword [rdi], r14
je 0x1400159ea
lea rdx, [rsp + 0x270]
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
mov r8d, 0x22f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lfence
mov rcx, qword [rdi]
call fcn.14000e7b0
test eax, eax
jns 0x1400159ea
lfence
mov r8d, eax
lea rdx, str.Connect_to_escape_failed_hr:__d
xor ecx, ecx
call fcn.1400063c0
jmp 0x1400159ea
lfence
mov qword [rsp + 0x28], r14
lea r8, [0x1400179f0]
mov r9, rdi
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [rdi + 0x68], rax
test rax, rax
jne 0x140015994
lea rdx, str.Create_listening_thread_failed
xor ecx, ecx
call fcn.1400063c0
mov ebx, 0x80004005
jmp 0x140015a14
call fcn.140005f40
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400159e6
lea rdx, str.m_pEventHandler_is_NULL
xor ecx, ecx
call fcn.1400063c0
lea rdx, str.Calling_CloseOPMPath:
xor ecx, ecx
call fcn.1400063c0
mov dword [rsp + 0x4a0], 4
mov dword [rsp + 0x4a8], 4
cmp qword [rdi], r14
je 0x1400159ea
lea rdx, [rsp + 0x4a0]
jmp 0x140015910
mov byte [rdi + 0x74], 1
test ebx, ebx
jne 0x140015a14
lea rdx, str.Init_Successful_
xor ecx, ecx
call fcn.1400063c0
jmp 0x140015a67
mov r8d, esi
lea rdx, str.m_hEvents_creation_failed___number_:_d
xor ecx, ecx
mov ebx, 0x80004005
call fcn.1400063c0
lea rdx, str.Init_Failed_
xor ecx, ecx
call fcn.1400063c0
mov rsi, qword [rdi + 8]
mov qword [rdi], r14
mov qword [rdi + 8], r14
test rsi, rsi
je 0x140015a67
mov eax, ebp
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140015a67
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x14002363a.0]
lock xadd dword [rsi + 0xc], ebp
cmp ebp, 1
jne 0x140015a67
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x14002363a.0]
mov rsi, qword [rsp + 0x6e0]
lea r11, [rsp + 0x6d0]
mov rbp, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret