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

Disassembly:
push 0x3d4
mov eax, 0x4e102d
call fcn.004b6677
mov esi, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x3d8], edi
call sym.Update.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.Update.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x118]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor ebx, ebx
mov dword [ebp - 4], ebx
call sym.Update.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.Update.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x481cde
push esi
lea ecx, [ebp - 0x118]
call sym.Update.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x118]
call sym.Update.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 - 0x3d4], eax
push ebx
cmp eax, 0xffffffff
jne 0x481c3f
push str.Error_opening_file
mov ecx, edi
call sym.Update.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.004b66fa
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x481c54
push ebx
push str.File_is_empty
jmp 0x481c1d
cmp esi, 0x400000
jbe 0x481c64
push ebx
push 0x4f7cac
jmp 0x481c1d
push esi
mov dword [ebp - 0x3dc], ebx
call fcn.0046b32d
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x3dc]
push eax
push esi
push edi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3dc], esi
je 0x481cc0
push edi
call fcn.004b1e05
pop ecx
mov ecx, dword [ebp - 0x3d8]
call sym.Update.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
mov ecx, dword [ebp - 0x3d8]
push ebx
push str.Could_not_read_file
jmp 0x481c1f
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3d8]
push esi
push edi
call sym.Update.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.004b1e05
pop ecx
jmp 0x481c26
call sym.Update.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x118]
call sym.Update.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.Update.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x481cff
call sym.Update.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x481d16
push 2
push ebx
lea ecx, [ebp - 0x118]
call sym.Update.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call fcn.0047ef08
add esp, 0xc
mov dword [ebp - 0x3d4], eax
cmp eax, ebx
jne 0x481d2b
push ebx
push str.Error_opening_zip_file
jmp 0x481c1d
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x94]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov byte [ebp - 4], 1
call sym.Update.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipBaseDepth_void_
mov ecx, eax
call sym.Update.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
jne 0x481d80
lea eax, [ebp - 0x19c]
push esi
push eax
call sym.Update.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipBaseDepth_void_
mov ecx, eax
call sym.Update.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00475951
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3e0]
push eax
push 1
lea ecx, [ebp - 0x94]
call sym.Update.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
push dword [ebp - 0x3d4]
call fcn.0047d608
add esp, 0x14
test eax, eax
je 0x481dda
push ebx
push str.Could_not_find_ziped_file
mov ecx, edi
call sym.Update.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x3cd], al
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], bl
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov bl, byte [ebp - 0x3cd]
jmp 0x481c26
mov eax, dword [ebp - 0x1a0]
mov edi, eax
cmp eax, ebx
jne 0x481df4
push ebx
push str.File_is_empty
mov ecx, dword [ebp - 0x3d8]
jmp 0x481db6
cmp eax, 0x400000
jbe 0x481e03
push ebx
push 0x4f7cac
jmp 0x481dec
push eax
call fcn.0046b32d
push 3
push edi
mov esi, eax
push esi
push dword [ebp - 0x3e0]
push dword [ebp - 0x3d4]
call fcn.0047ef66
add esp, 0x18
cmp eax, ebx
je 0x481e52
cmp eax, 0x600
je 0x481e52
push esi
call fcn.004b1e05
pop ecx
call sym.Update.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x481e4a
push dword [ebp - 0x3d4]
call fcn.0047ef9e
pop ecx
push ebx
push str.Could_not_unzip_file
jmp 0x481dec
call sym.Update.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x481e67
push dword [ebp - 0x3d4]
call fcn.0047ef9e
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3d8]
push edi
push esi
call sym.Update.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push esi
mov byte [ebp - 0x3cd], al
call fcn.004b1e05
pop ecx
jmp 0x481dc1