Function at 0x48ef20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533287
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x810], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x80c], eax
mov byte [ebp - 0x804], 0
mov dword [ebp - 0x808], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x48f241
test eax, eax
jne 0x48ef91
cmp dword [edi], eax
jne 0x48f241
test esi, esi
je 0x48ef9e
cmp byte [esi], 0
jne 0x48f0c4
mov ecx, ebx
call fcn.0048ed60
test al, al
jne 0x48f0c4
push ecx
lea ecx, [ebp - 0x49c]
call fcn.004699a0
mov byte [ebp - 4], 1
lea eax, [ebx + 0x10]
cmp byte [ebx + 0x120], 0
jne 0x48efcc
mov eax, dword [ebx + 0xc]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x13c]
push eax
call fcn.00451610
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x49c]
call fcn.00469a40
test al, al
mov byte [ebp - 4], 1
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
sete bl
cmp byte [ebp - 0x20], 0
jne 0x48f034
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x48f034
push eax
call fcn.004e1b56
add esp, 4
test bl, bl
jne 0x48f08e
lea eax, [ebp - 0x800]
mov dword [ebp - 0x800], 0
push eax
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48f068
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48f068
xor esi, esi
mov ebx, dword [ebp - 0x80c]
test ebx, ebx
je 0x48f099
cmp dword [edi], esi
jl 0x48f099
push esi
push ebx
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x148]
call fcn.00469aa0
test al, al
jne 0x48f095
mov esi, 1
jmp 0x48f0a0
xor esi, esi
jmp 0x48f0a0
mov dword [edi], esi
mov esi, 3
lea ecx, [ebp - 0x49c]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0045c8c0
jmp 0x48f246
mov ecx, ebx
call fcn.0048fce0
test al, al
jne 0x48f0d9
mov esi, 1
jmp 0x48f246
test esi, esi
lea ecx, [ebx + 0x14c]
mov eax, 0x591dde
cmovne eax, esi
push eax
mov dword [ebp - 0x800], eax
call fcn.004906d0
cmp eax, 0xffffffff
jne 0x48f10a
mov dword [edi], 0
mov esi, 5
jmp 0x48f246
imul esi, eax, 0x9c
add esi, dword [ebx + 0x14c]
mov eax, dword [esi + 4]
cmp dword [edi], eax
jge 0x48f129
mov dword [edi], eax
mov esi, 3
jmp 0x48f246
push ecx
lea ecx, [ebp - 0x7fc]
call fcn.004699a0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebx + 4]
mov byte [ebp - 4], 3
call fcn.00450480
push eax
lea ecx, [ebp - 0x13c]
call fcn.00451610
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x7fc]
call fcn.00469a40
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00424a60
test bl, bl
je 0x48f22f
push dword [esi + 0x98]
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x7fc]
call fcn.00469bc0
test al, al
je 0x48f22f
push dword [esi + 4]
mov ebx, dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00469aa0
test al, al
je 0x48f22f
mov eax, dword [ebp - 0x800]
mov ecx, ebx
mov edx, dword [esi + 4]
cmp byte [eax], 0
je 0x48f200
imul eax, dword [esi], 0x9ae42313
push eax
call fcn.0048ea70
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x7fc]
add esp, 4
mov dword [edi], eax
xor esi, esi
call fcn.00469a20
jmp 0x48f246
imul eax, dword [esi], 0x9ae42313
push eax
mov eax, dword [ebp - 0x810]
sub edx, dword [eax + 0x128]
call fcn.0048ea70
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x7fc]
add esp, 4
mov dword [edi], eax
xor esi, esi
call fcn.00469a20
jmp 0x48f246
lea ecx, [ebp - 0x7fc]
mov esi, 1
call fcn.00469a20
jmp 0x48f246
mov esi, 4
lea ecx, [ebp - 0x808]
call fcn.00450c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 0xc