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

Disassembly:
push 0x3cc
mov eax, 0x4e5af1
call fcn.004be65b
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d8], ebx
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.360huabaosetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
and dword [ebp - 4], 0
call sym.360huabaosetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.360huabaosetup.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x49dcb8
push ebx
lea ecx, [ebp - 0x94]
call sym.360huabaosetup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
xor ebx, ebx
lea ecx, [ebp - 0x94]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
call sym.360huabaosetup.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 - 0x3d0], eax
push ebx
cmp eax, 0xffffffff
jne 0x49dc14
push str.Error_opening_file
jmp 0x49dd47
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x49dc2c
push ebx
push str.File_is_empty
jmp 0x49dd47
cmp edi, 0x400000
jbe 0x49dc3f
push ebx
push str.File_too_large
jmp 0x49dd47
push edi
mov dword [ebp - 0x3d4], ebx
call fcn.004bdd47
pop ecx
mov ebx, eax
lea eax, [ebp - 0x3d4]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x3d0]
mov dword [ebp - 0x3d8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], edi
je 0x49dc99
push ebx
call fcn.004bdb09
pop ecx
mov ecx, esi
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
jmp 0x49dd47
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call sym.360huabaosetup.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push dword [ebp - 0x3d8]
mov bl, al
call fcn.004bdb09
pop ecx
jmp 0x49de64
call sym.360huabaosetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.360huabaosetup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.360huabaosetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x49dcdb
call sym.360huabaosetup.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov edi, eax
jmp 0x49dd3d
call sym.360huabaosetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipPwd_void_
push eax
lea ecx, [ebp - 0x19c]
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call sym.360huabaosetup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.004848e6
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x94]
push ebx
call sym.360huabaosetup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.00465330
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x49dd28
push ebx
call fcn.004bdb09
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ebx, dword [ebp - 0x3d8]
test edi, edi
jne 0x49dd55
push edi
push str.Error_opening_zip_file
mov ecx, esi
call sym.360huabaosetup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x49de64
and dword [ebp - 0x3d4], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push ebx
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
push 0x5010dc
push 0x5010bc
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call sym.360huabaosetup.exe_public:_int___thiscall_DuiLib::CDuiString::Replace_wchar_t_const___wchar_t_const__
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call sym.360huabaosetup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
push edi
call fcn.004653d0
add esp, 0x14
test eax, eax
je 0x49ddb5
push 0
push str.Could_not_find_ziped_file
jmp 0x49de23
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x49ddc7
push ebx
push str.File_is_empty
jmp 0x49de23
cmp ebx, 0x400000
jbe 0x49ddd8
push 0
push str.File_too_large
jmp 0x49de23
push ebx
call fcn.004bdd47
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.00465540
add esp, 0x14
test eax, eax
je 0x49de2e
cmp eax, 0x600
je 0x49de2e
push dword [ebp - 0x3d0]
call fcn.004bdb09
pop ecx
call sym.360huabaosetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x49de1c
push edi
call fcn.00465590
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call sym.360huabaosetup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x49de59
call sym.360huabaosetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x49de3e
push edi
call fcn.00465590
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call sym.360huabaosetup.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.004bdb09
pop ecx
lea ecx, [ebp - 0x118]
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x94]
call sym.360huabaosetup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.004be616
ret 8