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

Disassembly:
push 0x2cc
mov eax, 0x4e00ea
call fcn.004b653c
mov dword [ebp - 0x2d8], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2d4], esi
call sym.GameDownloader.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.GameDownloader.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.GameDownloader.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
or ebx, 0xffffffff
test al, al
je 0x459b1b
push esi
lea ecx, [ebp - 0x94]
call sym.GameDownloader.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call sym.GameDownloader.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2c8], edi
cmp edi, ebx
jne 0x459abb
mov dword [ebp - 4], ebx
jmp 0x459bd0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x459ad3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x459ab3
and dword [ebp - 0x2cc], 0
push esi
call fcn.004b5f5f
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push edi
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 0x459c34
push edi
call fcn.004b5d5d
pop ecx
jmp 0x459ab3
call sym.GameDownloader.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.GameDownloader.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.GameDownloader.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x459b3c
call sym.GameDownloader.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x459b53
push 2
push edi
lea ecx, [ebp - 0x94]
call sym.GameDownloader.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.00440e72
add esp, 0xc
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x459bcc
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2d0]
push ecx
push 1
push esi
push eax
call fcn.004408e7
add esp, 0x14
test eax, eax
jne 0x459bcc
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x459bcc
push esi
call fcn.004b5f5f
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
call fcn.0044125c
add esp, 0x18
test eax, eax
je 0x459c1f
cmp eax, 0x600
je 0x459c1f
push edi
call fcn.004b5d5d
pop ecx
call sym.GameDownloader.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x459bcc
push dword [ebp - 0x2c8]
call fcn.00440713
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x459c15
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x459c48
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.004b64fa
ret 4
call sym.GameDownloader.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x459c34
push dword [ebp - 0x2c8]
call fcn.00440713
pop ecx
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], ebx
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test edi, edi
jne 0x459c85
jmp 0x459bdb
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004b5f5f
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
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 0x459c81
push edi
call fcn.004b5d5d
pop ecx
jmp 0x459c15
test edi, edi
je 0x459c15
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call sym.GameDownloader.exe_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push edi
mov esi, eax
call fcn.004b5d5d
pop ecx
mov eax, esi
jmp 0x459c17