Function at 0x180064e50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
xor r15d, r15d
mov ebx, r15d
mov dword [rbp - 0x50], ebx
cmp edx, 1
jne 0x1800651ef
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [0x18036b0b0], rdi
lea edx, [r15 + 0x64]
lea ecx, [rdx - 0x63]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
mov qword [rbp - 0x48], rax
lea r8d, [r15 + 0x64]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x180064ec0
mov rdx, rdi
lea r14, [0x180361310]
mov rcx, r14
call fcn.180008ab0
mov r12, qword [0x180361310]
mov r13, qword [0x180361328]
cmp r13, 0xf
cmova r14, r12
mov rsi, qword [0x180361320]
cmp rsi, 9
jb 0x180065175
lea r15, [rsi + r14]
lea r8, [r15 - 8]
sub r8, r14
mov rcx, r14
mov edx, 0x72
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x180065172
movabs rcx, 0x6e65696c63327372
cmp qword [rax], rcx
jne 0x180064f39
cmp byte [rax + 8], 0x74
je 0x180064f48
inc rax
lea r8, [r15 - 8]
sub r8, rax
mov rcx, rax
jmp 0x180064f11
sub rax, r14
cmp rax, 0xffffffffffffffff
je 0x180065172
mov byte [0x18036b080], 1
mov ecx, 8
call fcn.180298d00
lea rcx, [0x1801157a0]
mov qword [rax], rcx
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x50], 1
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18005f360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x180065162
mov qword [rbp + 0x48], r15
mov ebx, 1
and ebx, 0xfffffffe
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x18], r15d
je 0x180065156
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180065156
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea ecx, [rax + 8]
call fcn.180298d00
lea rcx, [0x180064600]
mov qword [rax], rcx
mov qword [rbp + 0x48], rax
or ebx, 2
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18005f360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x180065146
mov qword [rbp + 0x48], r15
and ebx, 0xfffffffd
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x28], r15d
je 0x18006513a
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18006513a
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.180298d00
lea rcx, [0x18004afa0]
mov qword [rax], rcx
mov qword [rbp + 0x48], rax
or ebx, 4
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18005f360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x18006512a
mov qword [rbp + 0x48], r15
and ebx, 0xfffffffb
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x38], r15d
je 0x18006511e
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18006511e
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp dword [rbp - 0x38], eax
je 0x1800650ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x28], 0
je 0x1800650fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x18], 0
je 0x180065107
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov r13, qword [0x180361328]
mov rsi, qword [0x180361320]
mov r12, qword [0x180361310]
jmp 0x180065175
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x38], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x28], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x18], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor r15d, r15d
cmp r13, 0xf
lea r14, [0x180361310]
cmova r14, r12
cmp rsi, 0xc
jb 0x1800651dd
lea r8, [r14 - 0xb]
add r8, rsi
sub r8, r14
mov edx, 0x6f
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1800651dd
movabs r12, 0x746e65696c63736f
cmp qword [rax], r12
jne 0x1800651be
cmp dword [rax + 8], 0x6578652e
je 0x180065212
inc rax
lea r8, [r14 - 0xb]
add r8, rsi
sub r8, rax
mov edx, 0x6f
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1800651b0
test rdi, rdi
je 0x1800651ef
mov edx, 1
mov rcx, rdi
call fcn.1802990b4
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rax, r14
cmp rax, 0xffffffffffffffff
je 0x1800651dd
mov byte [0x18036b041], 1
mov ecx, 8
call fcn.180298d00
lea rcx, [0x1801157a0]
mov qword [rax], rcx
mov qword [rbp + 0x48], rax
or ebx, 8
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18005f360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x18006540c
mov qword [rbp + 0x48], r15
and ebx, 0xfffffff7
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x38], 0
je 0x180065400
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180065400
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
lea ecx, [rax + 8]
call fcn.180298d00
lea rcx, [0x180064600]
mov qword [rax], rcx
mov qword [rbp + 0x48], rax
or ebx, 0x10
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18005f360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1800653f0
mov qword [rbp + 0x48], r15
and ebx, 0xffffffef
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x28], 0
je 0x1800653e4
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1800653e4
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.180298d00
lea rcx, [0x18004afa0]
mov qword [rax], rcx
mov qword [rbp + 0x48], rax
or ebx, 0x20
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18005f360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x1800653d4
mov qword [rbp + 0x48], r15
and ebx, 0xffffffdf
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x18], 0
je 0x1800653c8
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1800653c8
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
cmp dword [rbp - 0x18], eax
je 0x1800653aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x28], 0
je 0x1800653b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x38], 0
je 0x1800651dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x18], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x28], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x38], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3