Function at 0x14016cab0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
call fcn.14010be00
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1403d4b30]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm0
lea rbp, str._11_
mov qword [rsp + 0x70], rbp
xor r12d, r12d
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x80], r12b
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], r12
mov byte [rsp + 0x98], r12b
lea rbx, [rsi + 0x50]
lea rdi, [rsi + 0x48]
mov r13b, 1
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x14016cb69
mov edx, r13d
and dl, 1
mov rcx, rsi
call fcn.140149da0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14016cb71
jmp 0x14016cf4f
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.14027768c
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], rbp
mov qword [rax + 0x10], r14
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r15
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rbx
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x38], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
lea r8, [0x14016cfb0]
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
lea r12, [r12 + r12*2]
mov rcx, qword [rsp + r12*8 + 0x78]
test rcx, rcx
setne al
cmp rcx, r14
sete dl
and dl, al
cmp dl, 1
je 0x14016ce9a
test rcx, rcx
jne 0x14016cee8
lea rax, [rsp + r12*8]
add rax, 0x78
mov qword [rax], r14
test r14, r14
je 0x14016cf02
mov r12d, 1
test r13b, 1
mov r13d, 0
jne 0x14016cb43
mov rcx, r15
call fcn.1400c2530
lea r12, [rsi + 0x58]
xor r15d, r15d
mov r13, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jmp 0x14016cc89
mov qword [rbx], rax
jmp 0x14016cc4b
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14016cc3b
cmp qword [rbx], r14
je 0x14016cc36
dec qword [rsi + 0x60]
mov rdx, r14
call fcn.1401fc090
mov rcx, r14
call fcn.1402776c8
mov rcx, rbp
call fcn.14016d0e0
mov rcx, rbp
call fcn.1402776c8
cmp byte [rsi + 0x68], 0
jne 0x14016cc80
cmp qword [rsi + 0x60], 0
je 0x14016cd2e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x6c], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x6c]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rbp, qword [rsp + 0x38]
test rbp, rbp
je 0x14016cd37
mov rcx, rdi
call r13
test al, al
je 0x14016ce8d
mov rcx, qword [r12]
test rcx, rcx
je 0x14016cc5f
mov rax, rcx
mov r14, r12
xor edx, edx
cmp qword [rax + 0x20], rbp
setb dl
cmovae r14, rax
mov rax, qword [rax + rdx*8]
test rax, rax
jne 0x14016cce3
cmp r14, r12
je 0x14016cc5f
cmp qword [r14 + 0x20], rbp
ja 0x14016cc5f
mov rdx, qword [r14 + 8]
mov r8, r14
test rdx, rdx
jne 0x14016cc3b
mov rax, qword [r8 + 0x10]
cmp r8, qword [rax]
mov r8, rax
je 0x14016cc46
jmp 0x14016cd1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lea r14, [rsp + 0x48]
mov qword [r14 + 0x1c], rax
xorps xmm6, xmm6
movups xmmword [r14 + 0xc], xmm6
mov eax, 1
mov dword [r14], eax
mov r13, qword [rsp + 0x30]
mov qword [r14 + 4], r13
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x38]
mov qword [r15], rax
mov ebp, 0xaaaaaaaa
mov dword [r15 + 8], ebp
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140149a80
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], ebp
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140149a80
mov r14, qword [rsp + 0x78]
mov r13, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r14
mov edx, 0xffffffff
call r13
mov r15, qword [rsp + 0x90]
mov rcx, r15
mov edx, 0xffffffff
call r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14016cef5
mov rbp, qword [rbx]
cmp rbp, r12
jne 0x14016ce9f
mov rdx, qword [rsi + 0x58]
mov rcx, rbx
call fcn.140128ef0
mov qword [rsi + 0x50], r12
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rsp + 0x98], 0
jne 0x14016cef2
test r15, r15
je 0x14016ce3c
mov rcx, r15
call fcn.14014a3a0
cmp byte [rsp + 0x80], 0
jne 0x14016cef2
test r14, r14
je 0x14016ce57
mov rcx, r14
call fcn.14014a3a0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14016ce71
call fcn.140278ca0
int3
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14016ccd4
call fcn.140292318
mov r13, qword [rbp + 0x20]
test r13, r13
je 0x14016ceb8
mov rcx, r13
call fcn.14016d0e0
mov rcx, r13
call fcn.1402776c8
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14016ceda
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14016cec1
mov rbp, rax
cmp rax, r12
je 0x14016ce01
jmp 0x14016ce9f
mov rax, qword [rbp + 0x10]
cmp rbp, qword [rax]
mov rbp, rax
jne 0x14016ceda
jmp 0x14016cecc
call fcn.14014a3a0
jmp 0x14016cbf4
int3
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14016cdf5
lea rdx, [0x1403ed277]
lea r8, [0x1403fdb20]
lea r12, [rsp + 0x48]
mov rcx, r12
mov r9d, 0x14c
call fcn.14021c360
lea r14, [rsp + 0x38]
mov rcx, r14
mov rdx, r12
call fcn.1402f8c50
lea rdx, [0x1403f281d]
mov rcx, r14
call fcn.1402f5aa0
mov rcx, r14
call fcn.1402f8d00
jmp 0x14016cc08
lea rdx, [0x1403ed277]
lea r8, [0x1403fdb20]
lea rcx, [rsp + 0x48]
mov r9d, 0x13d
call fcn.14021c360
lea r14, [rsp + 0x38]
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1402f8c50
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.1402f5aa0
mov rcx, r14
call fcn.1402f8d00
mov r14, 0xffffffffffffffff
jmp 0x14016cb71