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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1107a0fb
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x110a4e1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x330], ecx
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
movzx eax, al
test eax, eax
je 0x1105d1a7
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x9c]
call sym.DuiLib.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 - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x1105cfe2
push 0
push str.Error_opening_file
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2fd], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2fd]
jmp 0x1105d47c
push 0
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x1105d035
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2fe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2fe]
jmp 0x1105d47c
cmp dword [ebp - 0xa0], 0x400000
jbe 0x1105d076
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2ff], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2ff]
jmp 0x1105d47c
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xa0]
push eax
call fcn.11066ce9
add esp, 4
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0xb0], ecx
push 0
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [ebp - 0xa0]
je 0x1105d13b
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x308], edx
mov eax, dword [ebp - 0x308]
push eax
call fcn.1106732b
add esp, 4
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x309], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x309]
jmp 0x1105d47c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
mov byte [ebp - 0xa5], al
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x310], ecx
mov edx, dword [ebp - 0x310]
push edx
call fcn.1106732b
add esp, 4
mov al, byte [ebp - 0xa5]
mov byte [ebp - 0x311], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x311]
jmp 0x1105d47c
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
mov dword [ebp - 0xbc], 0
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx ecx, al
test ecx, ecx
je 0x1105d1db
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0xbc], eax
jmp 0x1105d1f9
push 2
push 0
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.11021570
add esp, 0xc
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x1105d237
push 0
push str.Error_opening_zip_file
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x312], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x312]
jmp 0x1105d47c
lea edx, [ebp - 0x2f4]
push edx
lea eax, [ebp - 0xc0]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.11021630
add esp, 0x14
test eax, eax
je 0x1105d293
push 0
push str.Could_not_find_ziped_file
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x313], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x313]
jmp 0x1105d47c
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jne 0x1105d2dd
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x314], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x314]
jmp 0x1105d47c
cmp dword [ebp - 0xb8], 0x400000
jbe 0x1105d31e
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x315], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x315]
jmp 0x1105d47c
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.11066ce9
add esp, 4
mov dword [ebp - 0x31c], eax
mov edx, dword [ebp - 0x31c]
mov dword [ebp - 0x2fc], edx
push 3
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x2fc]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0xbc]
push eax
call fcn.11021770
add esp, 0x14
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x1105d3eb
cmp dword [ebp - 0xb4], 0x600
je 0x1105d3eb
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x320], ecx
mov edx, dword [ebp - 0x320]
push edx
call fcn.1106732b
add esp, 4
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
jne 0x1105d3b6
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.110217e0
add esp, 4
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x321], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x321]
jmp 0x1105d47c
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx edx, al
test edx, edx
jne 0x1105d406
mov eax, dword [ebp - 0xbc]
push eax
call fcn.110217e0
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
mov ecx, dword [ebp - 0x330]
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
mov byte [ebp - 0x2f5], al
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
push edx
call fcn.1106732b
add esp, 4
mov al, byte [ebp - 0x2f5]
mov byte [ebp - 0x329], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x329]
jmp 0x1105d47c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.11067296
mov esp, ebp
pop ebp
ret 8