Function at 0x401600
Capabilities:
Accept command line arguments
Check os version
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10760
call fcn.00402690
mov eax, dword [0x413100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1074c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10760], eax
mov eax, dword [ebp + 0x10]
push 0x114
mov dword [ebp - 0x1075c], eax
lea eax, [ebp - 0x1073c]
push 0
push eax
call fcn.004026c0
add esp, 0xc
mov dword [ebp - 0x1073c], 0x114
lea eax, [ebp - 0x1073c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x10738]
cmp eax, 6
ja 0x40167e
jne 0x401675
cmp dword [ebp - 0x10734], 2
jae 0x40167e
mov byte [ebp - 0x1073d], 0
jmp 0x401685
mov byte [ebp - 0x1073d], 1
push ebx
push esi
push edi
push str.shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.PathRemoveFileSpecW
push esi
call ebx
push str.PathCanonicalizeW
push esi
mov edi, eax
call ebx
mov dword [ebp - 0x10744], eax
lea eax, [ebp - 0x414]
push 0x104
push eax
push dword [ebp - 0x1074c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x10750]
mov byte [ebp - 0x10748], 0
xor bl, bl
push eax
mov dword [ebp - 0x10758], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10754], eax
test eax, eax
je 0x4017c3
xor edi, edi
cmp dword [ebp - 0x10750], edi
jle 0x4017bc
mov edx, dword [eax + edi*4]
mov ecx, str._forceuid3d9
mov eax, edx
lea ecx, [ecx]
mov si, word [eax]
cmp si, word [ecx]
jne 0x401746
test si, si
je 0x401742
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x401746
add eax, 4
add ecx, 4
test si, si
jne 0x401720
xor eax, eax
jmp 0x40174b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x10748]
test eax, eax
movzx ecx, cl
mov esi, 1
cmove ecx, esi
mov eax, str._disabledxvk
mov dword [ebp - 0x10748], ecx
lea esp, [esp]
mov cx, word [edx]
cmp cx, word [eax]
jne 0x401796
test cx, cx
je 0x401792
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x401796
add edx, 4
add eax, 4
test cx, cx
jne 0x401770
xor eax, eax
jmp 0x40179b
sbb eax, eax
or eax, 1
test eax, eax
movzx ebx, bl
mov eax, dword [ebp - 0x10754]
cmove ebx, esi
inc edi
cmp edi, dword [ebp - 0x10750]
jl 0x401713
mov dword [ebp - 0x10758], ebx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push str.DXVK_CONFIG_FILE
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xcb
push 0
setne byte [ebp - 0x1073e]
call esi
push 0
call esi
push 0
push 0
push str.BLACKMESAUI_DISABLE_INTEGRATED_QT
call edi
call ebx
cmp eax, 0xcb
push 0
setne bh
call esi
call fcn.004013e0
cmp byte [ebp - 0x10758], 0
mov cl, al
je 0x40183a
test cl, cl
jne 0x40183a
xor cl, cl
cmp byte [ebp - 0x10748], 0
jne 0x401844
test al, al
jne 0x401844
xor bl, bl
jmp 0x401846
mov al, 1
test cl, cl
jne 0x401827
mov cl, al
jmp 0x401829
mov bl, 1
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test cl, cl
je 0x401991
push 0
push 0
push str.ENABLE_VK_LAYER_VALVE_steam_overlay_1
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xcb
jne 0x40187a
push 0x40e4b4
push str.ENABLE_VK_LAYER_VALVE_steam_overlay_1
call esi
push str.bin_thirdpartydxvk_windows_x86
lea eax, [ebp - 0x414]
push eax
push 0x40e4b8
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00402659
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x10744]
push 0x7fff
push 0x4141e0
call fcn.00402441
add esp, 8
test eax, eax
je 0x4018e0
push 0x40e25c
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
cmp byte [ebp - 0x1073e], 0
jne 0x401949
push str.bin_thirdpartydxvk_windows_x86
lea eax, [ebp - 0x414]
push eax
push str._ls_lsdxvk.conf
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00402659
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x10744]
lea eax, [ebp - 0x20c]
push eax
push str.DXVK_CONFIG_FILE
call esi
push str.bin_thirdpartydxvk_windows_x86
lea eax, [ebp - 0x414]
push eax
push str._ls_lsd3d9.dll
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00402659
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x10744]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x401997
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test bh, bh
jne 0x401ae7
push str.bin_thirdpartyqt_5.9.x_windows_x86_msvc2013_angle
lea eax, [ebp - 0x414]
push eax
push str._ls_ls_bin
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00402659
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x10744]
push 0x7fff
push 0x4141e0
call fcn.00402441
add esp, 8
test eax, eax
je 0x401a05
push 0x40e25c
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.bin_thirdpartyqt_5.9.x_windows_x86_msvc2013_angle
lea eax, [ebp - 0x414]
push eax
push str._ls_lspluginsplatforms
lea eax, [ebp - 0x1061c]
push 0x7fff
push eax
call fcn.00402659
add esp, 0x14
lea eax, [ebp - 0x1061c]
push eax
push str.QT_QPA_PLATFORM_PLUGIN_PATH
call esi
push str.bin_thirdpartyqt_5.9.x_windows_x86_msvc2013_angle
lea eax, [ebp - 0x414]
push eax
push str._ls_lsplugins
lea eax, [ebp - 0x1061c]
push 0x7fff
push eax
call fcn.00402659
add esp, 0x14
lea eax, [ebp - 0x1061c]
push eax
push str.QT_PLUGIN_PATH
call esi
push str.bin_thirdpartyqt_5.9.x_windows_x86_msvc2013_angle
lea eax, [ebp - 0x414]
push eax
push str._ls_lsqml
lea eax, [ebp - 0x1061c]
push 0x7fff
push eax
call fcn.00402659
add esp, 0x14
lea eax, [ebp - 0x1061c]
push eax
push str.QML2_IMPORT_PATH
call esi
push str.angle
push str.QT_OPENGL
call esi
test bl, bl
mov ecx, str.d3d11
mov eax, str.d3d9
cmove eax, ecx
push eax
push str.QT_ANGLE_PLATFORM
call esi
lea eax, [ebp - 0x414]
push eax
push str._ls_bin
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00402659
mov ebx, dword [ebp - 0x10744]
lea eax, [ebp - 0x61c]
add esp, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0x7fff
push 0x4141e0
call fcn.00402441
add esp, 8
test eax, eax
je 0x401b4a
push 0x40e25c
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0x7fff
push 0x4141e0
call fcn.00402441
add esp, 8
test eax, eax
je 0x401ba0
push 0x40e25c
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4141e0
call fcn.004023d5
add esp, 0xc
call fcn.00401510
cmp byte [ebp - 0x1073d], 0
je 0x401c2d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x80000003
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push str.SetProcessInformation
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401c2d
push 0xc
lea ecx, [ebp - 0x10628]
mov dword [ebp - 0x10628], 1
push ecx
push 4
push esi
mov dword [ebp - 0x10624], 5
mov dword [ebp - 0x10620], 0
call eax
lea eax, [ebp - 0x414]
push eax
push str._ls_binlauncher.dll
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00402659
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
call edi
mov ebx, eax
test esi, esi
je 0x401ccc
test ebx, ebx
jne 0x401ccc
push str.LauncherMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call edi
test esi, esi
je 0x401cc1
test eax, eax
jne 0x401cc1
push dword [ebp + 0x14]
push dword [ebp - 0x1075c]
push dword [ebp - 0x10760]
push dword [ebp - 0x1074c]
call esi
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402675
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.00401490
add esp, 4
jmp 0x401d33
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40000
push 0x40
call esi
push 0
push 0x20000
mov edi, eax
push edi
push 0x400
push ebx
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x40000
push 0x40
call esi
push edi
push str.Failed_to_load_the_Launcher_DLL:_n_n_ls
mov esi, eax
push 0x20000
push esi
call fcn.00402659
add esp, 0x10
push 0x10
push str.Launcher_Error
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402675
mov esp, ebp
pop ebp
ret 0x10