Function at 0x490320
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5333f1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c0
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c0], ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x4cc], eax
mov byte [ebp - 0x4c4], 0
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 4], 0
mov edi, dword [esi + 4]
push ecx
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4b8], edi
call fcn.0045c820
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x4c0]
mov byte [ebp - 4], 1
cmp byte [eax + 0x120], 0
je 0x4903e0
add eax, 0x10
jmp 0x4903e3
mov eax, dword [eax + 0xc]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x150]
push eax
call fcn.00451610
push 0
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.0045c980
test al, al
jne 0x490428
mov byte [ebp - 0x4b1], 1
jmp 0x49046b
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4bc], 0
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x490458
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x490458
xor edi, edi
mov dword [ebp - 0x158], edi
mov edi, dword [ebp - 0x4b8]
mov byte [ebp - 0x4b1], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x34], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x490498
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
cmp eax, ecx
je 0x490498
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x4b1], 0
jne 0x4904ee
push dword [esi + 0x98]
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.00469bc0
test al, al
je 0x4904ee
push edi
call fcn.004e1b5b
add esp, 4
lea ecx, [ebp - 0x15c]
mov edi, eax
lea eax, [ebp - 0x4c8]
push dword [ebp - 0x4b8]
push edi
push eax
call fcn.00469aa0
test al, al
jne 0x49053c
push edi
call fcn.004e1b56
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x4b0]
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
lea ecx, [ebp - 0x4c8]
call fcn.00450c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
cmp byte [esi + 0x18], 0
lea eax, [esi + 0x18]
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], eax
jne 0x49055d
mov ecx, dword [ebp - 0x4c0]
sub edx, dword [ecx + 0x128]
imul eax, dword [esi], 0x9ae42313
mov ecx, edi
push eax
call fcn.0048ea70
lea eax, [esi + 0x18]
add esp, 4
cmp byte [eax], 0
je 0x4905bb
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.0045d3d0
lea edx, [esi + 8]
add esp, 0xc
lea ecx, [ebp - 0x24]
mov esi, 0xc
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4904ee
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4905a0
mov eax, dword [ebp - 0x4bc]
push 1
push dword [ebp - 0x4b8]
push edi
push eax
push dword [ebp - 0x4cc]
call fcn.004902b0
mov esi, 1
jmp 0x4904f0