Function at 0x140016740
Capabilities:
Create process on windows
Create process suspended
Create thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x310], rax
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], 0xf
mov byte [rbp + 0x40], dil
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rdi
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], dil
lea rcx, [rbp + 0x40]
call fcn.140003760
mov rbx, 0xffffffffffffffff
test al, al
jne 0x1400169d5
lea rcx, str.Config_not_found_or_invalid._Creating_new_configuration._n
call fcn.140016150
mov byte [rbp + 0x200], dil
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x201]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov dword [rsp + 0x70], 0x98
mov qword [rsp + 0x78], rdi
lea rax, str.Executable_Files
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0x200]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0x104
mov dword [rbp - 0x30], 0x1800
lea rax, [0x14001ce14]
mov qword [rbp - 0x28], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x140016883
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rdi
lea rax, [rbp + 0x200]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140016870
lea rdx, [rbp + 0x200]
jmp 0x1400168af
lea rdx, str.No_file_selected._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000b300
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rdi
xor r8d, r8d
lea rdx, [0x14001a881]
lea rcx, [rbp + 0x20]
call fcn.14000bbb0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x1400168f6
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400168f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400168f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017484
movups xmm0, xmmword [rbp + 0x20]
movaps xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rbp + 0x30]
movaps xmmword [rbp + 0x50], xmm1
movq rax, xmm1
test rax, rax
jne 0x1400169ad
lea rcx, str.No_valid_game_path_selected._Exiting._n
call fcn.140016150
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140016958
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016953
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400169a6
call fcn.140017484
mov qword [rbp + 0x70], rdi
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140016cea
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016ce5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016ce5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r8d, r8d
lea rdx, [0x14001a881]
lea rcx, [rbp + 0x60]
call fcn.1400091e0
lea rcx, [rbp + 0x40]
call fcn.140004cc0
lea rcx, str.New_configuration_created_and_saved._n
call fcn.140016150
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp + 0xa4], xmm0
movups xmmword [rbp + 0xb4], xmm0
movups xmmword [rbp + 0xc4], xmm0
movups xmmword [rbp + 0xd4], xmm0
mov dword [rbp + 0xe4], eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov dword [rbp + 0x80], 0x68
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0xf
cmova rcx, qword [rbp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140016a83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_game_process._Error:__lu_n
call fcn.140016150
jmp 0x140016921
mov r8d, 0x104
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0xf0]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140016ab3
mov byte [rax + 1], 0
lea r8, str.AntiCheatHook.dll
mov edx, 0x104
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rdx, [rbp + 0xf0]
mov ecx, dword [rsp + 0x60]
call fcn.140015c50
test al, al
jne 0x140016ae9
lea rcx, str.AntiCheatHook.dll_injection_failed._n
jmp 0x140016b4d
mov r8d, 0x104
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0xf0]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140016b19
mov byte [rax + 1], 0
lea r8, str.shika.dll
mov edx, 0x104
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rdx, [rbp + 0xf0]
mov ecx, dword [rsp + 0x60]
call fcn.140015c50
test al, al
jne 0x140016b7f
lea rcx, str.shika.dll_injection_failed._n
call fcn.140016150
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x140016921
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140016bde
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtResumeProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140016bc9
mov rcx, rbx
call rax
lea rcx, str.Process_resumed_using_NtResumeProcess._n
jmp 0x140016bd0
lea rcx, str.Failed_to_get_NtResumeProcess_function_address._n
call fcn.1400160f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x30
call fcn.140017440
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rax + 0x10], xmm1
lea rcx, [rbp + 0xf0]
mov qword [rax + 0x18], rcx
lea rcx, str.HoYoKProtect.sys
mov qword [rax + 0x20], rcx
lea rcx, [0x140016300]
mov qword [rax + 0x28], rcx
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140016df0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x10], rax
test rax, rax
je 0x140016d10
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
xchg byte [0x140023098], al
cmp dword [rbp + 0x18], 0
jne 0x140016c78
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x18], eax
jne 0x140016c8f
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rbp + 0x20], xmm0
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x140016cb4
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
cmp dword [rbp + 0x18], 0
je 0x140016921
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call fcn.140017484
mov eax, ebx
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140017420
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov dword [rbp + 0x18], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3