Function at 0x488f50
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x50c3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f5a0]
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.004cf9e8
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x488fe1
call fcn.004419b0
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 0x488fe3
xor esi, esi
push ebx
mov eax, ebp
mov edi, esi
call fcn.00446b90
test al, al
jne 0x48912b
xor edi, edi
cmp esi, edi
je 0x489005
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0x358
call fcn.004cf9e8
mov esi, eax
add esp, 4
cmp esi, edi
je 0x489045
call fcn.004419b0
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 0x489047
xor esi, esi
lea ecx, [esp + 0x1c]
call fcn.00438f20
mov eax, str..sgbak
lea edx, [esp + 0x1c]
call fcn.00439130
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x144]
push edx
mov ecx, ebx
mov dword [esp + 0x278], 1
call fcn.00436460
push eax
mov eax, ebp
mov edi, esi
mov byte [esp + 0x274], 2
call fcn.00446b90
test al, al
sete bl
cmp byte [esp + 0x25c], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x140], edi
jne 0x4890c5
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x4890c5
push eax
call fcn.004cc2c0
add esp, 4
mov dword [esp + 0x270], 0xffffffff
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], edi
jne 0x4890f3
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x4890f3
push eax
call fcn.004cc2c0
add esp, 4
test bl, bl
je 0x489124
test esi, esi
je 0x489105
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, ebp
call fcn.00438300
push 0x528a94
push 0x51f1f4
mov edx, eax
call fcn.00439710
add esp, 8
xor al, al
jmp 0x48919a
mov ecx, ebp
call fcn.00438350
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 0x489157
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x489157
xor eax, eax
jmp 0x489159
mov eax, edi
mov edi, dword [esp + 0x14]
push eax
mov dword [edi + 8], eax
call fcn.004cc39d
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 0x489196
call eax
jmp 0x489105
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.004cc2b1
add esp, 0x260
ret 8