Function at 0x1400a9c70
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.140067520
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x1402cdfe0]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
lea rbx, str.p_e_
mov qword [rsp + 0x80], rbx
xor r13d, r13d
mov qword [rsp + 0x88], r13
mov byte [rsp + 0x90], r13b
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], r13
mov byte [rsp + 0xa8], r13b
lea rax, [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rdi, [rsi + 0x48]
mov bpl, 1
lea r12, [0x1400aa190]
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x1400a9d3a
mov edx, ebp
and dl, 1
mov rcx, rsi
call fcn.140096890
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a9d42
jmp 0x1400aa135
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.14010f3f0
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], r15
mov qword [rax + 0x28], rdi
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x38], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, r12
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
lea r13, [r13 + r13*2]
mov rcx, qword [rsp + r13*8 + 0x88]
test rcx, rcx
setne al
cmp rcx, r14
sete dl
and dl, al
cmp dl, 1
je 0x1400aa07b
test rcx, rcx
jne 0x1400aa0ce
lea rax, [rsp + r13*8]
add rax, 0x88
mov qword [rax], r14
test r14, r14
je 0x1400aa0e8
mov r13d, 1
test bpl, 1
mov ebp, 0
jne 0x1400a9d15
mov rcx, r15
call fcn.1400248b0
lea rbx, [rsi + 0x58]
xor r15d, r15d
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jmp 0x1400a9e78
mov rdx, qword [rsp + 0x38]
mov qword [rdx], rax
jmp 0x1400a9e2d
mov rax, qword [r8 + 0x10]
cmp qword [rax], r8
mov r8, rax
jne 0x1400a9e17
mov rdx, qword [rsp + 0x38]
cmp qword [rdx], r14
je 0x1400a9e0d
lea r13, [r14 + 0x20]
dec qword [rsi + 0x60]
mov rdx, r14
call fcn.1400d06e0
test r13, r13
je 0x1400aa06c
mov rcx, r14
call fcn.14010f42c
mov rcx, rbp
call fcn.1400aa2b0
mov rcx, rbp
call fcn.14010f42c
cmp byte [rsi + 0x68], 0
jne 0x1400a9e6f
cmp qword [rsi + 0x60], 0
je 0x1400a9f1b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x7c], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x7c]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x1400a9f24
mov rcx, rdi
call r12
test al, al
je 0x1400aa06e
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400a9e4e
mov rax, rcx
mov r14, rbx
xor edx, edx
cmp qword [rax + 0x20], rbp
setb dl
cmovae r14, rax
mov rax, qword [rax + rdx*8]
test rax, rax
jne 0x1400a9ed1
cmp r14, rbx
je 0x1400a9e4e
cmp qword [r14 + 0x20], rbp
ja 0x1400a9e4e
mov rdx, qword [r14 + 8]
mov r8, r14
test rdx, rdx
je 0x1400a9e17
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x1400a9e23
jmp 0x1400a9f0a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm6, xmm6
lea r14, [rsp + 0x58]
movups xmmword [r14 + 0xc], xmm6
xor eax, eax
mov qword [r14 + 0x1c], rax
mov eax, 1
mov dword [r14], eax
mov rbp, qword [rsp + 0x40]
mov qword [r14 + 4], rbp
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x48]
mov qword [r15], r13
mov r12d, 0xaaaaaaaa
mov dword [r15 + 8], r12d
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140096580
xor eax, eax
mov qword [r14 + 0x1c], rax
movups xmmword [r14 + 0xc], xmm6
mov eax, 1
mov dword [r14], eax
mov qword [r14 + 4], rbp
mov qword [r15], r13
mov dword [r15 + 8], r12d
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140096580
mov r14, qword [rsp + 0x88]
mov r12, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r14
mov edx, 0xffffffff
call r12
mov r15, qword [rsp + 0xa0]
mov rcx, r15
mov edx, 0xffffffff
call r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400aa0db
mov rcx, qword [rsp + 0x38]
mov r13, qword [rcx]
cmp r13, rbx
jne 0x1400aa080
mov rdx, qword [rsi + 0x58]
call fcn.140085640
mov qword [rsi + 0x50], rbx
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rsp + 0xa8], 0
jne 0x1400aa0d8
test r15, r15
je 0x1400aa025
mov rcx, r15
call fcn.140096a30
cmp byte [rsp + 0x90], 0
jne 0x1400aa0d8
test r14, r14
je 0x1400aa040
mov rcx, r14
call fcn.140096a30
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140110970
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400a9ec3
call fcn.1401287f0
mov r12, qword [r13 + 0x20]
test r12, r12
je 0x1400aa099
mov rcx, r12
call fcn.1400aa2b0
mov rcx, r12
call fcn.14010f42c
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x1400aa0c0
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400aa0a2
mov r13, rax
cmp rax, rbx
mov rcx, qword [rsp + 0x38]
je 0x1400a9fed
jmp 0x1400aa080
mov rax, qword [r13 + 0x10]
cmp qword [rax], r13
mov r13, rax
jne 0x1400aa0c0
jmp 0x1400aa0ad
call fcn.140096a30
jmp 0x1400a9dca
int3
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400a9fdc
lea rdx, [0x1402e8897]
lea r8, [0x1402fddf8]
lea r13, [rsp + 0x58]
mov rcx, r13
mov r9d, 0x14c
call fcn.1400e1900
lea r14, [rsp + 0x48]
mov rcx, r14
mov rdx, r13
call fcn.1401932f0
lea rdx, [0x1402eddfa]
mov rcx, r14
call fcn.14018d460
mov rcx, r14
call fcn.1401933a0
jmp 0x1400a9de0
lea rdx, [0x1402e8897]
lea r8, [0x1402fddf8]
lea rcx, [rsp + 0x58]
mov r9d, 0x13d
call fcn.1400e1900
lea r14, [rsp + 0x48]
mov rcx, r14
lea rdx, [rsp + 0x58]
call fcn.1401932f0
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.14018d460
mov rcx, r14
call fcn.1401933a0
mov r14, 0xffffffffffffffff
jmp 0x1400a9d42