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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63489b
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
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 dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d0], ebx
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
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
je 0x503355
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
cmp ebx, 0xffffffff
jne 0x5032d9
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
jmp 0x50347c
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x5032fb
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
jmp 0x503476
push esi
mov dword [ebp - 0x2cc], 0
call fcn.0052cd80
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2cc]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x50345c
push edi
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_
jmp 0x503476
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 0x503376
call sym.WnPicViewer.exe_public:_static_void____cdecl_UiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x50338e
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 ebx, eax
test ebx, ebx
jne 0x5033ab
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
jmp 0x50347c
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2d0]
push ebx
call fcn.0051ea60
add esp, 0x14
test eax, eax
je 0x5033e5
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
jmp 0x50347c
mov esi, dword [ebp - 0x98]
test esi, esi
jne 0x503403
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
jmp 0x503476
push esi
call fcn.0052cd80
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0051f580
add esp, 0x18
test eax, eax
je 0x50344a
cmp eax, 0x600
je 0x50344a
push edi
call fcn.0052ef7e
add esp, 4
call sym.WnPicViewer.exe_public:_static_bool___cdecl_UiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x50333e
push ebx
call fcn.0051e850
jmp 0x50333b
call sym.WnPicViewer.exe_public:_static_bool___cdecl_UiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x50345c
push ebx
call fcn.0051e850
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
test edi, edi
jne 0x5034f7
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5034f3
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x5034f3
push esi
mov dword [ebp - 0x2c8], 0
call fcn.0052cd80
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x5034ef
push edi
call fcn.0052ef7e
add esp, 4
xor eax, eax
jmp 0x503511
test edi, edi
jne 0x5034f7
xor eax, eax
jmp 0x503511
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call sym.WnPicViewer.exe_private:_class_Gdiplus::Image____thiscall_UiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push edi
mov esi, eax
call fcn.0052d900
add esp, 4
mov eax, esi
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 4