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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63325b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CMarkup::Release_void_
call sym.WnPicViewer.exe_public:_static_class_UiLib::CDuiString_const____cdecl_UiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::constructor_class_UiLib::CDuiString_const__
mov dword [ebp - 4], 0
call sym.WnPicViewer.exe_public:_static_class_UiLib::CDuiString_const____cdecl_UiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x4e45ab
push ebx
lea ecx, [ebp - 0x94]
call sym.WnPicViewer.exe_public:_class_UiLib::CDuiString_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.WnPicViewer.exe_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
cmp ebx, 0xffffffff
jne 0x4e4520
push str.Error_opening_file
mov ecx, esi
call sym.WnPicViewer.exe_private:_bool___thiscall_UiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x4e46f8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4e463b
cmp edi, 0x400000
ja 0x4e4658
push edi
mov dword [ebp - 0x2cc], 0
call fcn.0052cd80
add esp, 4
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x2cc]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], edi
je 0x4e45a2
mov edi, dword [ebp - 0x2c8]
push edi
call fcn.0052ef7e
add esp, 4
mov ecx, esi
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
mov ecx, esi
call sym.WnPicViewer.exe_private:_bool___thiscall_UiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x4e46f8
push dword [ebp + 0xc]
push edi
jmp 0x4e46df
call sym.WnPicViewer.exe_public:_static_class_UiLib::CDuiString_const____cdecl_UiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.WnPicViewer.exe_public:_class_UiLib::CDuiString_const____thiscall_UiLib::CDuiString::operator_class_UiLib::CDuiString_const__
call sym.WnPicViewer.exe_public:_static_bool___cdecl_UiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x4e45cc
call sym.WnPicViewer.exe_public:_static_void____cdecl_UiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x4e45e4
push 2
push 0
lea ecx, [ebp - 0x94]
call sym.WnPicViewer.exe_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0051f150
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4e45fe
push eax
push str.Error_opening_zip_file
mov ecx, esi
call sym.WnPicViewer.exe_private:_bool___thiscall_UiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x4e46f8
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0051ea60
add esp, 0x14
test eax, eax
je 0x4e4631
push 0
push str.Could_not_find_ziped_file
mov ecx, esi
call sym.WnPicViewer.exe_private:_bool___thiscall_UiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x4e46f8
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x4e4650
push 0
push str.File_is_empty
mov ecx, esi
call sym.WnPicViewer.exe_private:_bool___thiscall_UiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x4e46f8
cmp ebx, 0x400000
jbe 0x4e466d
push 0
push 0x651368
mov ecx, esi
call sym.WnPicViewer.exe_private:_bool___thiscall_UiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x4e46f8
push ebx
call fcn.0052cd80
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0051f580
add esp, 0x18
test eax, eax
je 0x4e46c9
cmp eax, 0x600
je 0x4e46c9
push dword [ebp - 0x2c8]
call fcn.0052ef7e
add esp, 4
call sym.WnPicViewer.exe_public:_static_bool___cdecl_UiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x4e46b7
push edi
call fcn.0051e850
add esp, 4
push 0
push str.Could_not_unzip_file
mov ecx, esi
call sym.WnPicViewer.exe_private:_bool___thiscall_UiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x4e46f8
call sym.WnPicViewer.exe_public:_static_bool___cdecl_UiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x4e46db
push edi
call fcn.0051e850
add esp, 4
push dword [ebp + 0xc]
push ebx
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push edi
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.0052ef7e
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 8