Function at 0x4e0f30
Capabilities:
Check for time delay via gettickcount
Get file size
Read file on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x540cc0]
push ebp
push esi
xor esi, esi
push 0x80000
mov dword [esp + 0xa4], eax
mov ebp, ecx
mov dword [esp + 0x18], esi
call sub.MSVCR71.dll_malloc
add esp, 4
cmp eax, esi
mov dword [esp + 0xc], eax
jne 0x4e0f78
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x98]
call fcn.004f2f91
add esp, 0x9c
ret
push ebx
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4e0fb6
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x98]
call fcn.004f2f91
add esp, 0x9c
ret
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x24]
test edi, edi
mov esi, eax
mov dword [esp + 0x20], esi
jl 0x4e1242
jg 0x4e0fe7
test esi, esi
jbe 0x4e1242
push edi
push esi
call fcn.004e0e40
lea ecx, [eax + eax*4]
shl ecx, 2
add esp, 8
test ecx, ecx
mov dword [esp + 0x30], ecx
jbe 0x4e102f
mov eax, 0xcccccccd
mul ecx
shr edx, 0xd
inc edx
lea edx, [edx + edx*4]
shl edx, 0xb
push edx
push 0
call sub.MSVCR71.dll_realloc
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4e118e
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push edi
push esi
call fcn.004e0df0
mov edi, eax
add esp, 8
cmp edi, 0x80000
jbe 0x4e105d
mov eax, dword [esp + 0x14]
push edi
push eax
call sub.MSVCR71.dll_realloc
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x4e119f
mov edx, dword [ebp + 0x148]
xor eax, eax
xor ebx, ebx
cmp edx, 0x64
setge al
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4e107d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e1183
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4e1108
lea ecx, [esp + 0x34]
push ecx
call fcn.004eae50
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, edi
jb 0x4e10cf
mov eax, edi
push eax
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004ec7b0
lea eax, [esp + 0x40]
push eax
call fcn.004ec870
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.004ec970
lea edx, [esp + 0x4c]
push edx
call fcn.004eca10
add esp, 0x1c
add esi, 0x14
mov dword [esp + 0x28], esi
cmp dword [esp + 0x10], edi
jb 0x4e11cc
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4e115b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [ebp + 0x148]
lea eax, [eax + eax*4]
sub esi, ebx
shl eax, 1
cmp esi, eax
jb 0x4e115b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, esi
imul eax, eax, 0x64
xor edx, edx
div dword [ebp + 0x148]
sub eax, esi
cmp eax, 0x64
jb 0x4e1154
mov eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e10b0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e119f
push eax
call sub.MSVCR71.dll_free
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e11b0
push eax
call sub.MSVCR71.dll_free
add esp, 4
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x98]
call fcn.004f2f91
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
push ecx
call fcn.004eae50
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004ec7b0
lea edx, [esp + 0x44]
push edx
call fcn.004ec870
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004ec970
lea edx, [esp + 0x50]
push edx
call fcn.004eca10
push 0x14
lea eax, [esp + 0xb8]
push eax
lea ecx, [ebp + 0x14c]
push 0x20
push ecx
call fcn.004ead80
add esp, 0x30
mov byte [ebp + 0x16c], 0
jmp 0x4e118e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xa8]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
call fcn.004f2f91
add esp, 0x9c
ret