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

Disassembly:
push 0x3d0
mov eax, 0x110457cf
call fcn.11043260
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3d0], ecx
mov dword [ebp - 0x3d8], eax
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.DuiLib_ext.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor ebx, ebx
mov dword [ebp - 4], ebx
call sym.DuiLib_ext.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.DuiLib_ext.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
mov edi, dword [sym.imp.MSVCR100.dll_wcscmp]
mov esi, str.font.xml
test al, al
jne 0x1102296b
push dword [ebp - 0x3d8]
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x1102296b
call sym.DuiLib_ext.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib_ext.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.DuiLib_ext.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x1102285e
call sym.DuiLib_ext.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x11022875
push 2
push ebx
lea ecx, [ebp - 0x94]
call sym.DuiLib_ext.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call fcn.11015f27
add esp, 0xc
mov dword [ebp - 0x3d4], eax
cmp eax, ebx
jne 0x1102288a
push ebx
push str.Error_opening_zip_file
jmp 0x11022a65
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
push dword [ebp - 0x3d8]
push dword [ebp - 0x3d4]
call fcn.11014615
add esp, 0x14
test eax, eax
je 0x110228bd
push ebx
push str.Could_not_find_ziped_file
jmp 0x11022a65
mov eax, dword [ebp - 0x1a0]
mov edi, eax
cmp eax, ebx
jne 0x110228d4
push ebx
push str.File_is_empty
jmp 0x11022a65
cmp eax, 0x400000
jbe 0x110228e6
push ebx
push str.File_too_large
jmp 0x11022a65
push eax
call fcn.1104300a
push 3
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d4]
call fcn.11015f85
add esp, 0x18
cmp eax, ebx
je 0x11022938
cmp eax, 0x600
je 0x11022938
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
call sym.DuiLib_ext.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1102292d
push dword [ebp - 0x3d4]
call fcn.11015fc0
pop ecx
push ebx
push str.Could_not_unzip_file
jmp 0x11022a65
call sym.DuiLib_ext.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1102294d
push dword [ebp - 0x3d4]
call fcn.11015fc0
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3d0]
push edi
push esi
call sym.DuiLib_ext.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push esi
mov bl, al
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x11022a72
push dword [ebp - 0x3d8]
lea ecx, [ebp - 0x94]
call sym.DuiLib_ext.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push dword [ebp - 0x3d8]
push esi
call edi
pop ecx
pop ecx
test eax, eax
jne 0x11022a32
push 0xffffffffffffffff
call sym.DuiLib_ext.dll_public:_static_wchar_t_const____cdecl_DuiLib::CControlUI::GetUserDataDir_void_
push eax
lea ecx, [ebp - 0x118]
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
push esi
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call sym.DuiLib_ext.dll_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.1101153b
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], bl
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push ebx
lea ecx, [ebp - 0x94]
call sym.DuiLib_ext.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
je 0x11022a32
push dword [ebp - 0x3d8]
lea eax, [ebp - 0x118]
push eax
call sym.DuiLib_ext.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
mov ecx, eax
call sym.DuiLib_ext.dll_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.1101153b
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], bl
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.DuiLib_ext.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 - 0x3d8], eax
push ebx
cmp eax, 0xffffffff
jne 0x11022a8b
push str.Error_opening_file
mov ecx, dword [ebp - 0x3d0]
call sym.DuiLib_ext.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.110432e3
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x110228c9
cmp esi, 0x400000
ja 0x110228db
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x3d4], ebx
call fcn.1104300a
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x3d4]
push eax
push esi
push edi
push dword [ebp - 0x3d8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], esi
je 0x11022b01
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x3d0]
call sym.DuiLib_ext.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push ebx
push str.Could_not_read_file
jmp 0x11022a65
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3d0]
push esi
push edi
call sym.DuiLib_ext.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
jmp 0x1102295e