Function at 0x14009c220
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x98], rax
call fcn.1400e44a0
mov rdi, rax
lea rbx, [rsi + 0x50]
lea r13, [rsi + 0x48]
mov rbp, qword [rsi + 0x38]
cmp rbp, 0xffffffffffffffff
jne 0x14009c2c8
mov rcx, rsi
mov dl, 1
call fcn.14008da90
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14009c2d0
lea rdx, [0x1401f8a40]
lea rbp, [rsp + 0x68]
mov rcx, rbp
mov r8d, 0x13a
call fcn.1401765c0
mov rcx, rbp
call fcn.1401764f0
lea rdx, str.CreateNamedPipe
mov r8d, 0xf
mov rcx, rax
call fcn.1400cf4f0
mov rcx, rbp
call fcn.140176500
mov rbp, 0xffffffffffffffff
jmp 0x14009c2d0
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140100528
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
lea r15, [0x1401db388]
mov qword [rax + 8], r15
mov qword [rax + 0x10], rbp
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], rbx
mov qword [rax + 0x38], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14009c7f0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14009c6ed
mov rbp, qword [rsi + 0x38]
cmp rbp, 0xffffffffffffffff
jne 0x14009c39c
mov rcx, rsi
xor edx, edx
call fcn.14008da90
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14009c3a4
lea rdx, [0x1401f8a40]
lea rbp, [rsp + 0x68]
mov rcx, rbp
mov r8d, 0x13a
call fcn.1401765c0
mov rcx, rbp
call fcn.1401764f0
lea rdx, str.CreateNamedPipe
mov r8d, 0xf
mov rcx, rax
call fcn.1400cf4f0
mov rcx, rbp
call fcn.140176500
mov rbp, 0xffffffffffffffff
jmp 0x14009c3a4
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.140100528
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], r15
mov qword [rax + 0x10], rbp
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], rbx
mov qword [rsp + 0x50], rdi
mov qword [rax + 0x38], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14009c7f0]
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 0x14009c731
mov rcx, r14
call fcn.140019a90
xor edi, edi
lea r12, [rbx + 8]
mov r14, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x8c], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x8c]
lea r8, [rsp + 0x90]
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x14009c6d6
mov qword [rsp + 0x38], rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009c6e0
mov r15, qword [rbx + 8]
test r15, r15
je 0x14009c51d
mov rax, qword [rsp + 0x38]
xor ecx, ecx
cmp qword [r15 + 0x20], rax
setb cl
mov rcx, qword [r15 + rcx*8]
cmovb r15, r12
test rcx, rcx
je 0x14009c4bf
xor edx, edx
cmp qword [rcx + 0x20], rax
setb dl
cmovae r15, rcx
mov rcx, qword [rcx + rdx*8]
jmp 0x14009c4a7
cmp r15, r12
je 0x14009c51d
mov rax, qword [rsp + 0x38]
cmp rax, qword [r15 + 0x20]
cmovb r15, r12
cmp r15, r12
je 0x14009c51d
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
test rax, rax
jne 0x14009c556
mov rax, qword [r15 + 0x10]
cmp qword [rax], r15
jne 0x14009c566
mov qword [rsp + 0x68], rax
cmp qword [rbx], r15
je 0x14009c58d
dec qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
mov rdx, r15
call fcn.1400d1230
mov rcx, r15
call fcn.140100564
mov rbp, qword [rsp + 0x38]
test rbp, rbp
je 0x14009c537
mov rcx, rbp
call fcn.14009d120
mov rcx, rbp
call fcn.140100564
cmp byte [rsi + 0x68], 0
jne 0x14009c544
cmp qword [rsi + 0x60], 0
je 0x14009c574
xor ebp, ebp
mov rcx, r13
call r14
test ebp, ebp
je 0x14009c41e
jmp 0x14009c595
mov rcx, qword [rax]
test rcx, rcx
je 0x14009c4f7
mov rax, rcx
mov rcx, qword [rcx]
jmp 0x14009c559
mov rcx, qword [rax + 0x10]
cmp qword [rcx], rax
jne 0x14009c57b
mov rax, rcx
jmp 0x14009c4f7
mov ebp, 5
jmp 0x14009c546
mov rax, qword [rcx + 0x10]
cmp qword [rax], rcx
je 0x14009c4f7
jmp 0x14009c6bc
mov qword [rbx], rax
jmp 0x14009c505
xorps xmm6, xmm6
lea rbp, [rsp + 0x68]
movups xmmword [rbp + 0xc], xmm6
xor eax, eax
mov qword [rbp + 0x1c], rax
mov eax, 1
mov dword [rbp], eax
mov r14, qword [rsp + 0x50]
mov qword [rbp + 4], r14
lea rdi, [rsp + 0x58]
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rdi], r15
mov r12d, 0xaaaaaaaa
mov dword [rdi + 8], r12d
mov rcx, rsi
mov rdx, rbp
mov r8, rdi
call fcn.14008d770
xor eax, eax
mov qword [rbp + 0x1c], rax
movups xmmword [rbp + 0xc], xmm6
mov eax, 1
mov dword [rbp], eax
mov qword [rbp + 4], r14
mov qword [rdi], r15
mov dword [rdi + 8], r12d
mov rcx, rsi
mov rdx, rbp
mov r8, rdi
call fcn.14008d770
mov r14, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbp, qword [rsp + 0x48]
mov rcx, rbp
mov edx, 0xffffffff
call r14
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov edx, 0xffffffff
call r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009c775
mov r15, qword [rsi + 0x50]
lea r12, [rsi + 0x58]
cmp r15, r12
jne 0x14009c782
mov rdx, qword [rsi + 0x58]
mov rcx, rbx
call fcn.140093fb0
mov qword [rsi + 0x50], r12
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rdi, rdi
je 0x14009c683
mov rcx, rdi
call fcn.14008e8b0
test rbp, rbp
je 0x14009c690
mov rcx, rbp
call fcn.14008e8b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401013e0
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rcx, 0x10
mov rdx, qword [rcx]
lea rcx, [rdx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
je 0x14009c4f7
jmp 0x14009c6c0
mov ebp, 5
jmp 0x14009c54c
mov rcx, r13
call fcn.1400e4500
jmp 0x14009c484
lea rdx, [0x1401f8a40]
lea rbp, [rsp + 0x68]
mov rcx, rbp
mov r8d, 0x149
call fcn.1401765c0
mov rcx, rbp
call fcn.1401764f0
lea rdx, [0x1401ecf86]
mov r8d, ntohl
mov rcx, rax
call fcn.1400cf4f0
mov rcx, rbp
call fcn.140176500
jmp 0x14009c337
lea rdx, [0x1401f8a40]
lea rdi, [rsp + 0x68]
mov rcx, rdi
mov r8d, 0x149
call fcn.1401765c0
mov rcx, rdi
call fcn.1401764f0
lea rdx, [0x1401ecf86]
mov r8d, ntohl
mov rcx, rax
call fcn.1400cf4f0
mov rcx, rdi
call fcn.140176500
jmp 0x14009c409
mov rcx, r13
call fcn.1400e4500
jmp 0x14009c645
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov r14, qword [r15 + 0x20]
test r14, r14
je 0x14009c7a5
mov rcx, r14
call fcn.14009d120
mov rcx, r14
call fcn.140100564
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x14009c7c7
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14009c7ae
mov r15, rax
cmp rax, r12
je 0x14009c656
jmp 0x14009c78c
mov rax, qword [r15 + 0x10]
cmp qword [rax], r15
je 0x14009c7b9
add r15, 0x10
mov rcx, qword [r15]
lea r15, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rax], rcx
jne 0x14009c7d4
jmp 0x14009c7b9