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

Disassembly:
push 0x3d4
mov eax, 0x4e15dd
call fcn.004b6c27
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 0x48228f
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 0x4821f0
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.004b6caa
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x482205
push ebx
push str.File_is_empty
jmp 0x4821ce
cmp esi, 0x400000
jbe 0x482215
push ebx
push 0x4f7cac
jmp 0x4821ce
push esi
mov dword [ebp - 0x3dc], ebx
call fcn.0046b8db
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 0x482271
push edi
call fcn.004b23b5
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 0x4821d0
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.004b23b5
pop ecx
jmp 0x4821d7
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 0x4822b0
call sym.WEMediaSetup.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x4822c7
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.0047f4b9
add esp, 0xc
mov dword [ebp - 0x3d4], eax
cmp eax, ebx
jne 0x4822dc
push ebx
push str.Error_opening_zip_file
jmp 0x4821ce
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 0x482331
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.00475eff
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.0047dbb9
add esp, 0x14
test eax, eax
je 0x48238b
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 0x4821d7
mov eax, dword [ebp - 0x1a0]
mov edi, eax
cmp eax, ebx
jne 0x4823a5
push ebx
push str.File_is_empty
mov ecx, dword [ebp - 0x3d8]
jmp 0x482367
cmp eax, 0x400000
jbe 0x4823b4
push ebx
push 0x4f7cac
jmp 0x48239d
push eax
call fcn.0046b8db
push 3
push edi
mov esi, eax
push esi
push dword [ebp - 0x3e0]
push dword [ebp - 0x3d4]
call fcn.0047f517
add esp, 0x18
cmp eax, ebx
je 0x482403
cmp eax, 0x600
je 0x482403
push esi
call fcn.004b23b5
pop ecx
call sym.WEMediaSetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x4823fb
push dword [ebp - 0x3d4]
call fcn.0047f54f
pop ecx
push ebx
push str.Could_not_unzip_file
jmp 0x48239d
call sym.WEMediaSetup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x482418
push dword [ebp - 0x3d4]
call fcn.0047f54f
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.004b23b5
pop ecx
jmp 0x482372