Function at 0x1400050d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x140048010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x140035820]
mov ecx, 0xb0
call fcn.1400320bc
mov rsi, rax
test rax, rax
je 0x140005329
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsi + 8]
mov byte [rsi], 1
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rsi + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0xa0]
mov qword [0x14007cf40], rsi
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
movups xmmword [rsi + 0xa0], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.1400025f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x14004c9a0]
mov dword [0x14007cc0c], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400051b5
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
test rdi, rdi
je 0x1400051d5
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x14007ce10], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [0x14007ce20], xmm1
jmp 0x1400051f5
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x14007ce10], xmm0
movups xmmword [0x14007ce20], xmm0
movups xmmword [0x14007ce30], xmm0
lea rcx, [0x14004c9a0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x14007d050], xmm0
movups xmmword [0x14007d060], xmm0
movups xmmword [0x14007d070], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x140081088], 0
jne 0x140005332
lea rax, [0x140049a68]
mov r8d, 1
mov qword [0x14006caa0], rax
test rbx, rbx
je 0x14000528d
cmp byte [rbx], 0
lea rcx, [0x14006cac0]
je 0x14000528a
mov edx, r8d
sub rdx, rbx
nop
lea rax, [rdx + rbx]
cmp rax, 0x40
jae 0x14000528a
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x140005270
mov byte [rcx], 0
mov rdi, qword [0x14007cf40]
lea rax, [0x14006caa0]
mov qword [0x140081088], rax
mov ecx, 8
lea rax, [0x140005850]
mov qword [0x14006cab0], rax
lea rax, [0x140005860]
mov qword [0x14006cab8], rax
xchg byte [rdi], r8b
call fcn.140032080
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x140006670]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov r9, rax
mov qword [rax], rdi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140005319
cmp dword [rdi + 0xa8], ebx
jne 0x140005312
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
jmp 0x140005332
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rsp + 0x38], ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor ebx, ebx
mov qword [0x14007cf40], rbx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140032060
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret