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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4723e0
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c8], ecx
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.microClientTemplate.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
and dword [ebp - 4], 0
call sym.microClientTemplate.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.microClientTemplate.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
movzx eax, al
test eax, eax
je 0x40db58
push dword [ebp + 8]
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_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 - 0x94]
call sym.microClientTemplate.exe_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 - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0xffffffff
jne 0x40d9b3
push 0
push str.Error_opening_file
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2da], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2da]
jmp 0x40ddfd
push 0
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x40da02
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2cf], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2cf]
jmp 0x40ddfd
cmp dword [ebp - 0x2e0], 0x400000
jbe 0x40da40
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2d0], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d0]
jmp 0x40ddfd
and dword [ebp - 0x2f4], 0
push dword [ebp - 0x2e0]
call fcn.0040d073
pop ecx
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x2f0], eax
push 0
lea eax, [ebp - 0x2f4]
push eax
push dword [ebp - 0x2e0]
push dword [ebp - 0x2f0]
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f4]
cmp eax, dword [ebp - 0x2e0]
je 0x40daf5
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x30c], eax
push dword [ebp - 0x30c]
call fcn.0046093f
pop ecx
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2dc], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2dc]
jmp 0x40ddfd
push dword [ebp + 0xc]
push dword [ebp - 0x2e0]
push dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
mov byte [ebp - 0x2cb], al
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2fc], eax
push dword [ebp - 0x2fc]
call fcn.0046093f
pop ecx
mov al, byte [ebp - 0x2cb]
mov byte [ebp - 0x2d1], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d1]
jmp 0x40ddfd
call sym.microClientTemplate.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
and dword [ebp - 0x2d8], 0
call sym.microClientTemplate.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
je 0x40db89
call sym.microClientTemplate.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0x2d8], eax
jmp 0x40dba7
push 2
push 0
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0044cf5d
add esp, 0xc
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
jne 0x40dbe2
push 0
push str.Error_opening_zip_file
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2cd], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2cd]
jmp 0x40ddfd
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x308]
push eax
push 1
push dword [ebp + 8]
push dword [ebp - 0x2d8]
call fcn.0044c4f8
add esp, 0x14
test eax, eax
je 0x40dc39
push 0
push str.Could_not_find_ziped_file
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2db], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2db]
jmp 0x40ddfd
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 0
jne 0x40dc80
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2c9], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2c9]
jmp 0x40ddfd
cmp dword [ebp - 0x2e4], 0x400000
jbe 0x40dcbe
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2d9], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d9]
jmp 0x40ddfd
push dword [ebp - 0x2e4]
call fcn.0040d073
pop ecx
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2e8], eax
push 3
push dword [ebp - 0x2e4]
push dword [ebp - 0x2e8]
push dword [ebp - 0x308]
push dword [ebp - 0x2d8]
call fcn.0044d572
add esp, 0x14
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
je 0x40dd7b
cmp dword [ebp - 0x2f8], 0x600
je 0x40dd7b
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x300], eax
push dword [ebp - 0x300]
call fcn.0046093f
pop ecx
call sym.microClientTemplate.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
jne 0x40dd49
push dword [ebp - 0x2d8]
call fcn.0044c261
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2ca], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2ca]
jmp 0x40ddfd
call sym.microClientTemplate.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
jne 0x40dd93
push dword [ebp - 0x2d8]
call fcn.0044c261
pop ecx
push dword [ebp + 0xc]
push dword [ebp - 0x2e4]
push dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2c8]
call sym.microClientTemplate.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
mov byte [ebp - 0x2cc], al
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x304], eax
push dword [ebp - 0x304]
call fcn.0046093f
pop ecx
mov al, byte [ebp - 0x2cc]
mov byte [ebp - 0x2ce], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.microClientTemplate.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2ce]
jmp 0x40ddfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004607fb
mov esp, ebp
pop ebp
ret 8