Function at 0x140005990
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov r15, rcx
mov qword [rbp + 0xe0], rcx
xor r12d, r12d
movups xmm0, xmmword [str.EpicUnrealEngineLauncherLauncherInstalled.dat]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [0x14001ecc8]
movups xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [0x14001ecd8]
movups xmmword [rsp + 0x78], xmm0
movzx eax, byte [0x14001ece8]
mov byte [rbp - 0x78], al
mov byte [rbp + 0xf0], r12b
xor edx, edx
lea rcx, [rbp + 0xf8]
call fcn.14000f000
nop
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [rbp + 0x210]
mov rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140005a43
lea rdx, [rsp + 0x58]
inc rax
cmp byte [rdx + rax], 0
jne 0x140005a51
inc rax
add rcx, rax
call fcn.14001bfd8
mov rbx, rax
lea rcx, [rbp + 0x210]
lea rax, [rbp + 0x210]
mov rdx, rbx
sub rdx, rax
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140005a80
lea rcx, [rbx - 1]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140005a92
lea r8, [rsp + 0x58]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140005ab0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.14000c3e0
nop
mov qword [rbp - 0x38], r12
lea rax, [rbp + 0x100]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x148]
mov qword [rsp + 0x38], rax
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.140012d30
nop
lea r8, [rbp + 0xf0]
mov rcx, rax
call fcn.14000e100
nop
lea rcx, [rbp + 0x38]
call fcn.14000d2e0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140005b51
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rdx, str.InstallationList
lea rcx, [rbp + 0xf0]
call fcn.140012a00
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14000c8d0
nop
mov esi, r12d
nop word [rax + rax]
movzx edx, byte [rbp + 0xe0]
mov ecx, edx
test dl, dl
je 0x140005bbf
sub ecx, 1
je 0x140005bb2
cmp ecx, 1
je 0x140005b9e
mov ecx, 1
jmp 0x140005bc2
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 4
jmp 0x140005bc2
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rax + 8]
jmp 0x140005bc2
mov rcx, r12
movsxd r14, esi
cmp r14, rcx
jae 0x140005dd2
mov rdx, r14
lea rcx, [rbp + 0xe0]
call fcn.14000c7a0
lea rdx, str.AppName
mov rcx, rax
call fcn.140012a00
mov rdi, rax
mov byte [rsp + 0x30], 3
mov ecx, 0x20
call fcn.14001bc84
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov r8d, 8
lea rdx, str.Fortnite
mov rcx, rax
call fcn.140013380
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140016ac0
movzx ebx, al
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14000eb30
nop
test bl, bl
jne 0x140005c54
inc esi
jmp 0x140005b80
mov rdx, r14
lea rcx, [rbp + 0xe0]
call fcn.14000c7a0
lea rdx, str.InstallLocation
mov rcx, rax
call fcn.140012a00
cmp byte [rax], 3
jne 0x140005ef8
mov rdi, qword [rax + 8]
mov r9, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140005c8c
mov r9, qword [rdi]
mov rdi, qword [rdi + 0x10]
mov rax, qword [0x1400280f0]
cmp rdi, rax
ja 0x140005cca
lea rbx, [0x1400280d8]
cmp rax, 0xf
cmova rbx, qword [0x1400280d8]
mov qword [0x1400280e8], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x140005cd9
mov rdx, rdi
lea rcx, [0x1400280d8]
call fcn.140015a60
lea rdx, [0x1400280d8]
cmp qword [0x1400280f0], 0xf
cmova rdx, qword [0x1400280d8]
mov r8d, 0xf0
lea rcx, [0x140028e60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rdx, [0x1400280d8]
mov rcx, r15
call fcn.14000d070
nop
movzx edx, byte [rbp + 0xe0]
lea rcx, [rbp + 0xe8]
call fcn.14000eb30
nop
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x100], rax
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xfc], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x110], rax
cmp qword [rbp + 0x190], 0
je 0x140005daa
mov rax, qword [rbp + 0x128]
lea rcx, [rbp + 0x180]
cmp qword [rax], rcx
jne 0x140005daa
mov rdx, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x198]
mov qword [rax], rcx
mov rax, qword [rbp + 0x148]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x160]
mov dword [rax], edx
cmp byte [rbp + 0x18c], 0
je 0x140005dbf
lea rcx, [rbp + 0x110]
call fcn.14000e930
lea rcx, [rbp + 0x110]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
jmp 0x140005e9c
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
lea rcx, [rbp + 0xe8]
call fcn.14000eb30
nop
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x100], rax
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xfc], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x110], rax
cmp qword [rbp + 0x190], 0
je 0x140005e79
mov rax, qword [rbp + 0x128]
lea rcx, [rbp + 0x180]
cmp qword [rax], rcx
jne 0x140005e79
mov rdx, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x198]
mov qword [rax], rcx
mov rax, qword [rbp + 0x148]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x160]
mov dword [rax], edx
cmp byte [rbp + 0x18c], 0
je 0x140005e8e
lea rcx, [rbp + 0x110]
call fcn.14000e930
lea rcx, [rbp + 0x110]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x118]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp + 0xf0]
lea rcx, [rbp + 0xf8]
call fcn.14000eb30
mov rax, r15
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14001b9c0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, rax
call fcn.14000f1c0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000d030
nop
mov r8, rax
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x30]
call fcn.140012500
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x70]
call fcn.140002830
lea rdx, [0x1400254f8]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3