Function at 0x10011e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
xor ebx, ebx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
call sym.rlmfc.dll_private:_static_void___fastcall_R_File::relativeToAbsolutePath_char___char_const__
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x24c]
call sym.rlmfc.dll_private:_static_void___fastcall_R_File::absolutePathToDirStructure_char___char_const__
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [ebp - 0x24c]
push 0x1003d9e0
push eax
mov dword [ebp - 4], ebx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp + 0xc], esi
jne 0x10012160
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x30]
call sym.rlmfc.dll_private:_static_void___fastcall_R_File::searchFile_struct_R_File::R_RASFind___char_const__
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x10011f2b
lea ecx, [ebp - 0x1c]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x1c]
push str.File__s_not_found
mov esi, vtable.R_FileException_FileNotFound.0
push edx
mov byte [ebp - 4], 1
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], 2
jne 0x10011f08
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 eax, [ebp - 0x1c]
push eax
mov ecx, 0x100625c0
call fcn.1000aa10
push 0x1002d570
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], 0x100625c0
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [eax]
push 0x1003d9e0
push edx
call edi
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [ebp + 0xc], edi
je 0x100120e1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
push ebx
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount]
add esp, 0x10
mov ebx, eax
inc ecx
test ebx, ebx
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iNewCount], ecx
jne 0x10011fb1
lea ecx, [ebp - 0x1c]
call fcn.10005c80
lea eax, [ebp - 0x1c]
push str.Out_of_system_memory_resources
push eax
mov byte [ebp - 4], 3
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], 4
call fcn.1000a970
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sym.rlmfc.dll_public_virtual:_void___thiscall_R_Exception::destructor_void_
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0xc]
push edi
mov ecx, esi
push ecx
push 1
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x10012052
lea ecx, [ebp - 0x1c]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x1c]
push str.Unable_to_read_data_from___s_
mov esi, vtable.R_FileException_UnableToReadData.0
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], esi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x100625ec]
test al, 1
mov byte [ebp - 4], 6
jne 0x1001202f
or al, 1
mov ecx, 0x100625f0
mov byte [0x100625ec], al
call fcn.10011220
push 0x10016080
mov dword [0x100625f0], esi
call fcn.100281de
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x100625f0
call fcn.1000aa10
push 0x1002d1b0
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], 0x100625f0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1c], 2
jne 0x1001206c
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x24]
push eax
push esi
push ebx
call sym.rlmfc.dll_private:_void___thiscall_R_File::decryptWithSeed_unsigned_char___int__int_
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
je 0x10012079
cmp ecx, 2
jne 0x10012089
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, dword [ebp - 0x24]
call sym.rlmfc.dll_private:_void____thiscall_R_File::decompress_void___void_const__
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1c], 3
jne 0x100120a8
mov ecx, dword [eax + 4]
mov edi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10012258
push ebx
call fcn.10028130
mov eax, dword [sym.rlmfc.dll_int_R_Memory::sm_iDeleteCount]
add esp, 4
inc eax
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iDeleteCount], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
lea ecx, [ebp - 0x1c]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
push esi
lea ecx, [ebp - 0x1c]
push str.Archive__s_not_found
mov edi, vtable.R_FileException_ArchiveNotFound.0
push ecx
mov byte [ebp - 4], 7
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], 8
jne 0x1001213d
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 edx, [ebp - 0x1c]
push edx
mov ecx, 0x100625e0
call fcn.1000aa10
push 0x1002d1c0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x100625e0
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x10012187
push 2
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
add esp, 0x1c
mov ecx, dword [ebp + 8]
push esi
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x1001224e
lea ecx, [ebp - 0x4c]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x4c]
push str.Unable_to_read_data_from___s_
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x4c], vtable.R_FileException_UnableToReadData.0
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x100625ec]
test al, 1
mov byte [ebp - 4], 0xa
jne 0x100121f6
or al, 1
mov ecx, 0x100625f0
mov byte [0x100625ec], al
call fcn.10012270
push 0x10016080
call fcn.100281de
add esp, 4
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, 0x100625f0
call fcn.1000aa10
push 0x1002d1b0
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], 0x100625f0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001222a
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10012245
push eax
call fcn.10028130
mov eax, dword [sym.rlmfc.dll_int_R_Memory::sm_iDeleteCount]
add esp, 4
inc eax
mov dword [sym.rlmfc.dll_int_R_Memory::sm_iDeleteCount], eax
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc