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

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x4b1020
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4f7600]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp + 0x2c0]
mov dword [ebp - 0x1c], esi
call sym.MainExtractor.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp + 0x230]
call sym.MainExtractor.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
call sym.MainExtractor.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.MainExtractor.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x45bca5
push esi
lea ecx, [ebp + 0x230]
call sym.MainExtractor.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp + 0x230]
call sym.MainExtractor.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
cmp ebx, 0xffffffff
je 0x45bc01
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x45bc01
push esi
mov dword [ebp - 0x10], 0
call fcn.00489ca7
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push 0
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 - 0x10], esi
je 0x45bd68
push edi
call fcn.0046a3e0
add esp, 4
lea ecx, [ebp + 0x230]
mov dword [ebp - 4], 0xffffffff
call sym.MainExtractor.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45bc7e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x45bc7e
push esi
mov dword [ebp - 0x14], 0
call fcn.00489ca7
add esp, 4
mov edi, eax
lea eax, [ebp - 0x14]
push 0
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 - 0x14], esi
je 0x45bd83
push edi
call fcn.0046a3e0
add esp, 4
xor eax, eax
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.00489fe1
lea esp, [ebp + 0x2b8]
pop ebp
ret 4
call sym.MainExtractor.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp + 0x230]
call sym.MainExtractor.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.MainExtractor.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x45bcc6
call sym.MainExtractor.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x45bcde
push 2
push 0
lea ecx, [ebp + 0x230]
call sym.MainExtractor.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0046d930
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x45bc01
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push ebx
call fcn.0046d110
add esp, 0x14
test eax, eax
jne 0x45bc01
mov esi, dword [ebp + 0x22c]
test esi, esi
je 0x45bc01
push esi
call fcn.00489ca7
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x18]
push ebx
call fcn.0046de10
add esp, 0x18
test eax, eax
je 0x45bd56
cmp eax, 0x600
je 0x45bd56
push edi
call fcn.0046a3e0
add esp, 4
call sym.MainExtractor.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x45bc01
push ebx
call fcn.0046cf30
jmp 0x45bbfe
call sym.MainExtractor.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x45bd68
push ebx
call fcn.0046cf30
add esp, 4
lea ecx, [ebp + 0x230]
mov dword [ebp - 4], 0xffffffff
call sym.MainExtractor.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test edi, edi
jne 0x45bd8b
jmp 0x45bc13
test edi, edi
je 0x45bc7e
mov ecx, dword [ebp - 0x20]
push esi
push edi
call sym.MainExtractor.exe_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push 1
push edi
mov esi, eax
call fcn.00489c99
add esp, 8
mov eax, esi
jmp 0x45bc80