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

Disassembly:
push 0x2d0
mov eax, 0x5ba207
call fcn.005a73e9
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], esi
call sym.GameDemo_u.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.GameDemo_u.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.GameDemo_u.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.GameDemo_u.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x5956f5
push esi
lea ecx, [ebp - 0x94]
call sym.GameDemo_u.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.GameDemo_u.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2c8], ebx
cmp ebx, 0xffffffff
jne 0x595698
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.GameDemo_u.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x5957eb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x5956af
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x595684
push esi
mov dword [ebp - 0x2d0], edi
call fcn.005a6cca
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push ebx
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x5957d4
push ebx
call fcn.005a8607
pop ecx
jmp 0x595684
call sym.GameDemo_u.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.GameDemo_u.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.GameDemo_u.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x595716
call sym.GameDemo_u.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x59572d
push 2
push edi
lea ecx, [ebp - 0x94]
call sym.GameDemo_u.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0059c2a2
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp eax, edi
je 0x595684
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push esi
push dword [ebp - 0x2c8]
call fcn.0059a9ba
add esp, 0x14
test eax, eax
jne 0x595684
mov esi, dword [ebp - 0x98]
cmp esi, edi
je 0x595684
push esi
call fcn.005a6cca
push 3
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x2d4]
push dword [ebp - 0x2c8]
call fcn.0059c300
add esp, 0x18
cmp eax, edi
je 0x5957bf
cmp eax, 0x600
je 0x5957bf
push ebx
call fcn.005a8607
pop ecx
call sym.GameDemo_u.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x595684
push dword [ebp - 0x2c8]
call fcn.0059c338
jmp 0x5956f2
call sym.GameDemo_u.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x5957d4
push dword [ebp - 0x2c8]
call fcn.0059c338
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.GameDemo_u.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp ebx, edi
jne 0x595875
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2c8], ebx
cmp ebx, 0xffffffff
je 0x595871
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x59582b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x595871
push esi
mov dword [ebp - 0x2cc], edi
call fcn.005a6cca
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push ebx
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x59586d
push ebx
call fcn.005a8607
pop ecx
xor ebx, ebx
cmp ebx, edi
jne 0x595875
xor eax, eax
jmp 0x59588d
mov ecx, dword [ebp - 0x2dc]
push esi
push ebx
call sym.GameDemo_u.exe_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push ebx
mov esi, eax
call fcn.005a8607
pop ecx
mov eax, esi
call fcn.005a7433
ret 4