Function at 0x403860
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get file version info
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa24
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 4
push 0
push 2
mov dword [ebp - 0xa14], edx
mov dword [ebp - 0xa18], ecx
call fcn.00420c25
add esp, 4
push eax
call fcn.00422f27
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0x10
push 0x100
push 0x46fea0
push str.PYLAUNCH_DEBUG
call ebx
mov edi, eax
cmp edi, 0x100
jb 0x4038e1
lea ecx, [edi*2 + 2]
push ecx
call fcn.00424945
mov esi, eax
add esp, 4
test esi, esi
je 0x403eff
push edi
push esi
push str.PYLAUNCH_DEBUG
call ebx
jmp 0x4038ea
test edi, edi
je 0x4038ff
mov esi, 0x46fea0
cmp word [esi], 0
je 0x4038ff
push 2
call fcn.00420c25
add esp, 4
mov dword [0x456088], eax
push str.launcher_build:_32bit_n
call fcn.00401220
push str.launcher_executable:_Console_n
call fcn.00401220
add esp, 8
push 0x4700a0
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x403935
push eax
push str.SHGetFolderPath_failed:__X_n
jmp 0x403968
push 0xffffffffffffffff
push str.py.ini
push 0x104
push 0x4700a0
call fcn.00421a8a
add esp, 0x10
push 0x4700a0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4700a0
cmp eax, 0xffffffff
jne 0x40397a
push str.File__ls_non_existent_n
call fcn.00401220
add esp, 8
xor eax, eax
mov word [0x4700a0], ax
jmp 0x403987
push str.Using_local_configuration_file__ls_n
call fcn.00401220
add esp, 8
mov edi, 0x104
lea esp, [esp]
lea ebx, [edi + edi]
push ebx
call fcn.00424945
mov esi, eax
add esp, 4
test esi, esi
je 0x403ef3
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403f5c
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4039d6
call edi
cmp eax, 0x7a
jne 0x4039d6
push esi
call fcn.00422fa9
add esp, 4
mov edi, ebx
jmp 0x403990
lea eax, [ebp - 0xa20]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0xa20], eax
test eax, eax
jne 0x403a4b
call edi
push 0
push 0x400
lea ecx, [ebp - 0xa0c]
push ecx
push 0x400
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0xa0c]
push eax
push str.GetFileVersionInfoSize_failed:__ls_n
call fcn.00401220
add esp, 8
mov ebx, dword [ebp - 0xa1c]
push esi
push 0x104
push 0x455e80
call fcn.00421c78
add esp, 0xc
test eax, eax
jne 0x403f0b
jmp 0x403b07
push eax
call fcn.00424945
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403a25
push ebx
push dword [ebp - 0xa20]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov dword [ebp - 0xa10], eax
test eax, eax
jne 0x403a95
call edi
push eax
push str.GetFileVersionInfo_failed:__X_n
call fcn.00401220
add esp, 8
push ebx
call fcn.00422fa9
mov ebx, dword [ebp - 0xa10]
add esp, 4
jmp 0x403a2b
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0xa1c]
push eax
push 0x44fba4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov dword [ebp - 0xa10], eax
test eax, eax
jne 0x403add
call edi
push eax
push str.VerQueryValue_failed:__X_n
call fcn.00401220
add esp, 8
push ebx
call fcn.00422fa9
mov ebx, dword [ebp - 0xa10]
add esp, 4
jmp 0x403a2b
mov ecx, dword [ebp - 0xa1c]
push ebx
mov eax, dword [ecx + 8]
mov dword [0x4702a8], eax
mov eax, dword [ecx + 0xc]
mov dword [0x4702ac], eax
call fcn.00422fa9
mov ebx, dword [ebp - 0xa10]
add esp, 4
jmp 0x403a2b
push 0x5c
push 0x455e80
call fcn.004052d0
add esp, 8
test eax, eax
jne 0x403b26
push 0x455e80
push str.GetModuleFileNameW_returned_value_has_no_backslash:__ls_n
jmp 0x403b5c
push str.py.ini
xor ecx, ecx
push 0x104
push 0x455e80
mov word [eax], cx
call fcn.00421d4e
add esp, 0xc
push 0x455e80
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x455e80
cmp eax, 0xffffffff
jne 0x403b6e
push str.File__ls_non_existent_n
call fcn.00401220
add esp, 8
xor eax, eax
mov word [0x455e80], ax
jmp 0x403b7b
push str.Using_global_configuration_file__ls_n
call fcn.00401220
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
movzx edx, word [ecx]
cmp edx, 0x22
jne 0x403b8e
add ecx, 2
xor eax, eax
cmp edx, 0x22
sete al
lea eax, [eax*2 + 0x20]
push eax
push ecx
call fcn.00404f9e
add esp, 8
test eax, eax
jne 0x403bb2
mov edi, 0x451090
jmp 0x403bde
lea edi, [eax + 2]
movzx eax, word [edi]
test ax, ax
je 0x403bde
mov ecx, eax
nop
movzx eax, cx
push eax
call fcn.00424290
add esp, 4
test eax, eax
je 0x403bde
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x403bc0
push edi
push str.Called_with_command_line:__ls_n
call fcn.00401220
add esp, 8
push 0
push str.__PYVENV_LAUNCHER__
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 0xa18]
cmp eax, 1
jle 0x403ec8
mov esi, dword [ebp - 0xa14]
mov esi, dword [esi + 4]
cmp eax, 2
jne 0x403c5b
push eax
push 0x451b38
push esi
call fcn.0042490b
add esp, 0xc
test eax, eax
je 0x403c3d
push 6
push str.__list
push esi
call fcn.0042490b
add esp, 0xc
test eax, eax
jne 0x403c5b
mov ecx, dword [ebp - 0xa14]
call fcn.00403600
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404058
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x403cbf
cmp word [esi], 0x2d
jne 0x403cbf
lea ebx, [esi + 2]
mov ecx, ebx
call fcn.00402c30
test eax, eax
je 0x403cbf
xor edx, edx
mov ecx, ebx
call fcn.00402010
mov dword [ebp - 0xa10], eax
test eax, eax
je 0x403f17
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x403c90
sub esi, ecx
sar esi, 1
lea ecx, [edi + esi*2]
call fcn.004011e0
mov edi, eax
mov eax, dword [ebp - 0xa10]
lea ecx, [eax + 0x14]
test ecx, ecx
jne 0x403f48
jmp 0x403edd
mov ecx, 1
mov eax, dword [ebp - 0xa14]
lea ebx, [eax + ecx*4]
mov eax, dword [ebx]
cmp word [eax], 0x2d
jne 0x403ce2
mov eax, dword [ebp - 0xa18]
inc ecx
cmp ecx, eax
jl 0x403cc4
jmp 0x403d19
cmp word [0x455e80], 0
je 0x403cf6
mov ecx, 0x455e80
call fcn.004027f0
cmp word [0x4700a0], 0
je 0x403d0a
mov ecx, 0x4700a0
call fcn.004027f0
mov edx, edi
mov ecx, ebx
call fcn.00402e60
mov eax, dword [ebp - 0xa18]
cmp eax, 2
jne 0x403ec8
push 0x451c18
push esi
call fcn.00420dc4
add esp, 8
test eax, eax
je 0x403d4a
push str.__help
push esi
call fcn.00420dc4
add esp, 8
test eax, eax
jne 0x403e80
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [0x4702a8]
mov eax, dword [0x4702ac]
test ecx, ecx
jne 0x403d98
test eax, eax
jne 0x403d98
push 0xffffffffffffffff
push 0x451094
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00424a1b
add esp, 0x10
jmp 0x403dcb
movzx eax, ax
push eax
movzx eax, word [0x4702ae]
push eax
movzx eax, cx
push eax
movzx eax, word [0x4702aa]
push eax
push str._d._d._d._d
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004011a0
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push str.Python_Launcher_for_Windows_Version__ls_n_n
push 1
call fcn.00420c25
add esp, 4
push eax
call fcn.004010a0
mov eax, dword [ebp - 0xa14]
add esp, 0xc
push dword [eax]
push str.usage:_n_ls__launcher_args___python_args__script__script_args__n_n
push 1
call fcn.00420c25
add esp, 4
push eax
call fcn.004010a0
push 1
call fcn.00420c25
push eax
push str.Launcher_arguments:_n_n_2_____:_Launch_the_latest_Python_2.x_version_n_3_____:_Launch_the_latest_Python_3.x_version_n_X.Y___:_Launch_the_specified_Python_version_n
call fcn.00421bc6
add esp, 0x18
cmp dword [ebp - 0xa10], 0
je 0x403e3a
push 1
call fcn.00420c25
push eax
push str._____The_above_all_default_to_64_bit_if_a_matching_64_bit_python_is_present._n_X.Y_32:_Launch_the_specified_32bit_Python_version_n_X_32__:_Launch_the_latest_32bit_Python_X_version_n_X.Y_64:_Launch_the_specified_64bit_Python_version_n_X_64__:_Launch_the_latest_64bit_Python_X_version
call fcn.00421bc6
add esp, 0xc
push 1
call fcn.00420c25
push eax
push str._n_0____list_______:_List_the_available_pythons
call fcn.00421bc6
push 1
call fcn.00420c25
push eax
push str._n_0p___list_paths_:_List_with_paths
call fcn.00421bc6
push 1
call fcn.00420c25
push eax
push str._n_nThe_following_help_text_is_from_Python:_n_n
call fcn.00421bc6
push 1
call fcn.00420c25
push eax
call fcn.004214ae
add esp, 0x2c
push 0x451b38
push esi
call fcn.00420dc4
add esp, 8
test eax, eax
je 0x403edd
push str.__list
push esi
call fcn.00420dc4
add esp, 8
test eax, eax
je 0x403edd
push 0x451690
push esi
call fcn.00420dc4
add esp, 8
test eax, eax
je 0x403edd
push str.__list_paths
push esi
call fcn.00420dc4
add esp, 8
test eax, eax
je 0x403edd
xor edx, edx
mov ecx, 0x451090
call fcn.00402010
test eax, eax
je 0x403f50
jmp 0x403caf
mov ecx, dword [ebp - 4]
mov eax, 0x67
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404058
mov esp, ebp
pop ebp
ret
push str.out_of_memory
push 0x68
call fcn.00401270
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401270
push str.Failed_to_copy_module_name
push 0x68
call fcn.00401270
push ebx
push str.Python__ls_not_found__n
push 1
call fcn.00420c25
add esp, 4
push eax
call fcn.004010a0
mov ecx, dword [ebp - 0xa14]
add esp, 0xc
call fcn.00403600
push ebx
push str.Requested_Python_version___ls__not_installed__use__0_for_available_pythons
push 0x67
call fcn.00401270
push edi
xor edx, edx
call fcn.00402380
push str.Cant_find_a_default_Python.
push 0x67
call fcn.00401270
push esi
call fcn.00422fa9
add esp, 4
push str.Failed_to_get_module_name
push 0
call fcn.00401270
int3