Function at 0x4bbeb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x260], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x25c], edi
cmp dword [esi + 8], 0
je 0x4bbf03
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esi + 8]
push ecx
push 0
push dword [esi + 4]
mov eax, dword [ecx + 4]
mov dword [esi + 8], eax
call edi
cmp dword [esi + 8], 0
jne 0x4bbee6
mov edi, dword [ebp - 0x25c]
mov dword [esi + 8], 0
cmp byte [esi + 0x18], 0
mov dword [esi + 0x14], 0
jne 0x4bc00c
mov ecx, 0x4e982c
call fcn.004c43a0
push 0
push 0
push 0
push 0
push 0
push edi
lea ecx, [ebp - 0x280]
mov dword [ebp - method.t_fileTextRead.virtual_0], vtable.t_fileTextRead.0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
call fcn.004b7750
sub esp, 8
lea eax, [ebp - 0x280]
lea ecx, [ebp - 0x270]
push eax
push ebx
call fcn.004c4b80
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 0x255], al
test ecx, ecx
je 0x4bbf92
push ecx
call fcn.00459651
add esp, 4
call fcn.004c4490
cmp byte [ebp - 0x255], 0
jne 0x4bbfe2
mov ecx, ebx
call fcn.004a7c10
push 0x4e9844
push 0x4e3d38
push eax
call fcn.004a4cb0
mov eax, dword [ebp - 0x26c]
add esp, 0xc
test eax, eax
je 0x4bbfcd
push eax
call fcn.00459651
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x270]
mov ecx, esi
push eax
call fcn.004ba280
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x4bc1cf
push eax
call fcn.00459651
add esp, 4
jmp 0x4bc1cf
push ecx
lea ecx, [ebp - 0x254]
call fcn.004c2090
push 0
push 0
push 0
push 0
push 0
push edi
lea ecx, [ebp - 0x280]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - 0x1c], vtable.t_fileRead.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004b7750
push 0
lea eax, [ebp - 0x280]
push eax
push ebx
lea ecx, [ebp - 0x254]
call fcn.004c1d60
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
jne 0x4bc070
xor bl, bl
jmp 0x4bc0a7
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push eax
push dword [ebp - 0x250]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4bc09c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4bc09c
xor edi, edi
mov dword [ebp - 0x18], edi
mov bl, 1
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x4bc0ba
push eax
call fcn.00459651
add esp, 4
test bl, bl
jne 0x4bc0c5
mov esi, 0x4e9858
jmp 0x4bc129
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push eax
push dword [ebp - 0x250]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4bc0f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4bc0f1
xor edi, edi
lea eax, [edi + 1]
push eax
call fcn.0046c3ce
mov ebx, eax
add esp, 4
mov dword [ebp - 0x25c], ebx
test ebx, ebx
jne 0x4bc110
mov esi, 0x4e986c
jmp 0x4bc129
push edi
push ebx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x1c]
call fcn.004c5000
test al, al
jne 0x4bc145
mov esi, 0x4e9890
mov ecx, dword [ebp - 0x260]
call fcn.004a7c10
push esi
push 0x4e3d38
push eax
call fcn.004a4cb0
add esp, 0xc
jmp 0x4bc182
lea ecx, [ebp - 0x254]
mov byte [edi + ebx], 0
call fcn.004c1c80
push ecx
push edi
push ebx
mov ecx, esi
call fcn.004bac10
push dword [ebp - 0x25c]
mov bl, al
call fcn.00459651
add esp, 4
test bl, bl
jne 0x4bc1b3
mov ecx, dword [ebp - 0x260]
push 0x4e98a4
call fcn.004018a0
lea ecx, [ebp - 0x254]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.004c2020
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x254]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.004c2020
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 0xc