Function at 0x140038120
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea r14, [0x1400f0410]
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x18], sil
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x14003817f
imul rdx, rax, 0x64
jmp 0x14003819b
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
lea rdx, [rax + rcx]
mov rax, qword [0x1400e9258]
test rax, rax
jle 0x1400381cb
imul rcx, rax, 0xf4240
movabs r8, 0x7fffffffffffffff
mov rax, r8
sub rax, rcx
cmp rdx, rax
jge 0x1400381c8
add rdx, rcx
jmp 0x1400381cb
mov rdx, r8
mov rcx, r14
call fcn.1400399b0
movzx edi, al
mov byte [rbp - 0x18], al
test al, al
jne 0x140038297
mov r8d, 8
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [r8 + rdx]
cmp dword [0x1400f07d8], ecx
jle 0x140038247
lea rcx, [0x1400f07d8]
call fcn.1400a64e0
cmp dword [0x1400f07d8], 0xffffffff
jne 0x140038247
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400f07c0], xmm0
mov qword [0x1400f07d0], rax
xor edx, edx
call fcn.14001d530
lea rcx, [0x1400b9fa0]
call fcn.1400a63e4
nop
lea rcx, [0x1400f07d8]
call fcn.1400a6474
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov r8d, 0x1f
lea rdx, str.RunPipeWhenActive._lockfailed_.
lea rcx, [rbp - 0x50]
call fcn.140005910
nop
mov r8d, 4
lea rdx, [rbp - 0x50]
lea rcx, [0x1400f07c0]
call fcn.14001ac60
nop
lea rcx, [rbp - 0x50]
call fcn.1400051b0
mov ebx, 1
jmp 0x1400383e1
mov byte [rbx + 0x15a], 0
cmp byte [rbx + 0x159], 0
jne 0x140038335
mov ecx, 0x10
call fcn.1400a6170
mov qword [rax], rbx
lea rcx, [0x140035f30]
mov qword [rax + 8], rcx
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400066d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x50], rax
test rax, rax
je 0x140038326
cmp dword [rbp - 0x48], 0
je 0x14003831a
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14003831a
mov byte [rbx + 0x159], 1
jmp 0x1400383df
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400f07d8], eax
jle 0x140038399
lea rcx, [0x1400f07d8]
call fcn.1400a64e0
cmp dword [0x1400f07d8], 0xffffffff
jne 0x140038399
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400f07c0], xmm0
mov qword [0x1400f07d0], rax
xor edx, edx
call fcn.14001d530
lea rcx, [0x1400b9fa0]
call fcn.1400a63e4
nop
lea rcx, [0x1400f07d8]
call fcn.1400a6474
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov r8d, 0x36
lea rdx, str.RunPipeWhenActive._Listener_thread_is_already_created_
lea rcx, [rbp - 0x50]
call fcn.140005910
nop
mov r8d, 2
lea rdx, [rbp - 0x50]
lea rcx, [0x1400f07c0]
call fcn.14001ac60
nop
lea rcx, [rbp - 0x50]
call fcn.1400051b0
mov ebx, esi
test dil, dil
je 0x14003843d
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400383ff
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x1400f045c]
cmp eax, 0x7fffffff
jne 0x140038420
dec eax
mov dword [0x1400f045c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [0x1400f04a8], esi
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rcx, [0x1400f0460]
call qword [sym.imp.MSVCP140.dll__Cnd_signal]
nop
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400a6140
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret