Function at 0x14005b290
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov r12, rdx
mov rsi, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi], rax
lea rcx, [rsp + 0x60]
mov qword [rcx], rdi
mov qword [rcx + 8], 8
call fcn.1400b7080
mov rbp, qword [rdi]
lea rax, [rsi + 0x50]
mov qword [rsp + 0x30], rax
lea rdi, [rsi + 0x48]
mov rbx, qword [rsi + 0x38]
cmp rbx, 0xffffffffffffffff
jne 0x14005b31c
mov rcx, rsi
mov dl, 1
call fcn.14005bea0
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b324
jmp 0x14005b883
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.1401298a8
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
lea r14, [0x1401fe678]
mov qword [rax + 8], r14
mov qword [rax + 0x10], rbx
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r12
mov qword [rax + 0x28], rdi
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rbp
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140055b80]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
je 0x14005b74f
mov rbx, qword [rsi + 0x38]
cmp rbx, 0xffffffffffffffff
jne 0x14005b3b0
mov rcx, rsi
xor edx, edx
call fcn.14005bea0
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b3b8
jmp 0x14005b8d7
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x40], r13
mov ecx, 0x40
call fcn.1401298a8
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], r14
mov qword [rax + 0x10], rbx
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r12
mov qword [rax + 0x28], rdi
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x30], rcx
mov qword [rsp + 0x48], rbp
mov qword [rax + 0x38], rbp
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140055b80]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14005b79c
lea r12, [rsi + 0x58]
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [r9], rax
lea rbx, [rsp + 0x50]
mov qword [rbx], rax
lea rdx, [rsp + 0x84]
mov dword [rdx], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rbp, qword [rbx]
test rbp, rbp
je 0x14005b59d
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
xor r14d, r14d
jmp 0x14005b529
mov rdx, qword [rsp + 0x30]
mov qword [rdx], rax
jmp 0x14005b49b
mov rax, qword [r8 + 0x10]
cmp qword [rax], r8
mov r8, rax
jne 0x14005b485
mov rdx, qword [rsp + 0x30]
cmp qword [rdx], rbx
je 0x14005b47b
lea r13, [rbx + 0x20]
dec qword [rsi + 0x60]
mov rdx, rbx
call fcn.1400db650
test r13, r13
je 0x14005b6dc
mov rcx, rbx
call fcn.1401298a0
mov rcx, rbp
call fcn.14005b930
mov rcx, rbp
call fcn.1401298a0
cmp byte [rsi + 0x68], 0
jne 0x14005b4dd
cmp qword [rsi + 0x60], 0
je 0x14005b594
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x84], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x84]
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rbp, qword [rsp + 0x50]
test rbp, rbp
je 0x14005b59d
mov rcx, rdi
call r15
test al, al
je 0x14005b6cf
mov rcx, qword [r12]
test rcx, rcx
je 0x14005b4bc
mov rax, rcx
mov rbx, r12
xor edx, edx
cmp qword [rax + 0x20], rbp
setb dl
cmovae rbx, rax
mov rax, qword [rax + rdx*8]
test rax, rax
jne 0x14005b54a
cmp rbx, r12
je 0x14005b4bc
cmp qword [rbx + 0x20], rbp
ja 0x14005b4bc
mov rdx, qword [rbx + 8]
mov r8, rbx
test rdx, rdx
je 0x14005b485
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x14005b491
jmp 0x14005b583
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm6, xmm6
lea rbx, [rsp + 0x60]
movups xmmword [rbx + 0xc], xmm6
xor eax, eax
mov qword [rbx + 0x1c], rax
mov eax, 1
mov dword [rbx], eax
mov rbp, qword [rsp + 0x48]
mov qword [rbx + 4], rbp
lea r15, [rsp + 0x50]
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [r15], r14
mov r13d, 0xaaaaaaaa
mov dword [r15 + 8], r13d
mov rcx, rsi
mov rdx, rbx
mov r8, r15
call fcn.14005bba0
xor eax, eax
mov qword [rbx + 0x1c], rax
movups xmmword [rbx + 0xc], xmm6
mov eax, 1
mov dword [rbx], eax
mov qword [rbx + 4], rbp
mov qword [r15], r14
mov dword [r15 + 8], r13d
mov rcx, rsi
mov rdx, rbx
mov r8, r15
call fcn.14005bba0
mov rbx, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r15, qword [rsp + 0x40]
mov rcx, r15
mov edx, 0xffffffff
call rbx
mov r13, qword [rsp + 0x38]
mov rcx, r13
mov edx, 0xffffffff
call rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005b742
mov rax, qword [rsp + 0x30]
mov r14, qword [rax]
cmp r14, r12
jne 0x14005b6ef
mov rcx, qword [rsi + 0x58]
call fcn.140024f10
mov qword [rsi + 0x50], r12
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r13, r13
je 0x14005b68d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14005b7e9
test r15, r15
je 0x14005b6a3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14005b836
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14012c2d0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
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 0x14005b537
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140163630
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
mov rbx, qword [r14 + 0x20]
test rbx, rbx
je 0x14005b712
mov rcx, rbx
call fcn.14005b930
mov rcx, rbx
call fcn.1401298a0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14005b734
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14005b71b
mov r14, rax
cmp rax, r12
je 0x14005b65a
jmp 0x14005b6f9
mov rax, qword [r14 + 0x10]
cmp qword [rax], r14
mov r14, rax
jne 0x14005b734
jmp 0x14005b726
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14005b649
lea rdx, [0x14020f12d]
lea r8, [0x14021abe0]
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x14c
call fcn.1400c8fe0
lea r15, [rsp + 0x50]
mov rcx, r15
mov rdx, rbx
call fcn.140188580
lea rdx, [0x14021ac68]
mov rcx, r15
call fcn.1401a30a0
mov rcx, r15
call fcn.140163640
jmp 0x14005b38e
lea rdx, [0x14020f12d]
lea r8, [0x14021abe0]
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x14c
call fcn.1400c8fe0
lea r15, [rsp + 0x50]
mov rcx, r15
mov rdx, rbx
call fcn.140188580
lea rdx, [0x14021ac68]
mov rcx, r15
call fcn.1401a30a0
mov rcx, r15
call fcn.140163640
jmp 0x14005b427
lea rdx, str.Free
lea r8, str....._third_partycrashpadcrashpadutilwin_scoped_handle.cc
lea rsi, [rsp + 0x60]
mov rcx, rsi
mov r9d, 0x1e
call fcn.1400c8fe0
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.140188580
lea rdx, [0x140205546]
mov rcx, rdi
call fcn.1401a30a0
mov rcx, rdi
call fcn.140163640
jmp 0x14005b68d
lea rdx, str.Free
lea r8, str....._third_partycrashpadcrashpadutilwin_scoped_handle.cc
lea rsi, [rsp + 0x60]
mov rcx, rsi
mov r9d, 0x1e
call fcn.1400c8fe0
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.140188580
lea rdx, [0x140205546]
mov rcx, rdi
call fcn.1401a30a0
mov rcx, rdi
call fcn.140163640
jmp 0x14005b6a3
lea rdx, [0x14020f12d]
lea r8, [0x14021abe0]
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x13d
call fcn.1400c8fe0
lea r15, [rsp + 0x50]
mov rcx, r15
mov rdx, rbx
call fcn.140188580
lea rdx, str.CreateNamedPipe
mov rcx, r15
call fcn.1401a30a0
mov rcx, r15
call fcn.140163640
mov rbx, 0xffffffffffffffff
jmp 0x14005b324
lea rdx, [0x14020f12d]
lea r8, [0x14021abe0]
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x13d
call fcn.1400c8fe0
lea r15, [rsp + 0x50]
mov rcx, r15
mov rdx, rbx
call fcn.140188580
lea rdx, str.CreateNamedPipe
mov rcx, r15
call fcn.1401a30a0
mov rcx, r15
call fcn.140163640
mov rbx, 0xffffffffffffffff
jmp 0x14005b3b8