Function at 0x180009310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3a0
mov rax, qword [0x1800a9040]
xor rax, rsp
mov qword [rsp + 0x390], rax
cmp edx, 1
jne 0x180009540
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0x104
lea rdx, [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
test eax, eax
je 0x1800094b6
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.180008890
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180007bc0
mov rbx, rax
lea rax, [0x1800aa288]
cmp rax, rbx
je 0x180009419
mov rdx, qword [0x1800aa2a0]
cmp rdx, 7
jbe 0x1800093de
mov rcx, qword [0x1800aa288]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800093d9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180009452
mov rcx, r8
call fcn.180065ab0
movdqa xmm0, xmmword [0x18009c550]
movdqu xmmword [0x1800aa298], xmm0
mov word [0x1800aa288], di
movups xmm0, xmmword [rbx]
movups xmmword [0x1800aa288], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1800aa298], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18000945e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009459
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009459
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180065ab0
movdqa xmm0, xmmword [0x18009c550]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1800094b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800094b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800094b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180065ab0
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
test rax, rax
je 0x1800094fd
lea rbx, [rax + 1]
lea rdx, str.Process_Name:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.180008b00
mov rcx, rax
mov rdx, rbx
call fcn.180009570
lea rdx, [0x1800097e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
call fcn.180001a20
test al, al
je 0x180009540
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x180009190]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x18005fd20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.180065a90
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x3a0
pop rdi
ret