Function at 0x48f070
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x50d951
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [esp + 0x278]
mov ebp, dword [esp + 0x27c]
push 0x358
mov dword [esp + 0x18], eax
mov ebx, ecx
call fcn.004cf589
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x48f101
call fcn.0043fc80
mov dword [esi + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
mov dword [esi], vtable.t_fileRead.0
mov dword [esi + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esi + 0x350], edi
mov dword [esi + 0x354], edi
jmp 0x48f103
xor esi, esi
push ebx
mov eax, ebp
mov edi, esi
call fcn.00447b80
test al, al
jne 0x48f24b
xor edi, edi
cmp esi, edi
je 0x48f125
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0x358
call fcn.004cf589
mov esi, eax
add esp, 4
cmp esi, edi
je 0x48f165
call fcn.0043fc80
mov dword [esi + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
mov dword [esi], vtable.t_fileRead.0
mov dword [esi + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esi + 0x350], edi
mov dword [esi + 0x354], edi
jmp 0x48f167
xor esi, esi
lea ecx, [esp + 0x1c]
call fcn.0043a090
mov eax, str..sgbak
lea edx, [esp + 0x1c]
call fcn.0043a2e0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x144]
push edx
mov ecx, ebx
mov dword [esp + 0x278], 1
call fcn.004375b0
push eax
mov eax, ebp
mov edi, esi
mov byte [esp + 0x274], 2
call fcn.00447b80
test al, al
sete bl
cmp byte [esp + 0x25c], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x140], edi
jne 0x48f1e5
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x48f1e5
push eax
call fcn.004ccef0
add esp, 4
mov dword [esp + 0x270], 0xffffffff
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], edi
jne 0x48f213
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x48f213
push eax
call fcn.004ccef0
add esp, 4
test bl, bl
je 0x48f244
test esi, esi
je 0x48f225
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, ebp
call fcn.00439450
push 0x52904c
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
xor al, al
jmp 0x48f2ba
mov ecx, ebp
call fcn.004394a0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48f277
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48f277
xor eax, eax
jmp 0x48f279
mov eax, edi
mov edi, dword [esp + 0x14]
push eax
mov dword [edi + 8], eax
call fcn.004ccfcd
mov dword [edi + 4], eax
mov edi, dword [edi + 8]
mov edx, dword [esi + 0x34c]
add esp, 4
push edi
lea ecx, [esi + 0x34c]
push eax
mov eax, dword [edx + 4]
push ebp
call eax
mov edx, dword [esi]
test al, al
mov eax, dword [edx]
push 1
mov ecx, esi
jne 0x48f2b6
call eax
jmp 0x48f225
call eax
mov al, 1
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004ccee1
add esp, 0x260
ret 8