Function at 0x180064dd0
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 0x18006516f
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [0x180350b78], 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 0x180064e40
mov rdx, rdi
lea r14, [0x180346fd0]
mov rcx, r14
call fcn.180008ab0
mov r12, qword [0x180346fd0]
mov r13, qword [0x180346fe8]
cmp r13, 0xf
cmova r14, r12
mov rsi, qword [0x180346fe0]
cmp rsi, 9
jb 0x1800650f5
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 0x1800650f2
movabs rcx, 0x6e65696c63327372
cmp qword [rax], rcx
jne 0x180064eb9
cmp byte [rax + 8], 0x74
je 0x180064ec8
inc rax
lea r8, [r15 - 8]
sub r8, rax
mov rcx, rax
jmp 0x180064e91
sub rax, r14
cmp rax, 0xffffffffffffffff
je 0x1800650f2
mov byte [0x180350b40], 1
mov ecx, 8
call fcn.1802846b0
lea rcx, [0x180114e20]
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, [0x18005f200]
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 0x1800650e2
mov qword [rbp + 0x48], r15
mov ebx, 1
and ebx, 0xfffffffe
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x18], r15d
je 0x1800650d6
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 0x1800650d6
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea ecx, [rax + 8]
call fcn.1802846b0
lea rcx, [0x180064580]
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, [0x18005f200]
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 0x1800650c6
mov qword [rbp + 0x48], r15
and ebx, 0xfffffffd
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x28], r15d
je 0x1800650ba
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 0x1800650ba
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.1802846b0
lea rcx, [0x18004ad70]
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, [0x18005f200]
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 0x1800650aa
mov qword [rbp + 0x48], r15
and ebx, 0xfffffffb
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x38], r15d
je 0x18006509e
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 0x18006509e
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp dword [rbp - 0x38], eax
je 0x18006506d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x28], 0
je 0x18006507a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x18], 0
je 0x180065087
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov r13, qword [0x180346fe8]
mov rsi, qword [0x180346fe0]
mov r12, qword [0x180346fd0]
jmp 0x1800650f5
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, [0x180346fd0]
cmova r14, r12
cmp rsi, 0xc
jb 0x18006515d
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 0x18006515d
movabs r12, 0x746e65696c63736f
cmp qword [rax], r12
jne 0x18006513e
cmp dword [rax + 8], 0x6578652e
je 0x180065192
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 0x180065130
test rdi, rdi
je 0x18006516f
mov edx, 1
mov rcx, rdi
call fcn.180284a64
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 0x18006515d
mov byte [0x180350b05], 1
mov ecx, 8
call fcn.1802846b0
lea rcx, [0x180114e20]
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, [0x18005f200]
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 0x18006538c
mov qword [rbp + 0x48], r15
and ebx, 0xfffffff7
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x38], 0
je 0x180065380
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 0x180065380
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
lea ecx, [rax + 8]
call fcn.1802846b0
lea rcx, [0x180064580]
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, [0x18005f200]
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 0x180065370
mov qword [rbp + 0x48], r15
and ebx, 0xffffffef
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x28], 0
je 0x180065364
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 0x180065364
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.1802846b0
lea rcx, [0x18004ad70]
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, [0x18005f200]
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 0x180065354
mov qword [rbp + 0x48], r15
and ebx, 0xffffffdf
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x18], 0
je 0x180065348
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 0x180065348
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
cmp dword [rbp - 0x18], eax
je 0x18006532a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x28], 0
je 0x180065337
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x38], 0
je 0x18006515d
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