Function at 0x18005ea50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x50], r14d
cmp edx, 1
jne 0x18005eb59
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [0x18033c818], rbx
lea edx, [r14 + 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, [r14 + 0x64]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x18005eac0
mov rdx, rdi
lea rbx, [0x180336e70]
mov rcx, rbx
call fcn.180055c10
cmp qword [0x180336e88], 0x10
cmovae rbx, qword [0x180336e70]
mov rax, qword [0x180336e80]
cmp rax, 9
jb 0x18005eb47
lea rsi, [rax + rbx]
lea r8, [rsi - 8]
sub r8, rbx
mov edx, 0x72
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x18005eb47
movabs r15, 0x6e65696c63327372
cmp qword [rax], r15
jne 0x18005eb2b
cmp byte [rax + 8], 0x74
je 0x18005eb78
inc rax
lea r8, [rsi - 8]
sub r8, rax
mov edx, 0x72
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x18005eb20
test rdi, rdi
je 0x18005eb59
mov edx, 1
mov rcx, rdi
call fcn.180277944
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x18005eb47
mov byte [0x18033c708], 1
mov ecx, 8
call fcn.1802779bc
lea rcx, [0x18010d680]
mov qword [rax], rcx
mov qword [rbp + 0x38], rax
mov dword [rbp - 0x50], 1
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x180059220]
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 0x18005ed78
mov qword [rbp + 0x38], r14
mov ebx, 1
and ebx, 0xfffffffe
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x18], 0
je 0x18005ed6c
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 0x18005ed6c
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea ecx, [rax + 8]
call fcn.1802779bc
lea rcx, [0x18005e340]
mov qword [rax], rcx
mov qword [rbp + 0x38], rax
or ebx, 2
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x180059220]
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 0x18005ed5c
mov qword [rbp + 0x38], r14
and ebx, 0xfffffffd
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x28], 0
je 0x18005ed50
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 0x18005ed50
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.1802779bc
lea rcx, [0x1800444b0]
mov qword [rax], rcx
mov qword [rbp + 0x38], rax
or ebx, 4
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x180059220]
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 0x18005ed40
mov qword [rbp + 0x38], r14
and ebx, 0xfffffffb
mov dword [rbp - 0x50], ebx
cmp dword [rbp - 0x38], 0
je 0x18005ed34
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 0x18005ed34
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp dword [rbp - 0x38], eax
je 0x18005ed16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x28], 0
je 0x18005ed23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x18], 0
je 0x18005eb47
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 - 0x38], r14d
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], r14d
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], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3