Function at 0x4801f0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x503701
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
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.004c688d
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x480281
call fcn.0043a2a0
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 0x480283
xor esi, esi
push ebx
mov eax, ebp
mov edi, esi
call fcn.00441f90
test al, al
jne 0x4803cb
xor edi, edi
cmp esi, edi
je 0x4802a5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0x358
call fcn.004c688d
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4802e5
call fcn.0043a2a0
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 0x4802e7
xor esi, esi
lea ecx, [esp + 0x1c]
call fcn.004349d0
mov eax, str..sgbak
lea edx, [esp + 0x1c]
call fcn.00434c20
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x144]
push edx
mov ecx, ebx
mov dword [esp + 0x278], 1
call fcn.00432180
push eax
mov eax, ebp
mov edi, esi
mov byte [esp + 0x274], 2
call fcn.00441f90
test al, al
sete bl
cmp byte [esp + 0x25c], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x140], edi
jne 0x480365
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x480365
push eax
call fcn.004c31b0
add esp, 4
mov dword [esp + 0x270], 0xffffffff
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], edi
jne 0x480393
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x480393
push eax
call fcn.004c31b0
add esp, 4
test bl, bl
je 0x4803c4
test esi, esi
je 0x4803a5
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, ebp
call fcn.00433db0
push 0x51f1fc
push 0x51620c
mov edx, eax
call fcn.004351e0
add esp, 8
xor al, al
jmp 0x48043a
mov ecx, ebp
call fcn.00433e00
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 0x4803f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4803f7
xor eax, eax
jmp 0x4803f9
mov eax, edi
mov edi, dword [esp + 0x14]
push eax
mov dword [edi + 8], eax
call fcn.004c328d
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 0x480436
call eax
jmp 0x4803a5
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.004c31a1
add esp, 0x260
ret 8