Function at 0x1400a1860
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 [0x140216028]
xor rax, rsp
mov qword [rsp + 0x88], rax
call fcn.14006e420
mov qword [rsp + 0x38], rax
lea rbp, [rsi + 0x50]
lea rdi, [rsi + 0x48]
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x1400a18fc
mov rcx, rsi
mov dl, 1
call fcn.1400b1160
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a1904
lea rdx, [0x140200b78]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13c
call fcn.140179920
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1401943d0
mov rcx, r14
call fcn.140179950
mov r14, 0xffffffffffffffff
jmp 0x1400a1904
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.14010f2e8
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
lea rbx, [0x1401e8e10]
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, [0x1400a1d80]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
je 0x1400a1cc4
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x1400a19c5
mov rcx, rsi
xor edx, edx
call fcn.1400b1160
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a19cd
lea rdx, [0x140200b78]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13c
call fcn.140179920
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1401943d0
mov rcx, r14
call fcn.140179950
mov r14, 0xffffffffffffffff
jmp 0x1400a19cd
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.14010f2e8
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, [0x1400a1d80]
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 0x1400a1cfa
mov qword [rsp + 0x48], r15
mov rcx, r13
call fcn.140038260
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 0x1400a1b57
mov rcx, rdi
call r14
test al, al
je 0x1400a1cb7
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400a1b1d
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 0x1400a1ab0
cmp r12, rbx
je 0x1400a1b1d
cmp qword [r12 + 0x20], r15
ja 0x1400a1b1d
test r12, r12
je 0x1400a1c8b
mov rdx, qword [r12 + 8]
mov r8, r12
test rdx, rdx
je 0x1400a1af7
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400a1aea
jmp 0x1400a1b03
mov rax, qword [r8 + 0x10]
cmp qword [rax], r8
mov r8, rax
jne 0x1400a1af7
cmp qword [rbp], r12
je 0x1400a1b48
dec qword [rsi + 0x60]
mov rdx, r12
call fcn.1400c4650
mov rcx, r12
call fcn.14010f324
mov rcx, r15
call fcn.1400a1ea0
mov rcx, r15
call fcn.14010f324
cmp byte [rsi + 0x68], 0
jne 0x1400a1b3a
cmp qword [rsi + 0x60], 0
je 0x1400a1b4e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400a1a4d
mov qword [rbp], rax
jmp 0x1400a1b09
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.1400b0e40
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.1400b0e40
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 0x1400a1d30
mov rcx, rbp
mov rax, qword [rbp]
mov qword [rsp + 0x60], rax
cmp rax, rbx
jne 0x1400a1d3d
mov rdx, qword [rsi + 0x58]
call fcn.14007ed10
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 0x1400a1c52
mov rcx, r12
call fcn.1400ad320
test r15, r15
je 0x1400a1c5f
mov rcx, r15
call fcn.1400ad320
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140110830
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.14014d850
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400a1aa2
lea rdx, [0x140200b78]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14b
call fcn.140179920
lea rdx, [0x140200c00]
mov rcx, r14
call fcn.1401943d0
mov rcx, r14
call fcn.140179950
jmp 0x1400a196e
lea rdx, [0x140200b78]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14b
call fcn.140179920
lea rdx, [0x140200c00]
mov rcx, r14
call fcn.1401943d0
mov rcx, r14
call fcn.140179950
jmp 0x1400a1a32
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400a1c13
lea r14, [rsp + 0x60]
mov r12, qword [rsp + 0x40]
mov r15, qword [rax + 0x20]
test r15, r15
je 0x1400a1d60
mov rcx, r15
call fcn.1400a1ea0
mov rcx, r15
call fcn.14010f324
mov rcx, r14
call fcn.1400a1fa0
mov rax, qword [rsp + 0x60]
cmp rax, rbx
mov rcx, rbp
mov r15, qword [rsp + 0x48]
je 0x1400a1c28
jmp 0x1400a1d47