Function at 0x14000ed6c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [rcx + 8]
lea rdi, [rbp + 0x17]
xor r12d, r12d
mov qword [rbp - 0x11], rax
mov qword [rbp + 0xf], rax
test r8, r8
lea rax, [0x14015ab70]
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x21], rax
cmovne rdi, r8
mov rax, qword [rcx]
mov r13, rdx
mov qword [rbp - 9], rax
mov rsi, rcx
mov eax, dword [rdx + 0xc]
lea ecx, [r12 + 0x40]
add eax, 0x30
mov qword [rbp + 7], r12
mov edx, eax
mov ebx, r12d
mov qword [rbp - 0x29], r12
mov qword [rbp - 1], r12
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14000f01e
mov r8d, dword [r13 + 0xc]
lea rcx, [rax + 0x20]
add r8d, 0x10
mov rdx, r13
call fcn.1400c43f0
lea r8d, [r12 + 4]
mov edx, r15d
lea rcx, [rbp - 0x19]
call fcn.14000b3b0
test eax, eax
je 0x14000f015
mov r8d, r15d
mov qword [rbp - 0x29], r14
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.14000aff0
test eax, eax
je 0x14000f00c
mov rdx, qword [rsi + 8]
mov ecx, dword [rdx]
sub ecx, 1
je 0x14000eebb
cmp ecx, 2
jne 0x14000f00c
mov r8, qword [rbp - 0x19]
lea rcx, str.Th____p_nDa____p_n
mov rdx, qword [rbp - 9]
mov qword [rbp - 1], r8
call fcn.14000b98c
mov rax, qword [rsi + 8]
lea r9d, [r12 + 0x10]
mov dword [rsp + 0x30], r12d
lea r8, [rbp - 9]
mov qword [rsp + 0x28], r12
mov edx, 0x22c1c3
mov qword [rsp + 0x20], r12
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call fcn.140009d84
mov ebx, eax
test eax, eax
jne 0x14000ef79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_pjwecmixremotelib_create___pjwecmixkernel_ioctl_handle__0x_08x__n
call fcn.14000b98c
jmp 0x14000f00c
mov rcx, qword [rdx + 8]
xor edx, edx
cmp dword [0x14015b484], 5
mov r9, qword [rsi]
mov rcx, qword [rcx]
jbe 0x14000ef13
mov qword [rsp + 0x48], r12
lea rax, [rbp + 0x67]
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rax, qword [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r9
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
jns 0x14000ef4c
mov qword [rbp + 0x67], r12
lea rcx, str.ERROR_pjwecmixremotelib_create___RtlCreateUserThread__0x_08x__n
jmp 0x14000ef45
mov rax, qword [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x67], rax
test rax, rax
jne 0x14000ef59
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_pjwecmixremotelib_create___CreateRemoteThread__0x_08x__n
mov edx, eax
call fcn.14000b98c
mov rax, qword [rbp + 0x67]
test rax, rax
je 0x14000f00c
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test eax, eax
je 0x14000f00c
mov r8d, Ordinal_36
mov qword [rbp - 0x29], rdi
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.14000aff0
mov ebx, eax
test eax, eax
je 0x14000f00c
mov rax, qword [rdi + 0x18]
mov qword [rbp + 7], rax
test rax, rax
je 0x14000f00c
lea rax, [rbp + 0x17]
cmp rdi, rax
je 0x14000f003
mov ebx, r12d
mov qword [rdi + 0x18], r12
cmp dword [rdi + 0x10], r12d
je 0x14000efff
mov edx, dword [rdi + 0x10]
mov ecx, Ordinal_65
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14000efff
mov r8d, dword [rdi + 0x10]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x29]
call fcn.14000aff0
mov ebx, eax
test eax, eax
je 0x14000eff1
mov rax, qword [rbp - 0x29]
mov qword [rdi + 0x18], rax
jmp 0x14000effb
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x14000f003
mov dword [rdi + 0x10], r12d
lea rcx, [rbp + 7]
call fcn.14000b46c
lea rcx, [rbp - 0x19]
call fcn.14000b46c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret