Function at 0x18008ee30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x180147030]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rcx
xor r14d, r14d
cmp edx, 1
jne 0x18008f236
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov r8d, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x18008eea5
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.18008f2d0
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
setae r10b
mov r9, qword [rsp + 0x50]
cmovae rdx, r9
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x18008ef07
lea rcx, [r8 - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
add rax, rdx
cmp byte [rax], 0x5c
je 0x18008ef02
cmp rax, rdx
je 0x18008ef07
dec rax
cmp byte [rax], 0x5c
jne 0x18008eef5
sub rax, rdx
jmp 0x18008ef0a
mov rax, rbx
inc eax
movsxd rcx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
cmp r8, rcx
jb 0x18008f29c
mov rax, r8
sub rax, rcx
cmp rax, r8
cmovb r8, rax
lea rdx, [rsp + 0x50]
test r10b, r10b
cmovne rdx, r9
add rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.18008f2d0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18008ef90
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008ef8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18008ef8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180124300
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.180009860
mov dword [rsp + 0x30], 0x15
movdqa xmm0, xmmword [0x180133c70]
movdqu xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], 0x4c5f1651
mov dword [rsp + 0x48], 0xe51f045f
mov r8b, 0x1f
mov r9b, 0xe5
mov edx, r14d
mov eax, edx
lea rcx, [rsp + 0x34]
add rcx, rax
movzx eax, byte [rcx]
sub al, r9b
xor al, r8b
mov byte [rcx], al
inc edx
mov eax, dword [rsp + 0x30]
cmp edx, eax
jae 0x18008f01d
movzx r9d, byte [rsp + 0x4b]
movzx r8d, byte [rsp + 0x4a]
jmp 0x18008eff0
mov byte [rsp + rax + 0x34], 0
lea rax, [rsp + 0x34]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18008f027
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r8, rdi
cmp rbx, rdi
cmovb r8, rbx
lea rdx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18008f27f
cmp rdi, rbx
jb 0x18008f27f
ja 0x18008f27f
xor edx, edx
mov r8d, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x180132f18]
call fcn.1800c6f90
mov qword [0x180148a38], rax
lea rcx, [0x180132f58]
call fcn.1800c6f90
mov qword [0x180148a40], rax
lea rcx, [0x180132f40]
call fcn.1800c6f90
mov qword [0x180148a48], rax
lea rcx, [0x180132e38]
call fcn.1800c6f90
mov qword [0x180148d90], rax
lea rcx, [0x180132ec8]
call fcn.1800c6f90
mov qword [0x180148d60], rax
lea rcx, [0x180132ea8]
call fcn.1800c6f90
mov qword [0x180148dc8], rax
lea rcx, [0x180132ef8]
call fcn.1800c6f90
mov qword [0x180148da0], rax
lea rcx, [0x180132ee0]
call fcn.1800c6f90
mov qword [0x180148d70], rax
lea rcx, [0x180132e70]
call fcn.1800c6f90
mov qword [0x180148d80], rax
lea rcx, [0x180132e60]
call fcn.1800c6f90
mov qword [0x180148dc0], rax
lea rcx, [0x180132e98]
call fcn.1800c6f90
mov qword [0x180148d68], rax
lea rcx, [0x180132e88]
call fcn.1800c6f90
mov qword [0x180148d78], rax
lea rcx, [0x180132f90]
call fcn.1800c6f90
mov qword [0x180148da8], rax
lea rcx, [0x180132f78]
call fcn.1800c6f90
mov qword [0x180148d98], rax
lea rcx, [0x180132fb0]
call fcn.1800c6f90
mov qword [0x180148d88], rax
lea rcx, [0x180132fa0]
call fcn.1800c6f90
mov qword [0x180148db8], rax
lea rcx, [0x180132f30]
call fcn.1800c6f90
mov qword [0x180148db0], rax
mov ecx, 8
call fcn.180123f44
lea rcx, [0x18008e460]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x18008f3f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18008f26e
cmp dword [rsp + 0x38], 0
je 0x18008f262
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18008f262
lea rcx, [rsp + 0x50]
call fcn.180009860
mov eax, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180123e40
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor edx, edx
mov r8d, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.18008f2b0
int3