Function at 0x140180c00
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 [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.1401119b0
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x140470090]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
lea rbp, [0x140474e18]
mov qword [rsp + 0x80], rbp
xor ebx, ebx
mov qword [rsp + 0x88], rbx
mov byte [rsp + 0x90], bl
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa0], rbx
mov byte [rsp + 0xa8], bl
lea rax, [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rdi, [rsi + 0x48]
mov r13b, 1
lea r12, [0x140181110]
mov r14, qword [rsi + 0x38]
cmp r14, 0xffffffffffffffff
jne 0x140180cc8
mov edx, r13d
and dl, 1
mov rcx, rsi
call fcn.140165470
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140180cd0
jmp 0x1401810bd
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.1402965cc
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 rcx, qword [rsp + 0x38]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x38], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, r12
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
lea rbx, [rbx + rbx*2]
mov rcx, qword [rsp + rbx*8 + 0x88]
test rcx, rcx
setne al
cmp rcx, r14
sete dl
and dl, al
cmp dl, 1
je 0x140181003
test rcx, rcx
jne 0x140181056
lea rax, [rsp + rbx*8]
add rax, 0x88
mov qword [rax], r14
test r14, r14
je 0x140181070
mov ebx, 1
test r13b, 1
mov r13d, 0
jne 0x140180ca2
mov rcx, r15
call fcn.1400c1cb0
lea r12, [rsi + 0x58]
xor r15d, r15d
lea r13, [rsp + 0x58]
mov rbx, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jmp 0x140180dfc
mov rdx, qword [rsp + 0x38]
mov qword [rdx], rax
jmp 0x140180dbe
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x140180da9
mov rdx, qword [rsp + 0x38]
cmp qword [rdx], r14
je 0x140180d9f
dec qword [rsi + 0x60]
mov rdx, r14
call fcn.1401e8680
mov rcx, r14
call fcn.140296608
mov rcx, rbp
call fcn.140181240
mov rcx, rbp
call fcn.140296608
cmp byte [rsi + 0x68], 0
jne 0x140180df3
cmp qword [rsi + 0x60], 0
je 0x140180e9e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x7c], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x7c]
lea r8, [rsp + 0x48]
mov r9, r13
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x140180ea7
mov rcx, rdi
call rbx
test al, al
je 0x140180ff6
mov rcx, qword [r12]
test rcx, rcx
je 0x140180dd2
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 0x140180e53
cmp r14, r12
je 0x140180dd2
cmp qword [r14 + 0x20], rbp
ja 0x140180dd2
mov rdx, qword [r14 + 8]
mov r8, r14
test rdx, rdx
jne 0x140180da9
mov rax, qword [r8 + 0x10]
cmp r8, qword [rax]
mov r8, rax
je 0x140180db4
jmp 0x140180e8c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lea r14, [rsp + 0x58]
mov qword [r14 + 0x1c], rax
xorps xmm6, xmm6
movups xmmword [r14 + 0xc], xmm6
mov eax, 1
mov dword [r14], eax
mov rbp, qword [rsp + 0x40]
mov qword [r14 + 4], rbp
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x48]
mov qword [r15], r13
mov ebx, 0xaaaaaaaa
mov dword [r15 + 8], ebx
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140165150
xor eax, eax
mov qword [r14 + 0x1c], rax
movups xmmword [r14 + 0xc], xmm6
mov eax, 1
mov dword [r14], eax
mov qword [r14 + 4], rbp
mov qword [r15], r13
mov dword [r15 + 8], ebx
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.140165150
mov r14, qword [rsp + 0x88]
mov rbx, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r14
mov edx, 0xffffffff
call rbx
mov r15, qword [rsp + 0xa0]
mov rcx, r15
mov edx, 0xffffffff
call rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140181063
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rcx]
cmp rbx, r12
jne 0x140181008
mov rdx, qword [rsi + 0x58]
call fcn.1400e0e30
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 + 0xa8], 0
jne 0x140181060
test r15, r15
je 0x140180fa5
mov rcx, r15
call fcn.140165a90
cmp byte [rsp + 0x90], 0
jne 0x140181060
test r14, r14
je 0x140180fc0
mov rcx, r14
call fcn.140165a90
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140180fda
call fcn.140297b50
int3
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 rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140180e44
call fcn.1402adcd0
mov r13, qword [rbx + 0x20]
test r13, r13
je 0x140181021
mov rcx, r13
call fcn.140181240
mov rcx, r13
call fcn.140296608
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140181048
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14018102a
mov rbx, rax
cmp rax, r12
mov rcx, qword [rsp + 0x38]
je 0x140180f6d
jmp 0x140181008
mov rax, qword [rbx + 0x10]
cmp rbx, qword [rax]
mov rbx, rax
jne 0x140181048
jmp 0x140181035
call fcn.140165a90
jmp 0x140180d57
int3
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140180f5c
lea rdx, [0x14048c557]
lea r8, [0x1404d54c8]
lea rbx, [rsp + 0x58]
mov rcx, rbx
mov r9d, 0x14c
call fcn.14020f920
lea r14, [rsp + 0x48]
mov rcx, r14
mov rdx, rbx
call fcn.140310db0
lea rdx, [0x140494bca]
mov rcx, r14
call fcn.140307000
mov rcx, r14
call fcn.140310e60
jmp 0x140180d6d
lea rdx, [0x14048c557]
lea r8, [0x1404d54c8]
lea rcx, [rsp + 0x58]
mov r9d, 0x13d
call fcn.14020f920
lea r14, [rsp + 0x48]
mov rcx, r14
lea rdx, [rsp + 0x58]
call fcn.140310db0
lea rdx, str.CreateNamedPipe
mov rcx, r14
call fcn.140307000
mov rcx, r14
call fcn.140310e60
mov r14, 0xffffffffffffffff
jmp 0x140180cd0