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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x110852eb
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x110d6320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
je 0x11004965
push ebx
lea ecx, [ebp - 0x94]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.DuiLib.dll_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
jne 0x110048e9
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11004a8c
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x1100490b
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11004a86
push esi
mov dword [ebp - 0x2c8], 0
call fcn.1106a948
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c8]
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 - 0x2c8], esi
je 0x11004a6c
push edi
call fcn.1106a951
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11004a86
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x11004986
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x1100499e
push 2
push 0
lea ecx, [ebp - 0x94]
call sym.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.11021f20
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x110049bb
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11004a8c
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.11021840
add esp, 0x14
test eax, eax
je 0x110049f5
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11004a8c
mov esi, dword [ebp - 0x98]
test esi, esi
jne 0x11004a13
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11004a86
push esi
call fcn.1106a948
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.11022360
add esp, 0x18
test eax, eax
je 0x11004a5a
cmp eax, 0x600
je 0x11004a5a
push edi
call fcn.1106a951
add esp, 4
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1100494e
push ebx
call fcn.11021620
jmp 0x1100494b
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11004a6c
push ebx
call fcn.11021620
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test edi, edi
jne 0x11004b07
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x11004b03
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x11004b03
push esi
mov dword [ebp - 0x2d0], 0
call fcn.1106a948
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2d0]
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 - 0x2d0], esi
je 0x11004aff
push edi
call fcn.1106a951
add esp, 4
xor eax, eax
jmp 0x11004b23
test edi, edi
jne 0x11004b07
xor eax, eax
jmp 0x11004b23
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call sym.DuiLib.dll_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push 1
push edi
mov esi, eax
call fcn.1106a8f8
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.1106a914
mov esp, ebp
pop ebp
ret 4