Function at 0x401600
Capabilities:
Accept command line arguments
Encode data using xor
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1064c
call fcn.00402750
mov eax, dword [0x433100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10638], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1064c], eax
mov eax, dword [ebp + 0x10]
push 0xfffc
mov dword [ebp - 0x10648], eax
lea eax, [ebp - 0x10618]
push 0
push eax
mov dword [ebp - 0x1061c], 0
call fcn.00402780
add esp, 0xc
xor ecx, ecx
jmp 0x401660
mov eax, dword [ebp + ecx*4 - 0x1061c]
not eax
xor eax, dword [ecx*4 + 0x413010]
xor eax, ecx
xor eax, 0xff
mov dword [ecx*4 + 0x413010], eax
mov eax, dword [ecx*4 + 0x413014]
not eax
xor eax, ecx
xor eax, dword [ebp + ecx*4 - 0x10618]
xor eax, 0xff00
mov dword [ebp + ecx*4 - 0x10618], eax
mov eax, dword [ebp + ecx*4 - 0x10614]
not eax
xor eax, dword [ecx*4 + 0x413018]
xor eax, ecx
xor eax, 0xff0000
mov dword [ecx*4 + 0x413018], eax
mov eax, dword [ecx*4 + 0x41301c]
not eax
xor eax, ecx
xor eax, dword [ebp + ecx*4 - 0x10610]
xor eax, 0xff000000
mov dword [ebp + ecx*4 - 0x10610], eax
add ecx, 4
cmp ecx, 0x4000
jb 0x401660
xor edx, edx
lea esp, [esp]
mov eax, dword [edx*4 + 0x423010]
mov ecx, edx
not eax
not ecx
or eax, ecx
or eax, 0xff
xor dword [ebp + edx*4 - 0x1061c], eax
mov eax, dword [ebp + edx*4 - 0x10618]
not eax
or eax, ecx
or eax, 0xff00
xor dword [edx*4 + 0x423014], eax
mov eax, dword [edx*4 + 0x423018]
not eax
or eax, ecx
or eax, 0xff0000
xor dword [ebp + edx*4 - 0x10614], eax
mov eax, dword [ebp + edx*4 - 0x10610]
not eax
or eax, ecx
or eax, 0xff000000
xor dword [edx*4 + 0x42301c], eax
add edx, 4
cmp edx, 0x4000
jb 0x4016f0
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 - 0x10630], eax
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 ebx
test eax, eax
je 0x4017eb
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
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x10638]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x1063c]
xor bl, bl
push eax
mov dword [ebp - 0x10644], ebx
mov byte [ebp - 0x10634], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10640], eax
test eax, eax
je 0x401903
xor edi, edi
cmp dword [ebp - 0x1063c], edi
jle 0x4018fc
lea ebx, [ebx]
mov edx, dword [eax + edi*4]
mov ecx, str._disabledxvk
mov eax, edx
lea ebx, [ebx]
mov si, word [eax]
cmp si, word [ecx]
jne 0x401886
test si, si
je 0x401882
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x401886
add eax, 4
add ecx, 4
test si, si
jne 0x401860
xor eax, eax
jmp 0x40188b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x10634]
test eax, eax
movzx ecx, cl
mov esi, 1
cmove ecx, esi
mov eax, str._forceuid3d9
mov dword [ebp - 0x10634], ecx
lea esp, [esp]
mov cx, word [edx]
cmp cx, word [eax]
jne 0x4018d6
test cx, cx
je 0x4018d2
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x4018d6
add edx, 4
add eax, 4
test cx, cx
jne 0x4018b0
xor eax, eax
jmp 0x4018db
sbb eax, eax
or eax, 1
test eax, eax
movzx ebx, bl
mov eax, dword [ebp - 0x10640]
cmove ebx, esi
inc edi
cmp edi, dword [ebp - 0x1063c]
jl 0x401850
mov dword [ebp - 0x10644], ebx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push str.DXVK_CONFIG_FILE
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xcb
push 0
setne byte [ebp - 0x1062a]
call esi
push 0
call esi
push 0
push 0
push str.BLACKMESAUI_DISABLE_INTEGRATED_QT
call ebx
call edi
cmp eax, 0xcb
push 0
setne byte [ebp - 0x10629]
call esi
call fcn.004013e0
cmp byte [ebp - 0x10634], 0
mov cl, al
je 0x40197e
test cl, cl
jne 0x40197e
xor bl, bl
cmp byte [ebp - 0x10644], 0
jne 0x401988
test al, al
jne 0x401988
xor bh, bh
jmp 0x40198a
mov al, 1
test cl, cl
jne 0x40196b
mov bl, al
jmp 0x40196d
mov bh, 1
cmp byte [ebp - 0x10629], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jne 0x401ae5
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.0040249e
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x10630]
push 0x7fff
push 0x4341e0
call fcn.00402526
add esp, 8
test eax, eax
je 0x401a03
push 0x40e25c
push 0x7fff
push 0x4341e0
call fcn.004024ba
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4341e0
call fcn.004024ba
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.0040249e
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.0040249e
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.0040249e
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 bh, bh
mov ecx, str.d3d11
mov eax, str.d3d9
cmove eax, ecx
push eax
push str.QT_ANGLE_PLATFORM
call esi
test bl, bl
je 0x401c22
push 0
push 0
push str.ENABLE_VK_LAYER_VALVE_steam_overlay_1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call edi
cmp eax, 0xcb
jne 0x401b11
push 0x40e64c
push str.ENABLE_VK_LAYER_VALVE_steam_overlay_1
call esi
push str.bin_thirdpartydxvk_windows_x86
lea eax, [ebp - 0x414]
push eax
push 0x40e650
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040249e
mov ebx, dword [ebp - 0x10630]
lea eax, [ebp - 0x61c]
add esp, 0x14
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0x7fff
push 0x4341e0
call fcn.00402526
add esp, 8
test eax, eax
je 0x401b79
push 0x40e25c
push 0x7fff
push 0x4341e0
call fcn.004024ba
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4341e0
call fcn.004024ba
add esp, 0xc
cmp byte [ebp - 0x1062a], 0
jne 0x401bde
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.0040249e
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
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.0040249e
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x401c28
mov ebx, dword [ebp - 0x10630]
lea eax, [ebp - 0x414]
push eax
push str._ls_bin
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040249e
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0x7fff
push 0x4341e0
call fcn.00402526
add esp, 8
test eax, eax
je 0x401c85
push 0x40e25c
push 0x7fff
push 0x4341e0
call fcn.004024ba
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4341e0
call fcn.004024ba
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0x7fff
push 0x4341e0
call fcn.00402526
add esp, 8
test eax, eax
je 0x401cdb
push 0x40e25c
push 0x7fff
push 0x4341e0
call fcn.004024ba
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x7fff
push 0x4341e0
call fcn.004024ba
call fcn.00401510
lea eax, [ebp - 0x414]
push eax
push str._ls_binlauncher.dll
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040249e
add esp, 0x1c
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 0x401d95
test ebx, ebx
jne 0x401d95
push str.LauncherMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call edi
test esi, esi
je 0x401d8a
test eax, eax
jne 0x401d8a
push dword [ebp + 0x14]
push dword [ebp - 0x10648]
push dword [ebp - 0x1064c]
push dword [ebp - 0x10638]
call esi
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040273e
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.00401490
add esp, 4
jmp 0x401dfc
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.0040249e
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.0040273e
mov esp, ebp
pop ebp
ret 0x10