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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 8]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44bf5d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x44bdcc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
jmp 0x44bdfc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x20]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
setne bl
test bl, bl
je 0x44bf25
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
mov edi, eax
test edi, edi
jbe 0x44bf1c
mov dword [ebp - 0x1c], edi
push 0x44bf7c
lea eax, [ebp - 0x28]
mov edx, dword [0x535d7c]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
push dword [ebp - 0x28]
push 0x44bf90
push 0x44bfa0
push dword [ebp + 8]
push 0x44bfd4
push dword [ebp - 8]
push 0x44bff0
push 0x44bf90
push 0x44c000
push 0x44bf90
push 0x44bf90
lea eax, [ebp - 0x24]
mov edx, 0xc
call sub.rtl160.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.0044a34c
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x400
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
jmp 0x44bf04
cmp edi, 0x400
jbe 0x44bea4
mov esi, 0x400
jmp 0x44bea6
mov esi, edi
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, esi
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
push 0
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x44becf
cmp esi, dword [ebp - 0x18]
je 0x44bed3
xor ebx, ebx
jmp 0x44bf0c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0044a34c
mov ebx, eax
sub edi, esi
mov eax, dword [ebp - 0x1c]
sub eax, edi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test bl, bl
je 0x44bf0c
test edi, edi
ja 0x44be95
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bf64
lea eax, [ebp - 0x28]
mov edx, 3
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp + 8]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret