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

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x56f8f4]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0x18
mov eax, 0x50e277
call fcn.004c3211
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp + 0x2c0]
mov dword [ebp - 0x20], esi
call sym.tpop4.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp + 0x230]
call sym.tpop4.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.tpop4.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.tpop4.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x4599e4
push esi
lea ecx, [ebp + 0x230]
call sym.tpop4.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.tpop4.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 0x45999f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call sym.tpop4.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x459abe
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x45998b
push esi
mov dword [ebp - 0x18], edi
call fcn.0043014d
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 0x459aab
push ebx
call fcn.004c3a96
pop ecx
jmp 0x45998b
call sym.tpop4.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp + 0x230]
call sym.tpop4.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.tpop4.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x459a05
call sym.tpop4.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x459a1c
push 2
push edi
lea ecx, [ebp + 0x230]
call sym.tpop4.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.004845da
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x45998b
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x10]
call fcn.00482cd8
add esp, 0x14
test eax, eax
jne 0x45998b
mov esi, dword [ebp + 0x22c]
cmp esi, edi
je 0x45998b
push esi
call fcn.0043014d
push 3
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00484637
add esp, 0x18
cmp eax, edi
je 0x459a99
cmp eax, 0x600
je 0x459a99
push ebx
call fcn.004c3a96
pop ecx
call sym.tpop4.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x45998b
push dword [ebp - 0x10]
call fcn.00484671
jmp 0x4599e1
call sym.tpop4.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x459aab
push dword [ebp - 0x10]
call fcn.00484671
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call sym.tpop4.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp ebx, edi
jne 0x459b28
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 0x459b24
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x459b24
push esi
mov dword [ebp - 0x14], edi
call fcn.0043014d
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 0x459b20
push ebx
call fcn.004c3a96
pop ecx
xor ebx, ebx
cmp ebx, edi
jne 0x459b28
xor eax, eax
jmp 0x459b3d
mov ecx, dword [ebp - 0x24]
push esi
push ebx
call sym.tpop4.exe_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push ebx
mov esi, eax
call fcn.004c2e11
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.004c3202
add ebp, 0x2b8
leave
ret 4