Function at 0x1000d2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c953
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
call sym.rlmfc.dll_private:_static_char____fastcall_R_File::relativeToAbsolutePath_char_const__
mov ecx, eax
mov dword [ebp + 0xc], eax
call sym.rlmfc.dll_private:_static_char____fastcall_R_File::absolutePathToDirStructure_char_const__
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push 0x1002e7d0
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
call ebx
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x1000d65e
mov esi, dword [ebp + 0xc]
mov edx, esi
lea ecx, [ebp - 0x24]
call sym.rlmfc.dll_private:_static_void___fastcall_R_File::searchFile_struct_R_File::R_RASFind___char_const__
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x1000d3df
lea ecx, [ebp - 0x148]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
push esi
lea eax, [ebp - 0x148]
push str.File__s_not_found
mov edi, vtable.R_FileException_FileNotFound.0
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x148], edi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x10046828]
test al, 1
mov byte [ebp - 4], 2
jne 0x1000d3b9
or al, 1
mov ecx, 0x10046840
mov byte [0x10046828], al
call fcn.1000ac90
push 0x1000eb70
mov dword [0x10046840], edi
call fcn.1001bef4
add esp, 4
lea ecx, [ebp - 0x148]
push ecx
mov ecx, 0x10046840
call fcn.1000eec0
push 0x10021528
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], 0x10046840
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [eax]
push eax
push 0x1002eb54
call sym.rlmfc.dll_char_const____cdecl_R_STR_char_const__
add esp, 8
mov ecx, eax
call sym.rlmfc.dll_private:_static_char____fastcall_R_File::absolutePathToDirStructure_char_const__
push 0x1002e7d0
push eax
mov dword [ebp - 0x28], eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
je 0x1000d5c3
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push 0
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1000d48e
lea ecx, [ebp - 0x148]
call fcn.1000b980
mov esi, eax
mov al, byte [0x10046c44]
test al, 1
mov byte [ebp - 4], 3
jne 0x1000d46e
or al, 1
mov ecx, 0x10046c60
mov byte [0x10046c44], al
call fcn.1000b980
push 0x10005b30
call fcn.1001bef4
add esp, 4
push esi
mov ecx, 0x10046c60
call fcn.1000eec0
push 0x100211e0
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], 0x10046c60
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
push esi
push 1
push eax
push ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
add esp, 0x10
push edx
push ebx
mov ecx, edi
call sym.rlmfc.dll_public:_unsigned_int___thiscall_R_File::CRC32_void_const___unsigned_int_
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ecx + 0x10]
je 0x1000d549
lea ecx, [ebp - 0x148]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x148]
push str.File__s_is_corrupted
mov esi, vtable.R_FileException_FileCorrupted.0
push ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x148], esi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x10046288]
test al, 1
mov byte [ebp - 4], 5
jne 0x1000d523
or al, 1
mov ecx, 0x100462a0
mov byte [0x10046288], al
call fcn.1000ac90
push 0x1000eb00
mov dword [0x100462a0], esi
call fcn.1001bef4
add esp, 4
lea edx, [ebp - 0x148]
push edx
mov ecx, 0x100462a0
call fcn.1000eec0
push 0x10021ab8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x100462a0
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ecx + 0x1c], 2
jne 0x1000d562
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0xc]
push edx
push eax
push ebx
mov ecx, edi
call sym.rlmfc.dll_private:_void___thiscall_R_File::decryptWithSeed_unsigned_char___int__int_
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x1c]
cmp eax, 1
je 0x1000d56f
cmp eax, 2
jne 0x1000d57e
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, edi
call sym.rlmfc.dll_private:_void____thiscall_R_File::decompress_void___void_const__
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x1c], 3
jne 0x1000d59d
mov ecx, dword [ecx + 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 esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call fcn.1001be40
mov eax, dword [ebp - 0x28]
add esp, 8
test eax, eax
je 0x1000d771
push eax
call fcn.1001be40
jmp 0x1000d76e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000d5d3
push eax
call fcn.1001be40
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
lea ecx, [ebp - 0x148]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
push esi
lea ecx, [ebp - 0x148]
push str.Archive__s_not_found
mov edi, vtable.R_FileException_ArchiveNotFound.0
push ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x148], edi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x10046a68]
test al, 1
mov byte [ebp - 4], 7
jne 0x1000d638
or al, 1
mov ecx, 0x10046a80
mov byte [0x10046a68], al
call fcn.1000ac90
push 0x1000eb50
mov dword [0x10046a80], edi
call fcn.1001bef4
add esp, 4
lea edx, [ebp - 0x148]
push edx
mov ecx, 0x10046a80
call fcn.1000eec0
push 0x10021508
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x10046a80
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
mov ecx, dword [ebp + 8]
push esi
push ebx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x2c
cmp eax, ebx
je 0x1000d767
lea ecx, [ebp - 0x250]
call sym.rlmfc.dll_protected:_void___thiscall_R_Exception::constructor_void_
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x250]
push str.File__s_is_corrupted
mov esi, vtable.R_FileException_FileCorrupted.0
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x250], esi
call sym.rlmfc.dll_public:_void___cdecl_R_Exception::setError_char_const__
add esp, 0xc
mov al, byte [0x10046288]
test al, 1
mov byte [ebp - 4], 9
jne 0x1000d6f7
or al, 1
mov ecx, 0x100462a0
mov byte [0x10046288], al
call fcn.1000ac90
push 0x1000eb00
mov dword [0x100462a0], esi
call fcn.1001bef4
add esp, 4
lea ecx, [ebp - 0x250]
push ecx
mov ecx, 0x100462a0
call fcn.1000eec0
push 0x10021ab8
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], 0x100462a0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000d72d
push eax
call fcn.1001be40
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000d73d
push eax
call fcn.1001be40
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000d74e
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000d75e
push eax
call fcn.1001be40
add esp, 4
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000d781
push eax
call fcn.1001be40
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000d791
push eax
call fcn.1001be40
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 8