Function at 0x1002e104
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x100670da
call fcn.1004f34e
mov esi, ecx
mov ebx, dword [ebp + 8]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.nsDui.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.nsDui.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x1002e22c
push ebx
lea ecx, [ebp - 0x94]
call sym.nsDui.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
lea ecx, [ebp - 0x94]
call sym.nsDui.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call sym.nsDui.dll_void___cdecl_DuiLib::DUI__Trace_wchar_t_const__
pop ecx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.nsDui.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x1002e19d
push str.Error_opening_file
jmp 0x1002e30d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x1002e2a6
cmp edi, 0x400000
ja 0x1002e2b7
and dword [ebp - 0x2c8], 0
push edi
call fcn.1004afdf
pop ecx
mov ebx, eax
push 0
lea eax, [ebp - 0x2c8]
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x1002e215
push ebx
call fcn.1004cef5
pop ecx
mov ecx, esi
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
jmp 0x1002e30d
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push dword [ebp - 0x2cc]
jmp 0x1002e33b
call sym.nsDui.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.nsDui.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.nsDui.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x1002e24d
call sym.nsDui.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x1002e264
push 2
push edi
lea ecx, [ebp - 0x94]
call sym.nsDui.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.1003fcbd
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x1002e275
push eax
push str.Error_opening_zip_file
jmp 0x1002e30d
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.1003f6f4
add esp, 0x14
test eax, eax
je 0x1002e29c
push 0
push str.Could_not_find_ziped_file
jmp 0x1002e30d
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x1002e2af
push 0
push str.File_is_empty
jmp 0x1002e30d
cmp ebx, 0x400000
jbe 0x1002e2c0
push 0
push str.File_too_large
jmp 0x1002e30d
push ebx
call fcn.1004afdf
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.10040070
add esp, 0x18
test eax, eax
je 0x1002e318
cmp eax, 0x600
je 0x1002e318
push dword [ebp - 0x2c8]
call fcn.1004cef5
pop ecx
call sym.nsDui.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1002e306
push edi
call fcn.1003f558
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call sym.nsDui.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x1002e343
call sym.nsDui.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1002e328
push edi
call fcn.1003f558
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
push ebx
push edi
mov ecx, esi
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.1004cef5
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.1004f30c
ret 8