Function at 0x140004a40
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov r12, rdx
mov r14, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
call fcn.1400a8ee0
mov r15, rax
movaps xmm0, xmmword [0x140257270]
lea rax, [rsp + 0x90]
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
lea rcx, [rsp + 0xc0]
lea rsi, [0x1402536c8]
mov qword [rax], rsi
mov qword [rax + 8], 0
mov byte [rax + 0x10], 0
add rax, 0x18
cmp rax, rcx
jne 0x140004aa4
lea rax, [r14 + 0x50]
mov qword [rsp + 0x40], rax
lea rbx, [r14 + 0x48]
mov bpl, 1
xor r13d, r13d
mov rdi, qword [r14 + 0x38]
cmp rdi, 0xffffffffffffffff
jne 0x140004b3c
mov edx, ebp
and dl, 1
mov rcx, r14
call fcn.1401420f3
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004b44
lea rdi, [rsp + 0x58]
mov rcx, rdi
lea rdx, [0x14026cf50]
mov r8d, 0x139
lea r9, [0x140257ad2]
call fcn.140197b50
mov rcx, qword [rsp + 0x58]
add rcx, 0x10
mov r8d, 0xf
lea rdx, str.CreateNamedPipe
call fcn.1400a7acb
mov rcx, rdi
call fcn.1401892b0
mov rdi, 0xffffffffffffffff
jmp 0x140004b44
mov qword [r14 + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.1400c9cbc
mov rcx, qword [r14 + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r12
mov qword [rax + 0x28], rbx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], r15
lea rcx, [r13 + r13*2]
lea rdi, [rsp + rcx*8]
add rdi, 0x90
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
lea r8, [0x14005d160]
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x58], rax
mov rcx, rdi
lea rdx, [rsp + 0x58]
call fcn.1401097e6
cmp qword [rdi + 8], 0
je 0x140004bdb
mov r13d, 1
test bpl, 1
mov ebp, 0
jne 0x140004acf
jmp 0x140004c21
lea rdi, [rsp + 0x58]
mov rcx, rdi
lea rdx, [0x14026cf50]
mov r8d, 0x148
lea r9, [0x140257ad2]
call fcn.140197b50
mov rcx, qword [rsp + 0x58]
add rcx, 0x10
mov r8d, 0xc
lea rdx, [0x14026cfd8]
call fcn.1400a7acb
mov rcx, rdi
call fcn.1401892b0
jmp 0x140004bc4
mov qword [rsp + 0x38], rbx
xor r12d, r12d
lea rdi, [rsp + 0x48]
lea rbp, [rsp + 0x58]
mov rsi, qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x8c], 0
mov rcx, qword [r14 + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x8c]
mov r8, rdi
mov r9, rbp
call rsi
mov r13, qword [rsp + 0x48]
mov ebx, 5
test r13, r13
jne 0x140004c80
test ebx, ebx
je 0x140004c3a
jmp 0x140004ce9
mov qword [rsp + 0x80], r13
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140004cdd
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x80]
call fcn.1401b6c28
mov rcx, r13
call fcn.14005d27a
mov rcx, r13
call fcn.1400c9cac
cmp byte [r14 + 0x68], 0
jne 0x140004cc7
cmp qword [r14 + 0x60], 0
je 0x140004cd6
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140004c7a
mov ebx, 5
jmp 0x140004cc9
mov rcx, qword [rsp + 0x38]
call fcn.1400711f0
jmp 0x140004c97
mov sil, 1
lea rbx, [rsp + 0x64]
xorps xmm6, xmm6
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x58]
lea rbp, [rsp + 0x48]
movups xmmword [rbx], xmm6
mov qword [rbx + 0x10], 0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x5c], r15
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], 0xaaaaaaaa
mov rcx, r14
mov rdx, rdi
mov r8, rbp
call fcn.14006105c
test sil, 1
mov esi, 0
jne 0x140004d08
mov esi, 8
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + rsi + 0x90]
mov edx, 0xffffffff
call rdi
add rsi, 0x18
cmp rsi, 0x38
jne 0x140004d52
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
lea r15, [0x1402536c8]
je 0x140004e6c
mov rbp, qword [r14 + 0x50]
lea rbx, [r14 + 0x58]
cmp rbp, rbx
je 0x140004dea
mov rdi, qword [rbp + 0x20]
test rdi, rdi
je 0x140004dae
mov rcx, rdi
call fcn.14005d27a
mov rcx, rdi
call fcn.1400c9cac
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140004dc4
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140004db7
jmp 0x140004de2
mov rax, qword [rbp + 0x10]
cmp qword [rax], rbp
je 0x140004de2
add rbp, 0x10
mov rcx, qword [rbp]
lea rbp, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rax], rcx
jne 0x140004dd1
mov rbp, rax
cmp rax, rbx
jne 0x140004d95
mov rcx, qword [r14 + 0x58]
call fcn.14010c560
mov qword [r14 + 0x50], rbx
xorps xmm0, xmm0
movups xmmword [r14 + 0x58], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x30
mov qword [rsp + rsi + 0x78], r15
cmp byte [rsp + rsi + 0x88], 0
jne 0x140004e79
mov rcx, qword [rsp + rsi + 0x80]
test rcx, rcx
je 0x140004e3a
call fcn.140189202
mov qword [rsp + rsi + 0x80], 0
add rsi, 0xffffffffffffffe8
jne 0x140004e0d
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400ccfe0
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call fcn.1400711f0
jmp 0x140004d88
int3