Function at 0x140176e90
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 [0x140418038]
xor rax, rsp
mov qword [rsp + 0x88], rax
call fcn.1401e6f20
mov qword [rsp + 0x38], rax
lea rbp, [rsi + 0x50]
lea rdi, [rsi + 0x48]
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x140176f2c
mov rcx, rsi
mov dl, 1
call fcn.14015d600
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140176f34
lea rdx, [0x1403cd040]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13b
call fcn.140309100
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1402cee30
mov rcx, r14
call fcn.140309130
mov r14, 0xffffffffffffffff
jmp 0x140176f34
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140240cd8
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
lea rbx, [0x1403a4f10]
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, [0x1401773b0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
je 0x1401772f4
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x140176ff5
mov rcx, rsi
xor edx, edx
call fcn.14015d600
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140176ffd
lea rdx, [0x1403cd040]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x13b
call fcn.140309100
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1402cee30
mov rcx, r14
call fcn.140309130
mov r14, 0xffffffffffffffff
jmp 0x140176ffd
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140240cd8
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, [0x1401773b0]
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 0x14017732a
mov qword [rsp + 0x48], r15
mov rcx, r13
call fcn.140098280
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 0x140177187
mov rcx, rdi
call r14
test al, al
je 0x1401772e7
mov rcx, qword [rbx]
test rcx, rcx
je 0x14017714d
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 0x1401770e0
cmp r12, rbx
je 0x14017714d
cmp qword [r12 + 0x20], r15
ja 0x14017714d
test r12, r12
je 0x1401772bb
mov rdx, qword [r12 + 8]
mov r8, r12
test rdx, rdx
je 0x140177127
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14017711a
jmp 0x140177133
mov rax, qword [r8 + 0x10]
cmp qword [rax], r8
mov r8, rax
jne 0x140177127
cmp qword [rbp], r12
je 0x140177178
dec qword [rsi + 0x60]
mov rdx, r12
call fcn.1401c9b20
mov rcx, r12
call fcn.140240d14
mov rcx, r15
call fcn.1401774d0
mov rcx, r15
call fcn.140240d14
cmp byte [rsi + 0x68], 0
jne 0x14017716a
cmp qword [rsi + 0x60], 0
je 0x14017717e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14017707d
mov qword [rbp], rax
jmp 0x140177139
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.14015d2e0
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.14015d2e0
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 0x140177360
mov rcx, rbp
mov rax, qword [rbp]
mov qword [rsp + 0x60], rax
cmp rax, rbx
jne 0x14017736d
mov rdx, qword [rsi + 0x58]
call fcn.1400bcdd0
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 0x140177282
mov rcx, r12
call fcn.14015e580
test r15, r15
je 0x14017728f
mov rcx, r15
call fcn.14015e580
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140242430
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, 0xc2
call fcn.140280b90
mov rcx, rdi
call fcn.1401f0510
jmp 0x1401770d2
lea rdx, [0x1403cd040]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14a
call fcn.140309100
lea rdx, [0x1403ba39b]
mov rcx, r14
call fcn.1402cee30
mov rcx, r14
call fcn.140309130
jmp 0x140176f9e
lea rdx, [0x1403cd040]
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x14a
call fcn.140309100
lea rdx, [0x1403ba39b]
mov rcx, r14
call fcn.1402cee30
mov rcx, r14
call fcn.140309130
jmp 0x140177062
mov rcx, rdi
call fcn.1401f0510
jmp 0x140177243
lea r14, [rsp + 0x60]
mov r12, qword [rsp + 0x40]
mov r15, qword [rax + 0x20]
test r15, r15
je 0x140177390
mov rcx, r15
call fcn.1401774d0
mov rcx, r15
call fcn.140240d14
mov rcx, r14
call fcn.1401775d0
mov rax, qword [rsp + 0x60]
cmp rax, rbx
mov rcx, rbp
mov r15, qword [rsp + 0x48]
je 0x140177258
jmp 0x140177377