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

Disassembly:
push 0x3d0
mov eax, 0x5fc1c0
call fcn.0059bbd7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3d4], eax
mov esi, ebx
mov edi, ebx
call sym.360huabao.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], ebx
call sym.360huabao.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.360huabao.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x589656
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x94]
call sym.360huabao.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push ebx
push 0x80
push 3
push ebx
push 1
push accept
lea ecx, [ebp - 0x94]
call sym.360huabao.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 - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x589600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x5897e9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x5895ec
push edi
mov dword [ebp - 0x3d8], ebx
call fcn.0059af42
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push esi
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], edi
je 0x5897d6
push esi
call fcn.0059aa0f
pop ecx
mov esi, ebx
jmp 0x5895ec
call sym.360huabao.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.360huabao.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.360huabao.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x58967d
call sym.360huabao.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0x3d0], eax
jmp 0x5896eb
call sym.360huabao.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipPwd_void_
push eax
lea ecx, [ebp - 0x19c]
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call sym.360huabao.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.005427b2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x3d8], eax
call sym.360huabao.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0043ad3b
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d8]
pop ecx
pop ecx
test eax, eax
je 0x5896d7
push eax
call fcn.0059aa0f
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [ebp - 0x3d0]
test eax, eax
je 0x5895ec
push 0xffffffffffffffff
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], ebx
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
push 0x6361dc
push 0x633b6c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call sym.360huabao.exe_public:_int___thiscall_DuiLib::CDuiString::Replace_wchar_t_const___wchar_t_const__
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call sym.360huabao.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
push dword [ebp - 0x3d0]
call fcn.0043ada9
add esp, 0x14
test eax, eax
je 0x589763
lea ecx, [ebp - 0x118]
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x5895ec
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x589753
push edi
call fcn.0059af42
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d0]
call fcn.0043ae2a
add esp, 0x14
test eax, eax
je 0x5897b6
cmp eax, 0x600
je 0x5897b6
push esi
call fcn.0059aa0f
pop ecx
mov esi, ebx
call sym.360huabao.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x589753
push dword [ebp - 0x3d0]
call fcn.0043ae45
pop ecx
jmp 0x589753
call sym.360huabao.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x5897cb
push dword [ebp - 0x3d0]
call fcn.0043ae45
pop ecx
lea ecx, [ebp - 0x118]
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.360huabao.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test esi, esi
jne 0x589864
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d4], eax
cmp eax, 0xffffffff
je 0x589860
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x589860
push edi
mov dword [ebp - 0x3d0], ebx
call fcn.0059af42
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d0]
push eax
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x589860
push esi
call fcn.0059aa0f
pop ecx
mov esi, ebx
test esi, esi
je 0x589876
push edi
push esi
call sym.360huabao.exe_public:_static_class_Gdiplus::Image____cdecl_DuiLib::CRenderEngine::GdiplusLoadImage_void___unsigned_int_
push esi
mov ebx, eax
call fcn.0059aa0f
add esp, 0xc
mov eax, ebx
call fcn.0059bb81
ret