Function at 0x14018e2b0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov r13, rdx
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x88], rax
call fcn.14010d7c0
mov qword [rsp + 0x38], rax
lea rbp, [rsi + 0x50]
lea rdi, [rsi + 0x48]
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x14018e34c
mov rcx, rsi
mov dl, 1
call fcn.140174980
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14018e354
lea rdx, [0x140434bb8]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13b
call fcn.1402e05b0
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1402f2700
mov rcx, r14
call fcn.1402e05e0
mov r14, 0xffffffffffffffff
jmp 0x14018e354
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140258e18
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
lea rbx, str.P___
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rbp
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x38], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14018e7d0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
je 0x14018e714
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x14018e415
mov rcx, rsi
xor edx, edx
call fcn.140174980
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14018e41d
lea rdx, [0x140434bb8]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13b
call fcn.1402e05b0
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1402f2700
mov rcx, r14
call fcn.1402e05e0
mov r14, 0xffffffffffffffff
jmp 0x14018e41d
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140258e18
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rbp
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x38], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14018e7d0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14018e74a
mov qword [rsp + 0x48], r15
mov rcx, r13
call fcn.1400a9980
lea rbx, [rsi + 0x58]
xor r13d, r13d
mov r14, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x84], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x84]
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x14018e5a7
mov rcx, rdi
call r14
test al, al
je 0x14018e707
mov rcx, qword [rbx]
test rcx, rcx
je 0x14018e56d
mov rax, rcx
mov r12, rbx
lea rdx, [rax + 8]
cmp qword [rax + 0x20], r15
cmovae rdx, rax
cmovae r12, rax
mov rax, qword [rdx]
test rax, rax
jne 0x14018e500
cmp r12, rbx
je 0x14018e56d
cmp qword [r12 + 0x20], r15
ja 0x14018e56d
test r12, r12
je 0x14018e6db
mov rdx, qword [r12 + 8]
mov r8, r12
test rdx, rdx
je 0x14018e547
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14018e53a
jmp 0x14018e553
mov rax, qword [r8 + 0x10]
cmp qword [rax], r8
mov r8, rax
jne 0x14018e547
cmp qword [rbp], r12
je 0x14018e598
dec qword [rsi + 0x60]
mov rdx, r12
call fcn.1401d79a0
mov rcx, r12
call fcn.140258e54
mov rcx, r15
call fcn.14018e8f0
mov rcx, r15
call fcn.140258e54
cmp byte [rsi + 0x68], 0
jne 0x14018e58a
cmp qword [rsi + 0x60], 0
je 0x14018e59e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14018e49d
mov qword [rbp], rax
jmp 0x14018e559
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm6, xmm6
lea r14, [rsp + 0x60]
movups xmmword [r14 + 0xc], xmm6
xor eax, eax
mov qword [r14 + 0x1c], rax
mov eax, 1
mov dword [r14], eax
mov r13, qword [rsp + 0x38]
mov qword [r14 + 4], r13
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x50]
mov qword [r15], rax
mov r12d, 0xaaaaaaaa
mov dword [r15 + 8], r12d
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140174660
xor eax, eax
mov qword [r14 + 0x1c], rax
movups xmmword [r14 + 0xc], xmm6
mov eax, 1
mov dword [r14], eax
mov qword [r14 + 4], r13
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r15], rax
mov dword [r15 + 8], r12d
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140174660
mov r14, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r15, qword [rsp + 0x48]
mov rcx, r15
mov edx, 0xffffffff
call r14
mov r12, qword [rsp + 0x40]
mov rcx, r12
mov edx, 0xffffffff
call r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14018e780
mov rcx, rbp
mov rax, qword [rbp]
mov qword [rsp + 0x60], rax
cmp rax, rbx
jne 0x14018e78d
mov rdx, qword [rsi + 0x58]
call fcn.14014a9a0
mov qword [rsi + 0x50], rbx
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r12, r12
je 0x14018e6a2
mov rcx, r12
call fcn.140175900
test r15, r15
je 0x14018e6af
mov rcx, r15
call fcn.140175900
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14025a610
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.node_shouldnt_be_null
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x___nullptr
mov r8d, 0xcf
call fcn.14029ef60
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14018e4f2
lea rdx, [0x140434bb8]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14a
call fcn.1402e05b0
lea rdx, [0x140422a02]
mov rcx, r14
call fcn.1402f2700
mov rcx, r14
call fcn.1402e05e0
jmp 0x14018e3be
lea rdx, [0x140434bb8]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14a
call fcn.1402e05b0
lea rdx, [0x140422a02]
mov rcx, r14
call fcn.1402f2700
mov rcx, r14
call fcn.1402e05e0
jmp 0x14018e482
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14018e663
lea r14, [rsp + 0x60]
mov r12, qword [rsp + 0x40]
mov r15, qword [rax + 0x20]
test r15, r15
je 0x14018e7b0
mov rcx, r15
call fcn.14018e8f0
mov rcx, r15
call fcn.140258e54
mov rcx, r14
call fcn.14018e9f0
mov rax, qword [rsp + 0x60]
cmp rax, rbx
mov rcx, rbp
mov r15, qword [rsp + 0x48]
je 0x14018e678
jmp 0x14018e797