Function at 0x495410
Capabilities:
Check for peb beingdebugged flag
Get common file path
Get file size
Get startup folder
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e004a
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [esp + 0x298]
mov esi, dword [esp + 0x29c]
mov dword [esp + 0x18], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
call fcn.004b5340
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, str.MacromedFlashVersion.dll
mov dword [esp + 0x2c], 0
xor eax, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4954c0
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashVersion.dll
lea ecx, [esp + 0x24]
call fcn.00402ad0
mov dword [esp + 0x290], 0
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp word [esp + 0x7c], ax
jne 0x49551b
xor ecx, ecx
jmp 0x495531
lea ecx, [esp + 0x7c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495522
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402ad0
mov byte [esp + 0x290], 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040d9b0
add esp, 0xc
mov byte [esp + 0x290], 3
cmp dword [esp + 0x48], 8
jb 0x49557d
push dword [esp + 0x34]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x290], 4
cmp dword [esp + 0x30], 8
jb 0x4955af
push dword [esp + 0x1c]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
lea ecx, [esp + 0x64]
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.004102a0
mov byte [esi], al
test al, al
jne 0x4955dc
xor bl, bl
jmp 0x49579b
push 4
call fcn.004b1806
add esp, 4
mov dword [esp + 0x54], eax
mov byte [esp + 0x290], 5
test eax, eax
je 0x495604
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x495606
xor eax, eax
mov byte [esp + 0x290], 4
mov dword [esp + 0x50], eax
mov byte [esp + 0x290], 6
lea eax, [esp + 0x64]
push 0x80
push 3
push 1
push 0x80000000
push eax
lea ecx, [esp + 0x64]
call fcn.0041cf90
mov esi, dword [esp + 0x50]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x49564b
xor bl, bl
jmp 0x49576a
xor bl, bl
test esi, esi
je 0x495764
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x495750
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x495683
call edi
test eax, eax
jne 0x49574a
mov ecx, dword [esp + 0x54]
xor eax, eax
add eax, ebp
adc ecx, 0
jne 0x495699
cmp eax, 8
jb 0x49574a
sub eax, 8
sbb ecx, 0
cmp dword [esi], 0xffffffff
je 0x49574a
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x58]
push 0
push ecx
push eax
mov dword [esp + 0x60], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x54], eax
cmp eax, 0xffffffff
jne 0x4956cf
call edi
test eax, eax
jne 0x49574a
mov dword [esp + 0x60], 0
mov dword [esp + 0x4c], 0
cmp dword [esi], 0xffffffff
je 0x49574a
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x4c]
push 0
push eax
push 4
lea eax, [esp + 0x6c]
mov dword [esp + 0x58], 0
push eax
push dword [esi]
call edi
test eax, eax
je 0x49574a
cmp dword [esp + 0x60], 0xff2144
jne 0x49574a
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x49574a
cmp dword [esi], 0xffffffff
je 0x49574a
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
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 0x495764
push eax
call ecx
test eax, eax
je 0x495764
mov dword [esi], 0xffffffff
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x290], 4
test esi, esi
je 0x49579b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49578a
test eax, eax
je 0x49578a
push eax
call ecx
mov dword [esi], 0
push esi
call fcn.004b17b6
add esp, 4
mov dword [esp + 0x50], 0
mov dword [esp + 0x290], 0xffffffff
cmp dword [esp + 0x78], 8
jb 0x4957b9
push dword [esp + 0x64]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov word [esp + 0x64], ax
mov al, bl
mov dword [esp + 0x74], 0
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x280
ret 8