Function at 0x14013bf0c
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 [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.1400a43b0
mov r14, rax
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov eax, 0x10
lea rbp, [0x1401e8dc0]
mov qword [rsp + rax + 0x70], rbp
mov qword [rsp + rax + 0x78], 0
mov byte [rsp + rax + 0x80], 0
add rax, 0x18
cmp rax, 0x40
jne 0x14013bf72
lea rax, [rsi + 0x50]
mov qword [rsp + 0x30], rax
lea rdi, [rsi + 0x48]
mov r13b, 1
xor ebx, ebx
mov r12, qword [rsi + 0x38]
cmp r12, 0xffffffffffffffff
je 0x14013bfb8
mov qword [rsi + 0x38], 0xffffffffffffffff
jmp 0x14013bfd3
mov edx, r13d
and dl, 1
mov rcx, rsi
call fcn.14011942b
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14013c0b7
mov ecx, 0x40
call fcn.14019d310
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], rbp
mov qword [rax + 0x10], r12
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r15
mov qword [rax + 0x28], rdi
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], r14
lea rcx, [rbx + rbx*2]
lea r12, [rsp + rcx*8]
add r12, 0x80
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
lea r8, [0x14013c310]
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
mov rcx, r12
lea rdx, [rsp + 0x48]
call fcn.1400d90d0
cmp qword [r12 + 8], 0
je 0x14013c06d
mov ebx, 1
test r13b, 1
mov r13d, 0
jne 0x14013bfa4
jmp 0x14013c10a
lea rbx, [rsp + 0x48]
mov rcx, rbx
lea rdx, [0x1401f8f67]
lea r8, [0x140208748]
mov r9d, 0x14a
call fcn.1400afa40
lea r12, [rsp + 0x38]
mov rcx, r12
mov rdx, rbx
call fcn.1400b8260
mov rcx, r12
lea rdx, [0x1401fc1f1]
call fcn.1400da8b6
mov rcx, r12
call fcn.1400b8300
jmp 0x14013c053
lea rcx, [rsp + 0x48]
lea rdx, [0x1401f8f67]
lea r8, [0x140208748]
mov r9d, 0x13b
call fcn.1400afa40
lea r12, [rsp + 0x38]
mov rcx, r12
lea rdx, [rsp + 0x48]
call fcn.1400b8260
mov rcx, r12
lea rdx, str.CreateNamedPipe
call fcn.1400da8b6
mov rcx, r12
call fcn.1400b8300
mov r12, 0xffffffffffffffff
jmp 0x14013bfd3
mov rcx, r15
call fcn.140024db0
xor ebx, ebx
lea r13, [rsp + 0x48]
mov r12, qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
lea rbp, [rsp + 0x70]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x7c], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x7c]
lea r8, [rsp + 0x38]
mov r9, r13
call r12
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14013c1c2
mov qword [rsp + 0x70], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14013c177
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call fcn.14013cec0
mov r15, qword [rsp + 0x70]
test r15, r15
je 0x14013c19e
mov rcx, r15
call fcn.14013c416
mov rcx, r15
call fcn.14019d34c
cmp byte [rsi + 0x68], 0
jne 0x14013c1ab
cmp qword [rsi + 0x60], 0
je 0x14013c1b9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14013c125
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov bpl, 1
lea rbx, [rsp + 0x54]
xorps xmm6, xmm6
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x48]
lea r12, [rsp + 0x38]
movups xmmword [rbx], xmm6
mov qword [rbx + 0x10], 0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x4c], r14
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], 0xaaaaaaaa
mov rcx, rsi
mov rdx, r15
mov r8, r12
call fcn.140119110
test bpl, 1
mov ebp, 0
jne 0x14013c1e1
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 0x14013c22b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14013c25a
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x48], rax
lea rbx, [rsi + 0x58]
cmp rax, rbx
je 0x14013c29c
lea r14, [rsp + 0x48]
mov r15, qword [rax + 0x20]
test r15, r15
je 0x14013c28a
mov rcx, r15
call fcn.14013c416
mov rcx, r15
call fcn.14019d34c
mov rcx, r14
call fcn.14004b388
mov rax, qword [rsp + 0x48]
cmp rax, rbx
jne 0x14013c271
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.1400e6860
mov qword [rsi + 0x50], rbx
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x18
lea rcx, [rsp + rsi]
add rcx, 0x80
call fcn.1400d8bd6
add rsi, 0xffffffffffffffe8
cmp rsi, 0xffffffffffffffe8
jne 0x14013c2c3
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14019eb90
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