Function at 0x140004000
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x11f0]
mov eax, 0x12f0
call fcn.140004a10
sub rsp, rax
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rbp + 0x11c0], rax
mov r12, rcx
mov qword [rsp + 0x1320], rbx
mov qword [rsp + 0x12e0], rdi
lea rcx, [rbp + 0x1c0]
mov rdi, rdx
mov r8d, 0x800
xor edx, edx
call fcn.140005cc0
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftVisualStudio14.0VCRuntimesx64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r13d, r13d
mov bl, 1
test eax, eax
jne 0x140004243
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.Major
lea rax, [rsp + 0x30]
mov qword [rsp + 0x12e8], rsi
mov qword [rsp + 0x12d8], r14
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x12d0], r15
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea rdx, str.Minor
test eax, eax
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov r15d, r13d
cmove r15d, dword [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea rdx, [0x140014400]
test eax, eax
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov esi, r13d
cmove esi, dword [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea rdx, str.Rbld
test eax, eax
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov r14d, r13d
cmove r14d, dword [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, r13d
cmove ecx, dword [rsp + 0x30]
cmp r15d, 0xe
ja 0x1400041cf
jne 0x14000421c
cmp esi, 0x18
ja 0x1400041cf
jne 0x14000421c
cmp r14d, 0x6ddf
ja 0x1400041cf
jne 0x14000421c
cmp ecx, 4
jb 0x14000421c
lea rcx, str.msvcp140_2.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140004204
lea r8, str.msvcp140_2.dll
mov rdx, rdi
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14000421c
lea rdx, str.vcruntime140_1.dll
mov rcx, rdi
call fcn.1400044e0
test al, al
movzx ebx, bl
cmovne ebx, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x12d0]
mov r14, qword [rsp + 0x12d8]
mov rsi, qword [rsp + 0x12e8]
test bl, bl
je 0x14000425b
lea r8, str.Microsoft_Visual_C_Runtime_n
mov edx, 0x400
lea rcx, [rbp + 0x1c0]
call fcn.1400068e8
lea rcx, str.XINPUT1_3.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, qword [rsp + 0x1320]
test rax, rax
jne 0x1400042b0
lea r8, str.XINPUT1_3.DLL
mov rdx, rdi
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1400042b0
lea r8, str.DirectX_Runtime_n
mov edx, 0x400
lea rcx, [rbp + 0x1c0]
call fcn.1400068e8
mov rdi, qword [rsp + 0x12e0]
cmp word [rbp + 0x1c0], r13w
je 0x1400043f7
lea r8, [rbp + 0x1c0]
lea rdx, str.The_following_component_s__are_required_to_run_this_program:_n_n_s
lea rcx, [rbp + 0x9c0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, str.EngineExtrasRedisten_usUE4PrereqSetup_x64.exe
mov rdx, r12
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140004323
xor r9d, r9d
lea rdx, [rbp + 0x9c0]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x2329
jmp 0x1400043f9
lea r8, str._nWould_you_like_to_install_them_now_
mov edx, 0x400
lea rcx, [rbp + 0x9c0]
call fcn.1400068e8
mov r9d, 4
lea rdx, [rbp + 0x9c0]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x140004362
mov eax, 0x232a
jmp 0x1400043f9
xorps xmm0, xmm0
lea rax, [rbp - 0x50]
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x70
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x44], 0x40
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400043bc
mov eax, 0x232b
jmp 0x1400043f9
mov rcx, qword [rbp - 0x58]
mov edx, 0xffffffff
mov dword [rsp + 0x30], r13d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x58]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x30], r13d
je 0x1400043f7
mov eax, 0x232c
jmp 0x1400043f9
xor eax, eax
mov rcx, qword [rbp + 0x11c0]
xor rcx, rsp
call fcn.140004a80
add rsp, 0x12f0
pop r13
pop r12
pop rbp
ret