Function at 0x140004e60
Capabilities:
Accept command line arguments
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
test rcx, rcx
jne 0x140004ea3
lea rcx, str.null_ptr_exception_in_init_commandline
call fcn.140002cd0
xor al, al
jmp 0x14000530b
xor ebx, ebx
mov word [rcx], bx
mov dword [rbp - 0x39], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbp - 0x39]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], bx
cmp dword [rbp - 0x39], 2
jl 0x14000524f
movups xmm0, xmmword [str._genshin]
movups xmmword [rbp - 1], xmm0
movzx eax, word [0x140038550]
mov word [rbp + 0xf], ax
movsd xmm0, qword [str._hksr]
movsd qword [rbp - 0x11], xmm0
mov eax, dword [0x140038560]
mov dword [rbp - 9], eax
movups xmm0, xmmword [str._enablemobileui]
movups xmmword [rbp + 0x17], xmm0
movups xmm1, xmmword [0x140038578]
movups xmmword [rbp + 0x27], xmm1
mov ecx, 0x400
call fcn.140002ef0
mov rdi, rax
mov rdx, qword [rsi + 8]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004f40
mov rcx, rdi
call fcn.140006860
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140004f60
mov rcx, qword [rdi]
call fcn.140001630
lea rdx, [rbp - 1]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140004f70
mov rdx, qword [rdi + 0x10]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140004f8b
mov r8, qword [rdi]
cmp rdx, rax
jne 0x1400050cc
lea rcx, [rbp - 1]
test rdx, rdx
je 0x140004fc8
lea rax, [rbp - 1]
sub r8, rax
nop word [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1400050cc
add rcx, 2
sub rdx, 1
jne 0x140004fb0
lea rcx, str.This_console_control_GenshinFPS
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [rbp - 0x39], 2
jle 0x140005209
mov rdx, qword [rsi + 0x10]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004ff0
mov rcx, rdi
call fcn.140006860
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140005010
mov rcx, qword [rdi]
call fcn.140001630
lea rdx, [rbp + 0x17]
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140005020
mov rdx, qword [rdi + 0x10]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000503b
mov r8, qword [rdi]
cmp rdx, rbx
jne 0x140005082
lea rcx, [rbp + 0x17]
test rdx, rdx
je 0x140005064
lea rax, [rbp + 0x17]
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140005082
add rcx, 2
sub rdx, 1
jne 0x140005050
mov byte [0x14003fe79], 1
lea rdx, str._use_mobile_platform__is_cloud_1__platform_type_CLOUD_THIRD_PARTY_MOBILE
lea rcx, [rbp - 0x31]
call fcn.1400069c0
mov ebx, 3
jmp 0x140005087
mov ebx, 2
cmp ebx, dword [rbp - 0x39]
jge 0x140005209
mov eax, ebx
lea rsi, [rsi + rax*8]
nop word [rax + rax]
mov rdx, qword [rsi]
lea rcx, [rbp - 0x31]
call fcn.1400069c0
lea rdx, [0x140038644]
lea rcx, [rbp - 0x31]
call fcn.1400069c0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rbp - 0x39]
jl 0x1400050a0
jmp 0x140005209
lea rcx, [rbp - 0x11]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400050d3
mov rdx, qword [rdi + 0x10]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400050ee
mov r8, qword [rdi]
cmp rdx, rax
jne 0x14000521e
lea rcx, [rbp - 0x11]
test rdx, rdx
je 0x140005128
lea rax, [rbp - 0x11]
sub r8, rax
nop word [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14000521e
add rcx, 2
sub rdx, 1
jne 0x140005110
mov byte [0x14003eae4], 0
lea rcx, str.This_console_control_HKStarRailFPS
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [rbp - 0x39], 2
jle 0x140005209
mov rdx, qword [rsi + 0x10]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140005150
mov rcx, rdi
call fcn.140006860
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140005170
mov rcx, qword [rdi]
call fcn.140001630
lea rdx, [rbp + 0x17]
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140005180
mov rdx, qword [rdi + 0x10]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000519b
mov r8, qword [rdi]
cmp rdx, rbx
jne 0x1400051d2
lea rcx, [rbp + 0x17]
test rdx, rdx
je 0x1400051c4
lea rax, [rbp + 0x17]
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1400051d2
add rcx, 2
sub rdx, 1
jne 0x1400051b0
mov byte [0x14003fe79], 1
mov ebx, 3
jmp 0x1400051d7
mov ebx, 2
cmp ebx, dword [rbp - 0x39]
jge 0x140005209
mov eax, ebx
lea rsi, [rsi + rax*8]
mov rdx, qword [rsi]
lea rcx, [rbp - 0x31]
call fcn.1400069c0
lea rdx, [0x140038644]
lea rcx, [rbp - 0x31]
call fcn.1400069c0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rbp - 0x39]
jl 0x1400051e2
mov rcx, qword [rdi]
call fcn.140013d48
mov rcx, rdi
call fcn.140013d48
jmp 0x1400052a9
mov r9d, 0x10
lea r8, [0x140038670]
lea rdx, [0x140038680]
mov rcx, qword [0x14003fe80]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor sil, sil
mov rdi, qword [rbp - 0x19]
mov rbx, qword [rbp - 0x31]
jmp 0x1400052d0
mov r9d, 0x23
lea r8, str.GameSelect
lea rdx, str.Genshin_click_yes__StarRail_click_no__Cancel_to_Quit__n
mov rcx, qword [0x14003fe80]
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x140005282
xor sil, sil
mov rdi, qword [rbp - 0x19]
mov rbx, qword [rbp - 0x31]
jmp 0x1400052d0
cmp eax, 6
jne 0x140005290
lea rcx, str.This_console_control_GenshinFPS
jmp 0x1400052a3
cmp eax, 7
jne 0x1400052a9
mov byte [0x14003eae4], 0
lea rcx, str.This_console_control_HKStarRailFPS
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rax, qword [rbp - 0x21]
lea r8, [rax + rax]
lea rdx, [rbp - 0x31]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x19]
cmp rdi, 7
cmova rdx, rbx
mov rcx, r14
call fcn.140001670
mov sil, 1
cmp rdi, 7
jbe 0x140005307
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400052ff
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000532f
mov rcx, rbx
call fcn.1400080f8
movzx eax, sil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140007e20
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140014134
int3