Function at 0x140001000
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xe00]
sub rsp, 0xf00
mov r15, rdx
mov rsi, rcx
lea rdx, str._perfectworld
mov rcx, r8
mov r14d, r9d
mov rdi, r8
call fcn.140001fe0
test rax, rax
je 0x140001045
mov byte [0x14001aadc], 1
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14000e840
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x101
ja 0x140001423
cmp word [rsp + 0x50], 0
je 0x140001423
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.1400021c8
test rax, rax
je 0x1400013e1
mov qword [rsp + 0xf20], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0xf28], r12
lea rbx, [rsp + 0x50]
xor r12d, r12d
mov qword [0x14001aad0], rcx
mov word [rax + 2], r12w
lea rcx, [rsp + 0x50]
sub rax, rcx
sar rax, 1
inc eax
mov dword [0x14001aad8], eax
movzx eax, word [rsp + 0x50]
test ax, ax
je 0x140001104
movzx ecx, ax
and ax, 0x7f
lea rdx, [rbx + 2]
cmp ax, cx
jne 0x1400011fc
movzx eax, word [rdx]
mov rbx, rdx
movzx ecx, ax
test ax, ax
jne 0x1400010e5
lea rcx, [rsp + 0x50]
call fcn.140004cfc
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.14000e840
mov r8d, 0x104
lea rdx, [rbp + 0x160]
lea rcx, str.SteamPath
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400011d7
lea rdx, str._steampath
mov rcx, rdi
call fcn.140001fe0
mov rbx, rax
test rax, rax
je 0x1400011d7
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x104
add rbx, 0xb
call fcn.14000e840
movzx edx, byte [rbx]
cmp dl, 0x20
je 0x1400011a9
mov rax, r12
movzx ecx, dl
test dl, dl
je 0x1400011a9
cmp rax, 0x104
jge 0x1400011a9
inc rbx
mov byte [rbp + rax + 0x370], cl
inc rax
movzx ecx, byte [rbx]
movzx edx, cl
cmp cl, 0x20
jne 0x140001185
lea rax, [rbp + 0x160]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x370]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, str._insecure
mov rcx, rdi
mov ebx, 3
call fcn.140001fe0
test rax, rax
je 0x1400012ac
mov ebx, r12d
jmp 0x1400012da
mov eax, 0x2e
mov dword [rbx + 4], 0x2e002e
mov word [rdx], ax
lea rcx, [rbp + 0x370]
xor edx, edx
mov word [rbx + 8], r12w
mov r8d, 0x800
call fcn.14000e840
cmp byte [0x14001aadc], r12b
lea rax, [0x140010470]
movzx r8d, word [rbx]
lea rdx, str.Unicode_directory_path_not_supported._n_nError_0x_04X_at:_n_s_n_nPlease_install_game_under_directory_path_containing_only_Latin_letters.
cmovne rdx, rax
lea r9, [rsp + 0x50]
lea rcx, [rbp + 0x370]
call qword [sym.imp.USER32.dll_wsprintfW]
cmp byte [0x14001aadc], r12b
lea rcx, [0x140010360]
lea r8, str.Launcher_Error
cmovne r8, rcx
lea rdx, [rbp + 0x370]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xfffffff9
mov rbx, qword [rsp + 0xf20]
mov r12, qword [rsp + 0xf28]
lea r11, [rsp + 0xf00]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rdx, str._trusted
mov rcx, rdi
call fcn.140001fe0
test rax, rax
jne 0x1400012da
lea rdx, str._allow_third_party_software
mov rcx, rdi
call fcn.140001fe0
test rax, rax
mov ecx, 2
cmovne ebx, ecx
mov r8, qword [0x14001aad0]
lea r9, str.win64
lea rdx, str._sbin_slauncher.dll
lea rcx, [rbp + 0xb70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rbp + 0xb70]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x1400013ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r12
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], r12d
lea rax, [rsp + 0x40]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp byte [0x14001aadc], r12b
lea rax, [0x140010690]
mov r8, qword [rsp + 0x40]
lea rdx, str.Failed_to_load_the_launcher_DLL:_n_n_s
cmovne rdx, rax
lea rcx, [rbp + 0x370]
call qword [sym.imp.USER32.dll_wsprintfW]
cmp byte [0x14001aadc], r12b
lea rcx, [0x140010360]
lea r8, str.Launcher_Error
mov word [rbp + 0xb6e], r12w
cmovne r8, rcx
lea rdx, [rbp + 0x370]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140001283
lea rdx, str.LauncherMain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rdi
mov dword [rsp + 0x20], r14d
mov r8, r15
mov rdx, rsi
mov ecx, ebx
call rax
jmp 0x140001283
movzx eax, byte [0x14001aadc]
lea rcx, [0x140010360]
test al, al
lea r8, str.Launcher_Error
lea rdx, str.Failed_to_parse_module_file_name
cmovne r8, rcx
lea rcx, [0x140010400]
cmovne rdx, rcx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xfffffffa
jmp 0x140001293
movzx eax, byte [0x14001aadc]
lea rcx, [0x140010360]
test al, al
lea r8, str.Launcher_Error
lea rdx, str.Failed_to_determine_module_file_name
cmovne r8, rcx
lea rcx, [0x140010390]
cmovne rdx, rcx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xfffffffb
jmp 0x140001293