Function at 0x18008e480
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 [0x180146030]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rcx
xor r14d, r14d
cmp edx, 1
jne 0x18008e886
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 0x18008e4f5
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.18008e920
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 0x18008e557
lea rcx, [r8 - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
add rax, rdx
cmp byte [rax], 0x5c
je 0x18008e552
cmp rax, rdx
je 0x18008e557
dec rax
cmp byte [rax], 0x5c
jne 0x18008e545
sub rax, rdx
jmp 0x18008e55a
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 0x18008e8ec
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.18008e920
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18008e5e0
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008e5db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18008e5db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180123220
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.180008ea0
mov dword [rsp + 0x30], 0x15
movdqa xmm0, xmmword [0x1801328f0]
movdqu xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], 0x1f34ed2a
mov dword [rsp + 0x48], 0xdb3c1734
mov r8b, 0x3c
mov r9b, 0xdb
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 0x18008e66d
movzx r9d, byte [rsp + 0x4b]
movzx r8d, byte [rsp + 0x4a]
jmp 0x18008e640
mov byte [rsp + rax + 0x34], 0
lea rax, [rsp + 0x34]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18008e677
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 0x18008e8cf
cmp rdi, rbx
jb 0x18008e8cf
ja 0x18008e8cf
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, [0x180131f50]
call fcn.1800c65e0
mov qword [0x180147a30], rax
lea rcx, [0x180131f30]
call fcn.1800c65e0
mov qword [0x180147a38], rax
lea rcx, [0x180131f68]
call fcn.1800c65e0
mov qword [0x180147a40], rax
lea rcx, [0x180131e68]
call fcn.1800c65e0
mov qword [0x180147d88], rax
lea rcx, [0x180131e50]
call fcn.1800c65e0
mov qword [0x180147d58], rax
lea rcx, [0x180131ee0]
call fcn.1800c65e0
mov qword [0x180147dc0], rax
lea rcx, [0x180131ec0]
call fcn.1800c65e0
mov qword [0x180147d98], rax
lea rcx, [0x180131f18]
call fcn.1800c65e0
mov qword [0x180147d68], rax
lea rcx, [0x180131f00]
call fcn.1800c65e0
mov qword [0x180147d78], rax
lea rcx, [0x180131e90]
call fcn.1800c65e0
mov qword [0x180147db8], rax
lea rcx, [0x180131e80]
call fcn.1800c65e0
mov qword [0x180147d60], rax
lea rcx, [0x180131eb0]
call fcn.1800c65e0
mov qword [0x180147d70], rax
lea rcx, [0x180131ea0]
call fcn.1800c65e0
mov qword [0x180147da0], rax
lea rcx, [0x180131f98]
call fcn.1800c65e0
mov qword [0x180147d90], rax
lea rcx, [0x180131f80]
call fcn.1800c65e0
mov qword [0x180147d80], rax
lea rcx, [0x180131fc0]
call fcn.1800c65e0
mov qword [0x180147db0], rax
lea rcx, [0x180131fb0]
call fcn.1800c65e0
mov qword [0x180147da8], rax
mov ecx, 8
call fcn.180122e64
lea rcx, [0x18008dab0]
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, [0x18008ea40]
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 0x18008e8be
cmp dword [rsp + 0x38], 0
je 0x18008e8b2
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 0x18008e8b2
lea rcx, [rsp + 0x50]
call fcn.180008ea0
mov eax, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180122d60
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.18008e900
int3