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

Disassembly:
push 0x3d4
mov eax, 0x4e5b2f
call fcn.004bb0e7
mov esi, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x3d8], edi
call sym.WEMediaSetup.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.WEMediaSetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x118]
call sym.WEMediaSetup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor ebx, ebx
mov dword [ebp - 4], ebx
call sym.WEMediaSetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.WEMediaSetup.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x4866c1
push esi
lea ecx, [ebp - 0x118]
call sym.WEMediaSetup.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.WEMediaSetup.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 0x486622
push str.Error_opening_file
mov ecx, edi
call sym.WEMediaSetup.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.WEMediaSetup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.004bb16a
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x486637
push ebx
push str.File_is_empty
jmp 0x486600
cmp esi, 0x400000
jbe 0x486647
push ebx
push 0x4fcc6c
jmp 0x486600
push esi
mov dword [ebp - 0x3dc], ebx
call fcn.0046fc33
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 0x4866a3
push edi
call fcn.004b77c3
pop ecx
mov ecx, dword [ebp - 0x3d8]
call sym.WEMediaSetup.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
mov ecx, dword [ebp - 0x3d8]
push ebx
push str.Could_not_read_file
jmp 0x486602
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3d8]
push esi
push edi
call sym.WEMediaSetup.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.004b77c3
pop ecx
jmp 0x486609
call sym.WEMediaSetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x118]
call sym.WEMediaSetup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.WEMediaSetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x4866e2
call sym.WEMediaSetup.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x4866f9
push 2
push ebx
lea ecx, [ebp - 0x118]
call sym.WEMediaSetup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call fcn.004838ef
add esp, 0xc
mov dword [ebp - 0x3d4], eax
cmp eax, ebx
jne 0x48670e
push ebx
push str.Error_opening_zip_file
jmp 0x486600
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x94]
call sym.WEMediaSetup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov byte [ebp - 4], 1
call sym.WEMediaSetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipBaseDepth_void_
mov ecx, eax
call sym.WEMediaSetup.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
jne 0x486763
lea eax, [ebp - 0x19c]
push esi
push eax
call sym.WEMediaSetup.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipBaseDepth_void_
mov ecx, eax
call sym.WEMediaSetup.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.0047a2a5
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call sym.WEMediaSetup.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.WEMediaSetup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
push dword [ebp - 0x3d4]
call fcn.00481fef
add esp, 0x14
test eax, eax
je 0x4867bd
push ebx
push str.Could_not_find_ziped_file
mov ecx, edi
call sym.WEMediaSetup.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.WEMediaSetup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov bl, byte [ebp - 0x3cd]
jmp 0x486609
mov eax, dword [ebp - 0x1a0]
mov edi, eax
cmp eax, ebx
jne 0x4867d7
push ebx
push str.File_is_empty
mov ecx, dword [ebp - 0x3d8]
jmp 0x486799
cmp eax, 0x400000
jbe 0x4867e6
push ebx
push 0x4fcc6c
jmp 0x4867cf
push eax
call fcn.0046fc33
push 3
push edi
mov esi, eax
push esi
push dword [ebp - 0x3e0]
push dword [ebp - 0x3d4]
call fcn.0048394d
add esp, 0x18
cmp eax, ebx
je 0x486835
cmp eax, 0x600
je 0x486835
push esi
call fcn.004b77c3
pop ecx
call sym.WEMediaSetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x48682d
push dword [ebp - 0x3d4]
call fcn.00483985
pop ecx
push ebx
push str.Could_not_unzip_file
jmp 0x4867cf
call sym.WEMediaSetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x48684a
push dword [ebp - 0x3d4]
call fcn.00483985
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3d8]
push edi
push esi
call sym.WEMediaSetup.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push esi
mov byte [ebp - 0x3cd], al
call fcn.004b77c3
pop ecx
jmp 0x4867a4