Function at 0x140001700
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Get file version info
Set environment variable

Disassembly:
push rbx
push rdi
mov eax, 0x1898
call fcn.14001b740
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x1870], rax
mov ecx, 2
call fcn.14000bfb8
xor r9d, r9d
mov rcx, rax
xor edx, edx
lea r8d, [r9 + 4]
call fcn.14000d0a0
lea rcx, str.PYLAUNCH_DEBUG
call fcn.1400012a0
test rax, rax
je 0x140001765
cmp word [rax], 0
je 0x140001765
mov ecx, 2
call fcn.14000bfb8
mov qword [0x14002bfc8], rax
lea rcx, str.launcher_build:_64bit_n
call fcn.140001130
lea rcx, str.launcher_executable:_Console_n
call fcn.140001130
mov ebx, 0x104
mov ecx, ebx
add rcx, rcx
call fcn.14000d2c4
mov rdi, rax
test rax, rax
je 0x140001d34
mov r8d, ebx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001d1d
cmp eax, ebx
jne 0x1400017c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400017c9
mov rcx, rdi
call fcn.14000d1d8
add ebx, ebx
jmp 0x140001782
mov qword [rsp + 0x18b0], rbp
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x1888], r14
mov rcx, rdi
mov qword [rsp + 0x1880], r15
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor r15d, r15d
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140001843
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, eax
mov ecx, 0x1200
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [rsp + 0x70]
lea rcx, str.GetFileVersionInfoSize_failed:__ls_n
call fcn.140001130
jmp 0x1400018d6
mov ecx, eax
call fcn.14000d2c4
mov rbx, rax
test rax, rax
je 0x1400018d6
mov r8d, dword [rsp + 0x40]
mov r9, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140001883
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetFileVersionInfo_failed:__X_n
call fcn.140001130
jmp 0x1400018ce
lea r9, [rsp + 0x58]
mov rcx, rbx
lea r8, [rsp + 0x60]
lea rdx, [0x1400257dc]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x1400018b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VerQueryValue_failed:__X_n
call fcn.140001130
jmp 0x1400018ce
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + 8]
mov dword [0x140045fe8], eax
mov eax, dword [rcx + 0xc]
mov dword [0x140045fec], eax
mov rcx, rbx
call fcn.14000d1d8
mov r14, 0xffffffffffffffff
mov rbx, r14
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x1400018e0
add rbx, 0x21
lea rcx, [rbx + rbx]
call fcn.14000d2c4
mov qword [rsp + 0x50], rax
mov rbp, rax
test rax, rax
je 0x14000191e
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.14000c768
mov rcx, rbp
test eax, eax
je 0x140001930
call fcn.14000d1d8
lea rdx, str.Failed_to_copy_module_name
mov ecx, 0x68
call fcn.1400011d0
int3
mov qword [rsp + 0x18b8], rsi
mov esi, 0x7fffffff
mov qword [rsp + 0x18c0], r12
cmp rbx, rsi
mov r12d, 0x5c
mov edx, r12d
cmovb esi, ebx
call fcn.140002c48
mov rbx, rax
test rax, rax
jne 0x140001971
lea rdx, str.No_pyvenv.cfg_file
lea ecx, [rax + 0x6a]
call fcn.1400011d0
int3
movsxd rsi, esi
lea r8, str.pyvenv.cfg
mov rdx, rsi
mov word [rax], r15w
mov rcx, rbp
call fcn.14000c7d0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140001a00
mov rdx, rbp
lea rcx, str.File__ls_non_existent_n
call fcn.140001130
mov edx, r12d
mov word [rbx], r15w
mov rcx, rbp
call fcn.140002c48
test rax, rax
je 0x140001a00
lea r8, str.pyvenv.cfg
mov word [rax], r15w
mov rdx, rsi
mov rcx, rbp
call fcn.14000c7d0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140001a00
mov rdx, rbp
lea rcx, str.File__ls_non_existent_n
call fcn.140001130
lea rdx, str.No_pyvenv.cfg_file
mov ecx, 0x6a
call fcn.1400011d0
int3
mov rdx, rbp
mov qword [rsp + 0x1890], r13
lea rcx, str.Using_venv_configuration_file__ls_n
call fcn.140001130
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
movzx edx, word [rax]
cmp dx, 0x22
jne 0x140001a2d
add rcx, 2
mov r8d, 0x22
mov eax, 0x20
cmp dx, r8w
cmove ax, r8w
movzx edx, ax
call fcn.140002950
test rax, rax
jne 0x140001a57
lea r13, [0x140025bf0]
jmp 0x140001a7e
lea r13, [rax + 2]
movzx eax, word [rax + 2]
test ax, ax
je 0x140001a7e
movzx ecx, ax
call fcn.14000d1f0
test eax, eax
je 0x140001a7e
movzx eax, word [r13 + 2]
add r13, 2
test ax, ax
jne 0x140001a64
mov rdx, r13
lea rcx, str.Called_with_command_line:__ls_n
call fcn.140001130
lea r8, [0x140025ef0]
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.14000c4ec
test eax, eax
je 0x140001aba
mov r8, rbp
lea rdx, str.Cannot_read__ls
mov ecx, 0x6b
call fcn.1400011d0
int3
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x870]
mov edx, 0x1000
mov qword [rsp + 0x20], rax
mov r9d, edx
mov r8d, 1
call fcn.14000ced0
mov rcx, qword [rsp + 0x48]
call fcn.14000c664
lea rdx, str.home
lea rcx, [rsp + 0x870]
call fcn.1400029cc
mov rbx, rax
test rax, rax
je 0x140001b69
cmp byte [rbx], 0xa
jne 0x140001b0d
inc rbx
mov eax, 4
cmp byte [rbx], r15b
je 0x140001b4c
dec eax
inc rbx
test eax, eax
jg 0x140001b12
movzx eax, byte [rbx]
test al, al
je 0x140001b4c
nop word [rax + rax]
mov edx, 8
movsx ecx, al
call fcn.14000c6fc
test eax, eax
je 0x140001b4c
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140001b30
cmp byte [rbx], 0x3d
je 0x140001b80
lea rcx, [rbx + 1]
lea rdx, str._nhome
call fcn.1400029cc
mov rbx, rax
test rax, rax
jne 0x140001b05
mov r8, rbp
lea rdx, str.Cannot_find_home_in__ls
mov ecx, 0x6b
call fcn.1400011d0
int3
movsx eax, byte [rbx + 1]
inc rbx
test al, al
je 0x140001b9c
mov edx, 8
movzx ecx, ax
call fcn.14000c6fc
test eax, eax
jne 0x140001b80
mov edx, 0xa
mov rcx, rbx
call fcn.140002bc8
mov rbp, rax
test rax, rax
je 0x140001bb5
sub ebp, ebx
jmp 0x140001bc1
inc r14
cmp byte [rbx + r14], r15b
jne 0x140001bb5
mov ebp, r14d
mov dword [rsp + 0x28], r15d
mov r9d, ebp
mov r8, rbx
mov qword [rsp + 0x20], r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r14d, eax
test eax, eax
jne 0x140001bf4
lea rdx, str.Cannot_determine_memory_for_home_path
xor ecx, ecx
call fcn.1400011d0
int3
add r14d, 0xe
mov r12d, r14d
lea rcx, [r14 + r14]
call fcn.14000d2c4
mov rsi, rax
test rax, rax
jne 0x140001c1c
lea rdx, str.A_memory_allocation_failed
lea ecx, [rax + 0x68]
call fcn.1400011d0
int3
mov eax, 0x22
lea r15, [rsi + 2]
mov word [rsi], ax
mov r9d, ebp
lea eax, [r14 - 1]
mov r8, rbx
mov dword [rsp + 0x28], eax
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, eax
test eax, eax
jne 0x140001c63
mov r8, qword [rsp + 0x50]
lea rdx, str.Cannot_decode_home_path_in__ls
lea ecx, [rax + 0x6b]
call fcn.1400011d0
int3
inc edx
xor r9d, r9d
lea r8, [rsi + rdx*2]
mov word [r8], r9w
lea eax, [rdx - 1]
cmp word [rsi + rax*2], 0x5c
je 0x140001c8b
mov eax, 0x5c
mov word [r8], ax
lea eax, [rdx + 1]
mov word [rsi + rax*2], r9w
lea edx, [r14 - 1]
mov rcx, r15
lea r8, str.python.exe
call fcn.14000c7d0
test eax, eax
je 0x140001cb9
mov r8, qword [rsp + 0x50]
lea rdx, str.Cannot_create_executable_path_from__ls
mov ecx, 0x6b
call fcn.1400011d0
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140001cdc
mov r8, rsi
lea rdx, str.No_Python_at__ls
mov ecx, 0x67
call fcn.1400011d0
int3
lea r8, [0x1400260c0]
mov rdx, r12
mov rcx, rsi
call fcn.14000c7d0
mov rdx, rdi
lea rcx, str.__PYVENV_LAUNCHER__
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140001d11
lea rdx, str.Failed_to_set_launcher_environment
xor ecx, ecx
call fcn.1400011d0
int3
mov r8, r13
mov rcx, rsi
call fcn.140001650
int3
mov rcx, rdi
call fcn.14000d1d8
lea rdx, str.Failed_to_get_module_name
xor ecx, ecx
call fcn.1400011d0
int3
lea rdx, str.out_of_memory
mov ecx, 0x68
call fcn.1400011d0
int3