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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6625
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 0x2c0]
call fcn.004d7140
push dword [ebp + 8]
lea ecx, [esi + 0x2f0]
call fcn.00401680
push dword [ebp + 0xc]
lea ecx, [esi + 0x2f4]
call fcn.00401680
xor edi, edi
mov byte [esi + 0x2f8], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call fcn.00401bb0
mov ecx, eax
test ecx, ecx
je 0x4bf189
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push dword [esi + 0x2f4]
push str._sProgTimes.cfg
push eax
call fcn.004063e0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [esi + 0x2bc]
push eax
call fcn.004bac40
push dword [esi + 0x2f4]
lea eax, [ebp + 8]
push str._sRepExtra.cfg
push eax
call fcn.004063e0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [esi + 0x2b0]
push eax
call fcn.004bac40
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x4bf000
push eax
call dword [sym.imp.mfc140.dll_Ordinal_266]
add esp, 4
mov dword [esi + 0x2b4], edi
push dword [esi + 0x2f0]
lea eax, [ebp + 8]
push str._sMASTER.dat
push eax
call fcn.004063e0
mov esi, dword [ebp + 8]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4bf047
call fcn.00464790
test eax, eax
js 0x4bf12a
jmp 0x4bf04c
mov edi, eax
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x4bf071
call fcn.00464790
test eax, eax
js 0x4bf140
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.mfc140.dll_Ordinal_265]
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4bf0a3
call fcn.00464790
xor edx, edx
mov dword [ebp - 0x10], 0
mov ecx, 0xb
cmp edx, dword [ebp + 0xc]
ja 0x4bf0df
jb 0x4bf0bc
cmp ecx, ebx
jae 0x4bf0df
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
movzx eax, byte [ecx + edi]
add dword [ebp - 0x10], eax
add ecx, 1
adc edx, 0
cmp edx, esi
jb 0x4bf0c2
ja 0x4bf0d9
cmp ecx, ebx
jb 0x4bf0c2
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x2b4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x2b8], ebx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xff
sub ecx, eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 2]
cmp ecx, eax
jne 0x4bf14b
test edi, edi
je 0x4bf12a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x24], edi
push 0x2a0
push 0
push dword [ebp - 0x1c]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov bl, 1
jmp 0x4bf14d
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
jmp 0x4bf074
xor bl, bl
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bf169
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4bf174
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00401f30
int3