Function at 0x14005af22
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 r14, rdx
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x80]
mov qword [rdi], rax
mov edx, 8
mov rcx, rdi
call fcn.1400662c0
mov rbp, qword [rdi]
movaps xmm0, xmmword [0x1402e6d80]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov eax, 0x10
lea rbx, [0x1402e2a20]
mov qword [rsp + rax + 0x70], rbx
mov qword [rsp + rax + 0x78], 0
mov byte [rsp + rax + 0x80], 0
add rax, 0x18
cmp rax, 0x40
jne 0x14005af98
lea rax, [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rdi, [rsi + 0x48]
mov r15b, 1
xor r12d, r12d
mov r13, qword [rsi + 0x38]
cmp r13, 0xffffffffffffffff
jne 0x14005aff1
mov edx, r15d
and dl, 1
mov rcx, rsi
call fcn.14005b663
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14005aff9
jmp 0x14005b35d
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.14013a6b4
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r13
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], rdi
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rbp
lea rcx, [r12 + r12*2]
lea r13, [rsp + rcx*8]
add r13, 0x80
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
lea r8, [0x140071770]
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x58], rax
mov rcx, r13
lea rdx, [rsp + 0x58]
call fcn.14005b61e
cmp qword [r13 + 8], 0
je 0x14005b309
mov r12d, 1
test r15b, 1
mov r15d, 0
jne 0x14005afcb
mov qword [rsp + 0x40], rbp
xor eax, eax
lea r9, [rsp + 0x58]
mov qword [r9], rax
lea r14, [rsp + 0x48]
mov qword [r14], rax
lea rdx, [rsp + 0x7c]
mov dword [rdx], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
mov r8, r14
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov r13, qword [r14]
test r13, r13
je 0x14005b170
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
xor ebx, ebx
lea r15, [rsp + 0x48]
lea r12, [rsp + 0x58]
mov r14, qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rcx, rdi
call rbp
test al, al
je 0x14005b2e7
mov rcx, qword [rsp + 0x38]
mov rdx, r13
call fcn.14005b3b8
mov rcx, r13
call fcn.14005b498
mov rcx, r13
call fcn.14013a6ac
cmp byte [rsi + 0x68], 0
jne 0x14005b126
cmp qword [rsi + 0x60], 0
je 0x14005b167
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x7c], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x7c]
mov r8, r15
mov r9, r12
call r14
mov r13, qword [rsp + 0x48]
test r13, r13
jne 0x14005b0ef
jmp 0x14005b170
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov bpl, 1
lea r15, [rsp + 0x64]
xorps xmm6, xmm6
lea rbx, [rsp + 0x58]
lea r14, [rsp + 0x48]
movabs r12, 0xaaaaaaaaaaaaaaaa
mov r13, qword [rsp + 0x40]
movups xmmword [r15], xmm6
mov qword [r15 + 0x10], 0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x5c], r13
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], 0xaaaaaaaa
mov rcx, rsi
mov rdx, rbx
mov r8, r14
call fcn.14005b740
test bpl, 1
mov ebp, 0
jne 0x14005b194
mov ebx, 8
mov r14, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + rbx + 0x80]
mov edx, 0xffffffff
call r14
add rbx, 0x18
cmp rbx, 0x38
jne 0x14005b1df
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005b2f5
mov r15, qword [rsi + 0x50]
lea r14, [rsi + 0x58]
cmp r15, r14
lea rbx, [0x1402e2a20]
jne 0x14005b29a
mov rcx, qword [rsi + 0x58]
call fcn.140057ec8
mov qword [rsi + 0x50], r14
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x30
mov qword [rsp + rsi + 0x68], rbx
cmp byte [rsp + rsi + 0x78], 0
jne 0x14005b303
mov rcx, qword [rsp + rsi + 0x70]
test rcx, rcx
je 0x14005b268
call fcn.14005b54e
mov qword [rsp + rsi + 0x70], 0
add rsi, 0xffffffffffffffe8
jne 0x14005b240
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14013d520
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
mov rbx, qword [r15 + 0x20]
test rbx, rbx
jne 0x14005b2d5
test r15, r15
je 0x14005b306
mov rcx, qword [r15 + 8]
test rcx, rcx
jne 0x14005b2c8
mov rax, qword [r15 + 0x10]
cmp qword [rax], r15
mov r15, rax
jne 0x14005b2b1
mov r15, rax
cmp rax, r14
jmp 0x14005b215
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14005b2bd
jmp 0x14005b2c8
mov rcx, rbx
call fcn.14005b498
mov rcx, rbx
call fcn.14013a6ac
jmp 0x14005b2a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14005b0fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14005b20a
int3
int3
lea rdx, [0x1402f1801]
lea r8, [0x140300f90]
lea r12, [rsp + 0x58]
mov rcx, r12
mov r9d, 0x14a
call fcn.1400b5b90
lea rdx, [0x1402e7b24]
lea r13, [rsp + 0x48]
mov rcx, r13
mov r8, r12
call fcn.1401ffd60
lea rdx, [0x140301018]
mov rcx, r13
call fcn.1402028ba
mov rcx, r13
call fcn.1401ffe30
jmp 0x14005b07c
lea rdx, [0x1402f1801]
lea r8, [0x140300f90]
lea rcx, [rsp + 0x58]
mov r9d, 0x13b
call fcn.1400b5b90
lea rdx, [0x1402e7b24]
lea r13, [rsp + 0x48]
mov rcx, r13
lea r8, [rsp + 0x58]
call fcn.1401ffd60
lea rdx, str.CreateNamedPipe
mov rcx, r13
call fcn.1402028ba
mov rcx, r13
call fcn.1401ffe30
mov r13, 0xffffffffffffffff
jmp 0x14005aff9