Function at 0x140052310
Capabilities:
Create thread

Disassembly:
xchg rsi, r8
mov qword [rsp + 0x18], rsi
xchg r8, rsi
xchg r14, rdx
mov qword [rsp + 0x10], r14
xchg r14, rdx
push rbp
push rbx
nop
sub rsp, 8
mov qword [rsp], rsi
push rdi
push rbx
mov qword [rsp], r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
movzx ebx, r9b
xchg rsi, r8
mov r8, rsi
xchg rsi, r8
mov r14, rdx
xor r15d, r15d
mov qword [rbp - 0x39], rcx
lea rcx, [rbp - 0x31]
call fcn.140048f00
nop
mov byte [rbp - 0x21], bl
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp + 0x1f], r15
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140052393
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
call qword [rax]
xchg r10, rax
mov qword [rbp + 0x1f], r10
xchg r10, rax
mov ecx, 0x7882fafd
sub ecx, 0x126ccb74
xor ecx, 0x5ffddc5
xor ecx, 0x48025588
xor ecx, 0x7862431f
sub ecx, 0xfea367a
sub ecx, 0xd1d06da
sub ecx, 0x3682a727
call fcn.1401fd050
xchg rbx, r10
mov r10, rax
xchg rbx, r10
test rax, rax
je 0x1400524a1
xchg r13, rax
mov r13, qword [rbp - 0x39]
xchg r13, rax
mov qword [rbx], rax
movzx eax, byte [rbp - 0x31]
mov byte [rbx + 8], al
xchg r14, rax
mov r14, qword [rbp - 0x29]
xchg r14, rax
mov qword [rbx + 0x10], rax
mov byte [rbp - 0x31], 0x1a
add byte [rbp - 0x31], 0x1c
sub byte [rbp - 0x31], 0x34
add byte [rbp - 0x31], 2
xor byte [rbp - 0x31], 0xf
add byte [rbp - 0x31], 0x27
add byte [rbp - 0x31], 0x1e
add byte [rbp - 0x31], 0xa
xor byte [rbp - 0x31], 0x5a
xchg r15, r9
mov qword [rbp - 0x29], r9
xchg r15, r9
movzx eax, byte [rbp - 0x21]
mov byte [rbx + 0x18], al
xchg r11, r15
mov qword [rbx + 0x58], r11
xchg r11, r15
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x1400524aa
lea rax, [rbp - 0x19]
cmp rcx, rax
jne 0x14005248e
xchg r15, rax
mov r15, qword [rcx]
xchg r15, rax
lea rdx, [rbx + 0x20]
call qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x1400524aa
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xchg r9, r15
mov qword [rbp + 0x1f], r9
xchg r15, r9
jmp 0x1400524aa
mov qword [rbx + 0x58], rcx
xchg r15, rdi
mov qword [rbp + 0x1f], rdi
xchg r15, rdi
jmp 0x1400524aa
xchg r15, rbp
mov rbx, rbp
xchg r15, rbp
mov qword [rbp + 0x67], rbx
lea rax, [rbp - 0x51]
xchg rsi, rax
mov qword [rsp + 0x28], rsi
xchg rsi, rax
mov dword [rsp + 0x20], r15d
xchg rbx, r9
mov rbx, r9
xchg rbx, r9
lea r8, [0x1400347f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x1400525fd
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140052508
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x1f], r15
movzx edx, byte [rbp - 0x31]
lea rcx, [rbp - 0x29]
call fcn.1400541a0
nop
cmp dword [rbp - 0x51], 0
je 0x14005263c
xchg rbp, r13
movaps xmm0, xmmword [r13 - 0x59]
xchg rbp, r13
xchg rbp, rsi
movdqa xmmword [rsi - 0x49], xmm0
xchg rbp, rsi
lea rcx, [rbp - 0x49]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400525f5
xorps xmm0, xmm0
xchg r15, rbp
movdqa xmmword [r15 - 0x59], xmm0
xchg rbp, r15
lea rcx, [r14 + 8]
movzx edx, byte [r14]
call fcn.1400541a0
nop
xchg rcx, r15
mov r15, qword [rsi + 0x38]
xchg r15, rcx
test rcx, rcx
je 0x140052591
xchg rdi, rax
mov rdi, qword [rcx]
xchg rdi, rax
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
xchg r15, r10
mov qword [rsi + 0x38], r10
xchg r10, r15
add rsp, 0xb8
push rdx
xchg qword [rsp + 8], r15
add rsp, 0x10
nop
add rsp, 8
xchg qword [rsp - 8], r14
push rcx
push rbx
push rcx
push rbx
push rax
xchg qword [rsp + 0x28], rdi
add rsp, 0x30
push rax
push rcx
push rdx
push rdx
xchg qword [rsp + 0x20], rsi
pop rdx
pop rdx
pop rcx
pop rax
add rsp, 8
push rdx
push rcx
push rcx
push rax
push rdx
xchg qword [rsp + 0x28], rbx
pop rdx
pop rax
pop rcx
pop rcx
pop rdx
add rsp, 8
push rdx
push rcx
push rbx
push rax
push rbx
xchg qword [rsp + 0x28], rbp
add rsp, 0x30
nop
add rsp, 8
jmp qword [rsp - 8]
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov dword [rbp - 0x51], r15d
mov ecx, 0x2c12b3b8
add ecx, 0x16338300
add ecx, 0x13755f8e
xor ecx, 0x5b249cc1
add ecx, 0x1926efe5
sub ecx, 0xda8221c
add ecx, 0xebf893c
sub ecx, 0x17976e75
xor ecx, 0x1145f311
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 0x57f4caa3
sub ecx, 0x54ae5344
add ecx, 0x36dab1e1
xor ecx, 0x33efb006
xor ecx, 0x23c22d5d
xor ecx, 0x2a0cb41a
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3