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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3c0
mov rax, qword [0x1400716f8]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
xor ebx, ebx
lea rcx, [rsp + 0x1e8]
call fcn.140002e20
nop
cmp byte [rsp + 0x208], bl
jne 0x1400036df
xor eax, eax
jmp 0x140003c83
call fcn.140056f7c
lea rdi, str.bocchisr.dll
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], recv
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140002720
nop
cmp byte [rsp + 0x208], 0
je 0x140003ca4
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x1c8]
call fcn.140002c40
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140003779
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003774
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003774
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400574a0
movdqa xmm0, xmmword [0x140067ab0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], bx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1c0], rax
movups xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
lea r8d, [rax + 0xc]
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.140006300
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x1b0]
call fcn.140003460
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x140003826
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003821
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003821
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400574a0
movdqa xmm0, xmmword [0x140067ac0]
movdqu xmmword [rsp + 0x90], xmm0
mov byte [rsp + 0x80], 0
lea rax, [rsp + 0x1c8]
cmp qword [rsp + 0x1e0], 8
cmovae rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x58], rax
call fcn.140056f7c
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140006c40
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x210]
call fcn.1400030a0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400038e0
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400038db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400574a0
movdqa xmm0, xmmword [0x140067ac0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
lea rdi, str.sr_injector.ini
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x2a0]
lea r8, [0x14006769b]
lea rdx, str.StarRailPath
lea rcx, str.Paths
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x140003a1c
xorps xmm0, xmm0
xor eax, eax
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
movups xmmword [rsp + 0x170], xmm0
movups xmmword [rsp + 0x180], xmm0
movups xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1a0], rax
mov dword [rsp + 0x110], 0x98
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x148], 0x104
lea rax, str.Executable_Files
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x13c], 1
mov dword [rsp + 0x170], 0x1800
lea rcx, [rsp + 0x110]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x140003caa
mov r9, rdi
lea r8, [rsp + 0x2a0]
lea rdx, str.StarRailPath
lea rcx, str.Paths
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x234], xmm0
movups xmmword [rsp + 0x244], xmm0
movups xmmword [rsp + 0x254], xmm0
movups xmmword [rsp + 0x264], xmm0
movups xmmword [rsp + 0x274], xmm0
movups xmmword [rsp + 0x284], xmm0
mov dword [rsp + 0x294], eax
mov dword [rsp + 0x230], WSAGetLastError
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x230]
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 + 0x2a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140003cd2
mov rdx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0xf0]
call fcn.140001090
test al, al
je 0x140003cfa
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x228]
cmp rdx, 0x10
jb 0x140003b4f
inc rdx
mov rcx, qword [rsp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400574a0
movdqa xmm0, xmmword [0x140067ac0]
movdqu xmmword [rsp + 0x220], xmm0
mov byte [rsp + 0x210], 0
mov rcx, qword [rsp + 0x1b0]
test rcx, rcx
je 0x140003bc1
mov rdx, qword [rsp + 0x1c0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ba8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ba8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400574a0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1c0], rbx
mov rdx, qword [rsp + 0x1e0]
cmp rdx, 8
jb 0x140003c0c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400574a0
movdqa xmm0, xmmword [0x140067ab0]
movdqu xmmword [rsp + 0x1d8], xmm0
mov word [rsp + 0x1c8], bx
cmp byte [rsp + 0x208], 0
je 0x140003c7a
mov rdx, qword [rsp + 0x200]
cmp rdx, 8
jb 0x140003c7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400574a0
xor eax, eax
jmp 0x140003c83
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1400571a0
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x3c0
pop rdi
ret
call fcn.140002630
nop
lea rdx, str.unable_to_get_starrail.exe_path
lea rcx, [rsp + 0xa8]
call fcn.140001e10
lea rdx, [0x14006df28]
lea rcx, [rsp + 0xa8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.unable_to_launch_starrail.exe
lea rcx, [rsp + 0xc0]
call fcn.140001e10
lea rdx, [0x14006df28]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.unable_to_inject_dll
lea rcx, [rsp + 0xd8]
call fcn.140001e10
lea rdx, [0x14006df28]
lea rcx, [rsp + 0xd8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3