Function at 0x140002210
Capabilities:
Create process on windows
Create process suspended
Read .ini file
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x330
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x320], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0x190], rax
movups xmmword [rsp + 0x50], xmm0
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 0xf
lea ecx, [rax + 0x20]
call fcn.140003aa0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0x11
mov qword [rsp + 0x68], 0x1f
movups xmm0, xmmword [str.star_rail_ace.dll]
movups xmmword [rax], xmm0
movzx ecx, byte [0x140005890]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], bl
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x180]
call fcn.140001f10
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400022e2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003ae4
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x210]
call sub.VCRUNTIME140.dll_memset
lea rdi, str.sr_injector.ini
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x210]
lea r8, [0x140005849]
lea rdx, str.StarRailPath
lea rcx, str.Paths
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x14000241e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
mov qword [rsp + 0x170], rax
mov dword [rsp + 0xe0], 0x98
lea rax, [rsp + 0x210]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x118], 0x104
lea rax, str.Executable_Files
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x10c], 1
mov dword [rsp + 0x140], 0x1800
lea rcx, [rsp + 0xe0]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x14000257a
mov r9, rdi
lea r8, [rsp + 0x210]
lea rdx, str.StarRailPath
lea rcx, str.Paths
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x1a4], xmm0
movups xmmword [rsp + 0x1b4], xmm0
movups xmmword [rsp + 0x1c4], xmm0
movups xmmword [rsp + 0x1d4], xmm0
movups xmmword [rsp + 0x1e4], xmm0
movups xmmword [rsp + 0x1f4], xmm0
mov dword [rsp + 0x204], eax
mov dword [rsp + 0x1a0], 0x68
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x210]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000259c
mov rdx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0xc0]
call fcn.140001080
test al, al
je 0x1400025c4
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x180]
test rcx, rcx
je 0x140002550
mov rdx, qword [rsp + 0x190]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000254b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000254b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003ae4
xor eax, eax
jmp 0x140002559
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140003a80
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rdi
ret
lea rdx, str.unable_to_get_starrail.exe_path
lea rcx, [rsp + 0x78]
call fcn.140001da0
lea rdx, [0x140006bb0]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.unable_to_launch_starrail.exe
lea rcx, [rsp + 0x90]
call fcn.140001da0
lea rdx, [0x140006bb0]
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.unable_to_inject_dll
lea rcx, [rsp + 0xa8]
call fcn.140001da0
lea rdx, [0x140006bb0]
lea rcx, [rsp + 0xa8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3