Function at 0x140001130
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1838]
mov eax, 0x1938
call fcn.140001780
sub rsp, rax
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rbp + 0x1820], rax
mov r15, r8
lea rdx, [rbp + 0x610]
mov r8d, 0x208
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp + 0x610]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, 0xc9
mov rcx, rdi
call fcn.140001000
mov rsi, rax
test rax, rax
jne 0x1400011c4
xor r9d, r9d
lea rdx, str.This_program_is_used_for_packaged_games_and_is_not_meant_to_be_run_directly.
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x2328
jmp 0x140001688
mov qword [rsp + 0x1968], rbx
mov qword [rsp + 0x1978], r12
mov r12, 0xffffffffffffffff
mov rax, r12
mov qword [rsp + 0x1930], r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400011e6
lea rdx, [rbp - 0x20]
mov rcx, r12
nop word [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x140001200
add rax, 0x14
add rcx, rax
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400016d8
mov r9, rsi
lea r8, [rbp - 0x20]
lea rdx, str._s_s
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rbx
lea rcx, [rbp + 0x400]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
mov rcx, rbx
call fcn.1400016e0
lea rcx, [rbp + 0x400]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, 0xca
mov rcx, rdi
call fcn.140001000
mov r14, rax
mov rcx, r12
nop word [rax + rax]
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x140001280
mov rax, r12
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x140001290
add rcx, rax
mov rax, r12
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400012a1
add rcx, rax
lea rdx, [rbp - 0x20]
mov rax, r12
nop word [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400012c0
lea rbx, [rax + 0x14]
mov eax, 2
add rbx, rcx
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.1400016d8
mov qword [rsp + 0x30], r15
lea r9, [rbp - 0x20]
mov qword [rsp + 0x28], r14
lea r8, str.__s_s___s__s
mov rdx, rbx
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdi, rax
call fcn.1400010d0
mov rcx, r14
call fcn.1400016e0
mov rcx, rsi
call fcn.1400016e0
xor edx, edx
lea rcx, [rbp + 0x820]
mov r8d, 0x800
call fcn.140002d10
lea rcx, str.XINPUT1_3.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, qword [rsp + 0x1930]
test rax, rax
jne 0x14000137a
lea r8, str.XINPUT1_3.DLL
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400013b9
lea rcx, str.X3DAudio1_7.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1400013d1
lea r8, str.X3DAudio1_7.dll
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1400013d1
lea r8, str.DirectX_Runtime_n
mov edx, 0x400
lea rcx, [rbp + 0x820]
call fcn.140003938
xor ebx, ebx
cmp word [rbp + 0x820], bx
je 0x140001542
lea r8, [rbp + 0x820]
lea rdx, str.The_following_component_s__are_required_to_run_this_program:_n_n_s
lea rcx, [rbp + 0x1020]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, str.EngineExtrasRedisten_usUE4PrereqSetup_x64.exe
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000144e
xor r9d, r9d
lea rdx, [rbp + 0x1020]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
mov ebx, 0x2329
call fcn.1400016e0
mov eax, ebx
jmp 0x140001678
lea r8, str._nWould_you_like_to_install_them_now_
mov edx, 0x400
lea rcx, [rbp + 0x1020]
call fcn.140003938
mov r9d, 4
lea rdx, [rbp + 0x1020]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x140001497
mov rcx, rdi
mov ebx, 0x232a
call fcn.1400016e0
mov eax, ebx
jmp 0x140001678
xorps xmm0, xmm0
lea rax, [rbp + 0x1f0]
movups xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x70
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x74], 0x40
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x78], rax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400014fc
mov rcx, rdi
mov ebx, 0x232b
call fcn.1400016e0
mov eax, ebx
jmp 0x140001678
mov rcx, qword [rbp - 0x28]
mov edx, 0xffffffff
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x28]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], ebx
je 0x140001542
mov ebx, 0x232c
mov rcx, rdi
call fcn.1400016e0
mov eax, ebx
jmp 0x140001678
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
xor r9d, r9d
mov dword [rbp - 0x2c], eax
xor r8d, r8d
mov qword [rsp + 0x68], rax
mov rdx, rdi
lea rax, [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140001624
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r12
nop
inc rcx
cmp word [rdi + rcx*2], bx
jne 0x1400015c0
add rcx, 0x32
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400016d8
mov r9d, esi
lea rdx, str.Couldnt_start:_n_s_nCreateProcess___returned__x.
mov r8, rdi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbx
call fcn.1400016e0
mov rcx, rdi
mov ebx, 0x232d
call fcn.1400016e0
mov eax, ebx
jmp 0x140001678
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x232e
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x50]
test ebx, ebx
jne 0x140001533
mov rcx, rdi
call fcn.1400016e0
xor eax, eax
mov rbx, qword [rsp + 0x1968]
mov r12, qword [rsp + 0x1978]
mov rcx, qword [rbp + 0x1820]
xor rcx, rsp
call fcn.1400017e0
add rsp, 0x1938
pop r15
pop rdi
pop rsi
pop rbp
ret