Function at 0x14018d8b0
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 [0x140448038]
xor rax, rsp
mov qword [rsp + 0x88], rax
call fcn.14010d610
mov qword [rsp + 0x38], rax
lea rbp, [rsi + 0x50]
lea rdi, [rsi + 0x48]
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x14018d94c
mov rcx, rsi
mov dl, 1
call fcn.1401740a0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14018d954
lea rdx, [0x14042d748]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13b
call fcn.1402d9960
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1402ebae0
mov rcx, r14
call fcn.1402d9990
mov r14, 0xffffffffffffffff
jmp 0x14018d954
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140252388
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
lea rbx, [0x1403cf828]
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, [0x14018ddd0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
je 0x14018dd14
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x14018da15
mov rcx, rsi
xor edx, edx
call fcn.1401740a0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14018da1d
lea rdx, [0x14042d748]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13b
call fcn.1402d9960
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1402ebae0
mov rcx, r14
call fcn.1402d9990
mov r14, 0xffffffffffffffff
jmp 0x14018da1d
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140252388
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, [0x14018ddd0]
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 0x14018dd4a
mov qword [rsp + 0x48], r15
mov rcx, r13
call fcn.1400aa190
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 0x14018dba7
mov rcx, rdi
call r14
test al, al
je 0x14018dd07
mov rcx, qword [rbx]
test rcx, rcx
je 0x14018db6d
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 0x14018db00
cmp r12, rbx
je 0x14018db6d
cmp qword [r12 + 0x20], r15
ja 0x14018db6d
test r12, r12
je 0x14018dcdb
mov rdx, qword [r12 + 8]
mov r8, r12
test rdx, rdx
je 0x14018db47
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14018db3a
jmp 0x14018db53
mov rax, qword [r8 + 0x10]
cmp qword [rax], r8
mov r8, rax
jne 0x14018db47
cmp qword [rbp], r12
je 0x14018db98
dec qword [rsi + 0x60]
mov rdx, r12
call fcn.1401d6980
mov rcx, r12
call fcn.1402523c4
mov rcx, r15
call fcn.14018def0
mov rcx, r15
call fcn.1402523c4
cmp byte [rsi + 0x68], 0
jne 0x14018db8a
cmp qword [rsi + 0x60], 0
je 0x14018db9e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14018da9d
mov qword [rbp], rax
jmp 0x14018db59
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.140173d80
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.140173d80
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 0x14018dd80
mov rcx, rbp
mov rax, qword [rbp]
mov qword [rsp + 0x60], rax
cmp rax, rbx
jne 0x14018dd8d
mov rdx, qword [rsi + 0x58]
call fcn.1400d89f0
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 0x14018dca2
mov rcx, r12
call fcn.140175020
test r15, r15
je 0x14018dcaf
mov rcx, r15
call fcn.140175020
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140253b80
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.1402984b0
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14018daf2
lea rdx, [0x14042d748]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14a
call fcn.1402d9960
lea rdx, [0x14041b722]
mov rcx, r14
call fcn.1402ebae0
mov rcx, r14
call fcn.1402d9990
jmp 0x14018d9be
lea rdx, [0x14042d748]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14a
call fcn.1402d9960
lea rdx, [0x14041b722]
mov rcx, r14
call fcn.1402ebae0
mov rcx, r14
call fcn.1402d9990
jmp 0x14018da82
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14018dc63
lea r14, [rsp + 0x60]
mov r12, qword [rsp + 0x40]
mov r15, qword [rax + 0x20]
test r15, r15
je 0x14018ddb0
mov rcx, r15
call fcn.14018def0
mov rcx, r15
call fcn.1402523c4
mov rcx, r14
call fcn.14018dff0
mov rax, qword [rsp + 0x60]
cmp rax, rbx
mov rcx, rbp
mov r15, qword [rsp + 0x48]
je 0x14018dc78
jmp 0x14018dd97