Function at 0x495ea7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6317
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x30
mov edi, ecx
mov dword [esp + 0x14], eax
call fcn.004a5f95
pop ecx
push 0x30
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.004a63e0
add esp, 0xc
push 0x1c
lea eax, [esi + 4]
push ebx
push eax
call fcn.004a63e0
add esp, 0xc
push dword [esp + 0x10]
lea eax, [edi + 0x20]
mov dword [esi], eax
mov dword [esi + 0x18], ebx
call fcn.004aae51
or dword [esi + 0x28], 0xffffffff
pop ecx
lea ecx, [esi + 0x20]
push ecx
push ebx
lea ecx, [esi + 4]
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], ebx
mov eax, dword [edi]
mov eax, dword [eax + 8]
push str.application_x_shockwave_flash
push dword [esi]
call dword [eax + 0x10]
xor ecx, ecx
add esp, 0x14
test ax, ax
sete cl
cmp ecx, ebx
jne 0x495f7c
mov ecx, dword [0x4f5464]
push str.fl_dll__table.newstream_Failed_
push 3
call fcn.0047b708
mov eax, dword [edi]
mov eax, dword [eax + 8]
push ebx
push 1
push dword [esp + 0x20]
push dword [esi]
call dword [eax + 0x2c]
add esp, 0x18
jmp 0x4960d0
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esi + 4]
push ecx
push dword [esi]
call dword [eax + 0x1c]
pop ecx
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
jle 0x4960ba
push dword [esp + 0x10]
lea ecx, [esp + 0x48]
call fcn.0040e774
mov eax, 0xfde9
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x78], ebx
call fcn.00412bc5
pop ecx
pop ecx
push ebx
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 2
call fcn.0040a0a5
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x495fdf
lea eax, [esp + 0x28]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x496092
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x14], eax
jle 0x496068
push eax
call fcn.004a481a
pop ecx
push ebx
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x24]
mov dword [esp + 0x1c], eax
push eax
push dword [esp + 0x28]
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
mov eax, dword [edi]
push dword [esp + 0x18]
mov eax, dword [eax + 8]
push dword [esi + 0x24]
lea ecx, [esi + 4]
push ecx
push dword [esi]
call dword [eax + 0x20]
add dword [esi + 0x24], eax
add esp, 0x14
push dword [esp + 0x10]
call fcn.004a65e9
pop ecx
jmp 0x496086
push dword [esp + 0x20]
mov ecx, dword [0x4f5464]
push eax
push dword [esp + 0x1c]
push str.write_len_is__d__smaller_than_file_size__d
push 3
call fcn.0047b708
add esp, 0x14
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4960ab
push dword [esp + 0x10]
mov ecx, dword [0x4f5464]
push str.CreateFileA__s_Failed
push 3
call fcn.0047b68e
add esp, 0xc
push 1
xor edi, edi
lea esi, [esp + 0x2c]
call fcn.0040a3ed
jmp 0x4960d0
mov ecx, dword [0x4f5464]
push eax
push str.writeready_len_is_illegal__d
push 3
call fcn.0047b68e
add esp, 0xc
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 4