Function at 0x18004e2e0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, r8
mov r14, rdx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.18008a090
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x29]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.MacromedFlashVersion.dll
lea rcx, [rsp + 0x48]
call fcn.180005ef8
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.180005ef8
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.180056c70
nop
lea rcx, [rbp - 0x80]
call fcn.180005bf4
nop
lea rcx, [rsp + 0x48]
call fcn.180005bf4
lea rcx, [rbp - 0x60]
call fcn.180055740
mov byte [rbx], al
test al, al
jne 0x18004e3ab
xor dil, dil
jmp 0x18004e598
mov ecx, 8
call fcn.180086a58
mov rbx, rax
mov qword [rsp + 0x70], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x60]
call fcn.180005be4
mov rcx, rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r12d, 1
mov r8d, r12d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x18004e466
lea rcx, [rbp - 0x80]
call fcn.180005bfc
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.18006a450
test al, al
je 0x18004e45d
lea rcx, [rbp - 0x80]
call fcn.180005be4
mov rcx, rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
lea rcx, [rbp - 0x80]
call fcn.180005bf4
mov rcx, qword [rbx]
xor dil, dil
cmp rcx, 0xffffffffffffffff
je 0x18004e570
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18004e496
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18004e556
mov ecx, dword [rsp + 0x70]
shl rcx, 0x20
add rcx, rsi
cmp rcx, 8
jb 0x18004e556
add rcx, 0xfffffffffffffff8
cmp qword [rbx], 0xffffffffffffffff
je 0x18004e556
mov qword [rsp + 0x70], rcx
xor r9d, r9d
lea r8, [rsp + 0x74]
mov edx, ecx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
jne 0x18004e4e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18004e556
mov dword [rsp + 0x6c], r15d
cmp qword [rbx], 0xffffffffffffffff
je 0x18004e556
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
mov r8d, 4
lea rdx, [rsp + 0x6c]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004e556
cmp dword [rsp + 0x6c], 0xff2144
jne 0x18004e556
mov dword [rsp + 0x68], r15d
test r14, r14
je 0x18004e556
cmp qword [rbx], 0xffffffffffffffff
je 0x18004e556
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
mov r8d, 4
mov rdx, r14
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx edi, dil
test eax, eax
cmovne edi, r12d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18004e570
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18004e570
mov qword [rbx], 0xffffffffffffffff
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18004e586
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov edx, 8
mov rcx, rbx
call fcn.1800862a4
mov qword [rsp + 0x78], r15
lea rcx, [rbp - 0x60]
call fcn.180005bf4
movzx eax, dil
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.180086280
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret