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

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0x18
mov eax, 0x6385cf
call fcn.005bec7a
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp + 0x2c0]
mov dword [ebp - 0x20], esi
call sym.demo.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp + 0x230]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.demo.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.demo.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x59546e
push esi
lea ecx, [ebp + 0x230]
call sym.demo.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp + 0x230]
call sym.demo.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 - 0x10], eax
cmp eax, 0xffffffff
jne 0x595429
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x595548
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x595415
push esi
mov dword [ebp - 0x18], edi
call fcn.005b2e02
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x595535
push ebx
call fcn.005b467e
pop ecx
jmp 0x595415
call sym.demo.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp + 0x230]
call sym.demo.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.demo.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x59548f
call sym.demo.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x5954a6
push 2
push edi
lea ecx, [ebp + 0x230]
call sym.demo.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.005a9c03
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x595415
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x10]
call fcn.005a8301
add esp, 0x14
test eax, eax
jne 0x595415
mov esi, dword [ebp + 0x22c]
cmp esi, edi
je 0x595415
push esi
call fcn.005b2e02
push 3
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.005a9c60
add esp, 0x18
cmp eax, edi
je 0x595523
cmp eax, 0x600
je 0x595523
push ebx
call fcn.005b467e
pop ecx
call sym.demo.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x595415
push dword [ebp - 0x10]
call fcn.005a9c9a
jmp 0x59546b
call sym.demo.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x595535
push dword [ebp - 0x10]
call fcn.005a9c9a
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp ebx, edi
jne 0x5955b2
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x5955ae
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x5955ae
push esi
mov dword [ebp - 0x14], edi
call fcn.005b2e02
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x5955aa
push ebx
call fcn.005b467e
pop ecx
xor ebx, ebx
cmp ebx, edi
jne 0x5955b2
xor eax, eax
jmp 0x5955c7
mov ecx, dword [ebp - 0x24]
push esi
push ebx
call sym.demo.exe_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push ebx
mov esi, eax
call fcn.005b4622
pop ecx
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 + 0x2b4]
xor ecx, ebp
call fcn.005b4b30
add ebp, 0x2b8
leave
ret 4