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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11189488
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x112194bc]
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 - 0x284], ecx
lea eax, [ebp - 0x294]
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_const
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.11017680
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x28c]
mov dword [ebp - 4], 0
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_const
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
add esp, 0x14
cmp dword [eax + 4], 0
jne 0x110167e5
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push dword [ebp + 8]
push eax
call fcn.11017680
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 1
jb 0x110166ec
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.110170b0
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x11016734
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1101672a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11016a65
push edx
push ecx
call fcn.110d0a5e
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1101676f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.1100e280
jmp 0x110169b5
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x1101678e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x110169af
push esi
mov dword [ebp - 0x278], 0
call fcn.110d0a6c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x278]
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 - 0x278], esi
je 0x1101693f
push edi
call fcn.110d0a75
add esp, 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x110169af
lea eax, [ebp - 0x280]
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_const
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x44]
push eax
call fcn.11017680
add esp, 0x10
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 2
jb 0x11016811
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.110170b0
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x11016859
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1101684f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11016a6a
push edx
push ecx
call fcn.110d0a5e
add esp, 8
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x11016869
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x1101687f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.1104b660
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x11016899
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x110169b5
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x288]
push eax
push 1
push dword [ebp + 8]
push ebx
call fcn.1104ab00
add esp, 0x14
test eax, eax
je 0x110168cd
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x110169b5
mov esi, dword [ebp - 0x48]
test esi, esi
jne 0x110168e8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x110169af
push esi
call fcn.110d0a6c
push esi
mov edi, eax
push edi
push dword [ebp - 0x288]
push ebx
call fcn.1104bdb0
add esp, 0x14
test eax, eax
je 0x1101692d
cmp eax, 0x600
je 0x1101692d
push edi
call fcn.110d0a75
add esp, 4
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x110167d1
push ebx
call fcn.1104a660
jmp 0x110167ce
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1101693f
push ebx
call fcn.1104a660
add esp, 4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov word [eax], cx
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x11016997
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1101698d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11016a6f
push edx
push ecx
call fcn.110d0a5e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test edi, edi
jne 0x11016a2d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x11016a29
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x11016a29
push esi
mov dword [ebp - 0x27c], 0
call fcn.110d0a6c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x27c]
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 - 0x27c], esi
je 0x11016a25
push edi
call fcn.110d0a75
add esp, 4
xor eax, eax
jmp 0x11016a47
test edi, edi
jne 0x11016a2d
xor eax, eax
jmp 0x11016a47
mov ecx, dword [ebp - 0x284]
push esi
push edi
call sym.DuiLib.dll_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push edi
mov esi, eax
call fcn.110d0a75
add esp, 4
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.110d0a88
mov esp, ebp
pop ebp
ret 8
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
int3