Function at 0x488270
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x506011
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
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.004c98d1
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x488301
call fcn.00441690
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 0x488303
xor esi, esi
push ebx
mov eax, ebp
mov edi, esi
call fcn.004467f0
test al, al
jne 0x48844b
xor edi, edi
cmp esi, edi
je 0x488325
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0x358
call fcn.004c98d1
mov esi, eax
add esp, 4
cmp esi, edi
je 0x488365
call fcn.00441690
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 0x488367
xor esi, esi
lea ecx, [esp + 0x1c]
call fcn.00438ae0
mov eax, str..sgbak
lea edx, [esp + 0x1c]
call fcn.00438d30
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x144]
push edx
mov ecx, ebx
mov dword [esp + 0x278], 1
call fcn.00436020
push eax
mov eax, ebp
mov edi, esi
mov byte [esp + 0x274], 2
call fcn.004467f0
test al, al
sete bl
cmp byte [esp + 0x25c], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x140], edi
jne 0x4883e5
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x4883e5
push eax
call fcn.004c6103
add esp, 4
mov dword [esp + 0x270], 0xffffffff
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], edi
jne 0x488413
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x488413
push eax
call fcn.004c6103
add esp, 4
test bl, bl
je 0x488444
test esi, esi
je 0x488425
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, ebp
call fcn.00437ec0
push 0x521074
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
xor al, al
jmp 0x4884ba
mov ecx, ebp
call fcn.00437f10
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 0x488477
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x488477
xor eax, eax
jmp 0x488479
mov eax, edi
mov edi, dword [esp + 0x14]
push eax
mov dword [edi + 8], eax
call fcn.004c61e0
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 0x4884b6
call eax
jmp 0x488425
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.004c60f4
add esp, 0x260
ret 8