Function at 0x518420
Capabilities:
Get common file path
Get file size
Get startup folder
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x58deaf
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp + 0x238], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x244]
mov esi, dword [ebp + 0x248]
push 0x208
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, str.MacromedFlashVersion.dll
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5184b7
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashVersion.dll
lea ecx, [ebp - 0x40]
call fcn.004047a0
mov dword [ebp - 4], 0
xor eax, eax
lea ecx, [ebp + 0x30]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518503
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004047a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp]
call fcn.00433480
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004046e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004046e0
lea ecx, [ebp]
call fcn.00432270
mov byte [esi], al
test al, al
jne 0x518562
xor bl, bl
jmp 0x5186f0
push 4
mov dword [ebp + 0x2c], 0
call fcn.0054bee4
add esp, 4
mov dword [ebp + 0x24], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 6
lea eax, [ebp]
push 0x80
push 3
push 1
push SysReAllocString
push eax
lea ecx, [ebp + 0x2c]
call fcn.004556c0
mov esi, dword [ebp + 0x2c]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x5185bf
xor bl, bl
jmp 0x5186c2
xor bl, bl
test esi, esi
je 0x5186bc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5186a8
lea ecx, [ebp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x24], eax
cmp eax, 0xffffffff
jne 0x5185f7
call edi
test eax, eax
jne 0x5186a2
mov ecx, dword [ebp + 0x18]
xor eax, eax
add eax, dword [ebp + 0x24]
adc ecx, 0
jne 0x51860d
cmp eax, 8
jb 0x5186a2
sub eax, 8
sbb ecx, 0
cmp dword [esi], 0xffffffff
je 0x5186a2
mov dword [ebp + 0x24], ecx
lea ecx, [ebp + 0x24]
push 0
push ecx
push eax
mov dword [ebp + 0x20], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 0x20], eax
cmp eax, 0xffffffff
jne 0x51863f
call edi
test eax, eax
jne 0x5186a2
mov dword [ebp + 0x1c], 0
cmp dword [esi], 0xffffffff
je 0x5186a2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 0x28]
push 0
push eax
push 4
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x28], 0
push eax
push dword [esi]
call edi
test eax, eax
je 0x5186a2
cmp dword [ebp + 0x1c], 0xff2144
jne 0x5186a2
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x28], 0
test eax, eax
je 0x5186a2
cmp dword [esi], 0xffffffff
je 0x5186a2
push 0
lea ecx, [ebp + 0x28]
push ecx
push 4
push eax
push dword [esi]
call edi
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5186bc
push eax
call ecx
test eax, eax
je 0x5186bc
mov dword [esi], 0xffffffff
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
test esi, esi
je 0x5186f0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5186de
test eax, eax
je 0x5186de
push eax
call ecx
mov dword [esi], 0
push 4
push esi
call fcn.0054bf14
add esp, 8
mov dword [ebp + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004046e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.0054bed3
lea esp, [ebp + 0x23c]
pop ebp
ret 8