Function at 0x100148f0
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ebx
call sym.rlmfc.dll_protected:_void___thiscall_R_FileStream::constructor_void_
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
mov dword [ebx], vtable.R_UnbufferedFileStream.0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], esi
jne 0x10014941
mov dword [ebp + 0xc], 0x2000
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x358]
call sym.rlmfc.dll_private:_static_void___fastcall_R_File::relativeToAbsolutePath_char___char_const__
lea edx, [ebp - 0x358]
lea ecx, [ebp - 0x258]
call sym.rlmfc.dll_private:_static_void___fastcall_R_File::absolutePathToDirStructure_char___char_const__
lea edx, [ebp - 0x358]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sym.rlmfc.dll_private:_static_void___fastcall_R_File::searchFile_struct_R_File::R_RASFind___char_const__
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0x20000080
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x258]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x10014a4c
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp - 0x258]
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount]
add esp, 4
mov edi, eax
inc ecx
cmp edi, esi
mov dword [ebp - 0x48], edi
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount], ecx
jne 0x10014a07
lea ecx, [ebp - 0x1c]
call fcn.10005c80
lea ecx, [ebp - 0x1c]
push str.Out_of_system_memory_resources
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], vtable.R_MemoryException_Allocation.0
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1000a970
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sym.rlmfc.dll_public_virtual:_void___thiscall_R_Exception::destructor_void_
or ecx, 0xffffffff
mov dword [ebp - 0x28], edi
xor eax, eax
lea edi, [ebp - 0x258]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x20]
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x18], esi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], eax
jmp 0x10014c62
mov eax, dword [ebp - 0x34]
cmp eax, esi
jne 0x10014ad7
lea ecx, [ebp - 0x1c]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x1c]
push str.File__s_not_found
mov esi, vtable.R_FileException_FileNotFound.0
push ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], esi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x100625bc]
test al, 1
mov byte [ebp - 4], 5
jne 0x10014ab4
or al, 1
mov ecx, 0x100625c0
mov byte [0x100625bc], al
call fcn.10011220
push 0x10016040
mov dword [0x100625c0], esi
call fcn.100281de
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x100625c0
call fcn.1000aa10
push 0x1002d570
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x100625c0
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x1c], 3
je 0x10014b64
lea ecx, [ebp - 0x1c]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x1c]
push str.File__s_is_not_a_stream
mov esi, vtable.R_FileException_FileNotAStream.0
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x1c], esi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x1006257c]
test al, 1
mov byte [ebp - 4], 7
jne 0x10014b41
or al, 1
mov ecx, 0x10062580
mov byte [0x1006257c], al
call fcn.10011220
push 0x10016000
mov dword [0x10062580], esi
call fcn.100281de
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x10062580
call fcn.1000aa10
push 0x1002d940
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0x10062580
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [eax]
push esi
push 0x20000080
push 3
push esi
push 1
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
je 0x10014fa5
mov edi, dword [ecx]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount]
add esp, 4
mov edx, eax
inc ecx
cmp edx, esi
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount], ecx
jne 0x10014c21
lea ecx, [ebp - 0x1c]
call fcn.10005c80
lea edx, [ebp - 0x1c]
push str.Out_of_system_memory_resources
push edx
mov byte [ebp - 4], 8
mov dword [ebp - 0x1c], vtable.R_MemoryException_Allocation.0
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 8
mov al, byte [0x100626e4]
test al, 1
mov byte [ebp - 4], 9
jne 0x10014bfe
or al, 1
mov ecx, 0x100626f0
mov byte [0x100626e4], al
call fcn.10005ca0
push 0x1000a9d0
call fcn.100281de
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x100626f0
call fcn.1000aa10
push 0x1002ce20
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], 0x100626f0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x28], edx
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov edx, dword [ecx + 4]
add edx, eax
mov dword [ebx + 0xc], edx
xor edi, edi
or ecx, 0xffffffff
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x28]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebp - 0x158]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x158], 0x5c
jne 0x10014ce5
or ecx, 0xffffffff
xor esi, esi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
je 0x10014cdb
cmp byte [ebp + edx - 0x158], 0x5c
jne 0x10014cbd
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 4
jge 0x10014cdb
or ecx, 0xffffffff
inc edx
xor eax, eax
lea edi, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
mov dword [ebp - 0x24], edx
jb 0x10014cb0
mov byte [ebp + edx - 0x157], 0
jmp 0x10014cee
mov byte [ebp - 0x155], 0
xor esi, esi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x24]
push edx
lea edi, [ebx + 0x1c]
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + edx - 1]
lea edx, [eax - 1]
not edx
and ecx, edx
add eax, ecx
push eax
mov dword [ebx + 0x20], ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount]
add esp, 4
inc edx
cmp eax, esi
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount], edx
jne 0x10014db0
lea ecx, [ebp - 0x1c]
call fcn.10005c80
lea eax, [ebp - 0x1c]
push str.Out_of_system_memory_resources
push eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x1c], vtable.R_MemoryException_Allocation.0
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 8
mov al, byte [0x100626e4]
test al, 1
mov byte [ebp - 4], 0xe
jne 0x10014d8d
mov dl, al
or dl, 1
mov ecx, 0x100626f0
mov byte [0x100626e4], dl
call fcn.10005ca0
push 0x1000a9d0
call fcn.100281de
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x100626f0
call fcn.1000aa10
push 0x1002ce20
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], 0x100626f0
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [edi]
mov dword [ebx + 0x28], eax
lea eax, [edi + eax - 1]
dec edi
not edi
push 1
and eax, edi
push esi
mov ecx, ebx
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x2c], esi
mov byte [ebx + 0x38], 0
call sym.rlmfc.dll_public_virtual:_int___thiscall_R_UnbufferedFileStream::seek_unsigned_int__enum_R_FileStream::SeekMode_
push 0x104f
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
cmp edi, esi
je 0x10014df7
lea ecx, [edi + 0x2a]
call fcn.10013a90
mov eax, edi
jmp 0x10014df9
xor eax, eax
mov edx, dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount]
inc edx
cmp eax, esi
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount], edx
jne 0x10014e80
lea ecx, [ebp - 0x1c]
call fcn.10005c80
lea ecx, [ebp - 0x1c]
push str.Out_of_system_memory_resources
push ecx
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x1c], vtable.R_MemoryException_Allocation.0
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 8
mov al, byte [0x100626e4]
test al, 1
mov byte [ebp - 4], 0x10
jne 0x10014e5d
mov dl, al
or dl, 1
mov ecx, 0x100626f0
mov byte [0x100626e4], dl
call fcn.10005ca0
push 0x1000a9d0
call fcn.100281de
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x100626f0
call fcn.1000aa10
push 0x1002ce20
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x100626f0
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebx + 0x14], eax
mov dword [eax], 1
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 0xc], esi
mov edx, dword [ebx + 0x14]
mov dword [edx + 0x10], esi
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x14], esi
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 0x18], esi
mov edx, dword [ebx + 0x14]
mov edi, dword [ebp + 8]
mov dword [edx + 0x1c], esi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x21], esi
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0x14]
mov byte [eax + 0x20], 0
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 0x25], esi
mov edx, dword [ebx + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov byte [edx + 0x29], 0
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount]
add esp, 4
inc edx
cmp eax, esi
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount], edx
jne 0x10014f66
lea ecx, [ebp - 0x1c]
call fcn.10005c80
lea eax, [ebp - 0x1c]
push str.Out_of_system_memory_resources
push eax
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x1c], vtable.R_MemoryException_Allocation.0
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 8
mov al, byte [0x100626e4]
test al, 1
mov byte [ebp - 4], 0x12
jne 0x10014f43
mov dl, al
or dl, 1
mov ecx, 0x100626f0
mov byte [0x100626e4], dl
call fcn.10005ca0
push 0x1000a9d0
call fcn.100281de
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x100626f0
call fcn.1000aa10
push 0x1002ce20
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], 0x100626f0
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ecx]
lea ecx, [ebp - 0x1c]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
push esi
lea edx, [ebp - 0x1c]
push str.Archive__s_not_found
mov edi, vtable.R_FileException_ArchiveNotFound.0
push edx
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1c], edi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x100625dc]
test al, 1
mov byte [ebp - 4], 0xb
jne 0x10014ffe
or al, 1
mov ecx, 0x100625e0
mov byte [0x100625dc], al
call fcn.10011220
push 0x10016090
mov dword [0x100625e0], edi
call fcn.100281de
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x100625e0
call fcn.1000aa10
push 0x1002d1c0
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0x100625e0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10015030
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
push ecx
push ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ecx
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov bl, byte [esp + 8]
test bl, 2
push esi
mov esi, ecx
je 0x10015088
mov eax, dword [esi - 4]
push edi
push sym.rlmfc.dll_public_virtual:_void___thiscall_R_UnbufferedFileStream::destructor_void_
lea edi, [esi - 4]
push eax
push 0x39
push esi
call fcn.10028202
test bl, 1
je 0x10015080
push edi
call fcn.10028130
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
mov ecx, esi
call sym.rlmfc.dll_public_virtual:_void___thiscall_R_UnbufferedFileStream::destructor_void_
test bl, 1
je 0x1001509d
push esi
call fcn.10028130
add esp, 4
mov eax, esi
pop esi
pop ebx
ret 4