Function at 0x1103e8e0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11087be0
mov eax, dword fs:[0]
push eax
sub esp, 0x304
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 ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1103eb4d
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xc0]
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
test al, al
je 0x1103ea32
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0xc0]
push dword [ebp + 8]
test eax, eax
jne 0x1103e96b
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
jmp 0x1103e970
call fcn.110202b0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xc0]
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 0x1103e9ae
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], eax
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103ebc8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x1103e9d7
push ebx
call edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103ebc8
push esi
mov dword [ebp - 0x2fc], 0
call fcn.1106a948
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2fc]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
cmp dword [ebp - 0x2fc], esi
je 0x1103eb39
push edi
call fcn.1106a951
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103ebc2
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0xc0]
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 0x1103ea53
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x1103ea6b
push 2
push 0
lea ecx, [ebp - 0xc0]
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 0x1103ea88
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103ebc8
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x300]
push eax
push 1
push dword [ebp + 8]
push ebx
call fcn.11021840
add esp, 0x14
test eax, eax
je 0x1103eabf
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103ebc8
mov esi, dword [ebp - 0xc4]
test esi, esi
jne 0x1103eae0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103ebc8
push esi
call fcn.1106a948
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x300]
push ebx
call fcn.11022360
add esp, 0x18
test eax, eax
je 0x1103eb27
cmp eax, 0x600
je 0x1103eb27
push edi
call fcn.1106a951
add esp, 4
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1103ea1b
push ebx
call fcn.11021620
jmp 0x1103ea18
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1103eb39
push ebx
call fcn.11021620
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103ebba
test esi, esi
jne 0x1103eb58
call sym.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
mov esi, eax
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1103ebc8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x300], eax
push ebx
test eax, eax
jne 0x1103eb84
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1103ebc8
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1103ebc8
push esi
call fcn.1106a948
add esp, 4
mov edi, eax
push esi
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.1106d970
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x1103ec60
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x1103ebfc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x1103ec1a
push ebx
call edi
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 - 0x10]
xor ecx, ebp
call fcn.1106a914
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 0x308], 0
call fcn.1106a948
add esp, 4
mov edi, eax
lea eax, [ebp - 0x308]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
cmp dword [ebp - 0x308], esi
je 0x1103ec5c
push edi
call fcn.1106a951
add esp, 4
jmp 0x1103ebfc
test edi, edi
je 0x1103ebfc
push 4
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x30c]
push eax
push esi
push edi
call fcn.1104aa10
mov ebx, eax
push edi
mov dword [ebp - 0x304], ebx
call fcn.1106a951
add esp, 0x1c
test ebx, ebx
je 0x1103ebfc
push 0x2c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.1106def0
mov edi, dword [ebp - 0x30c]
add esp, 0xc
mov eax, dword [ebp - 0x310]
mov ebx, edi
imul ebx, dword [ebp - 0x310]
neg eax
mov dword [ebp - 0x34], eax
push 0
push 0
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
lea eax, [ebx*4]
mov byte [ebp - 0x2f1], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2f8]
push eax
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2f8], 0
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x300], eax
test eax, eax
je 0x1103ebfc
xor esi, esi
test ebx, ebx
jle 0x1103ee33
mov edx, dword [ebp - 0x304]
add edx, 3
mov dword [ebp - 0x2fc], edx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x2f8]
mov cl, byte [edx + esi*4]
mov byte [eax + esi*4 + 3], cl
mov eax, dword [ebp - 0x2f8]
cmp byte [eax + esi*4 + 3], 0xff
lea edi, [eax + esi*4]
jae 0x1103edc6
movzx eax, byte [edx + esi*4]
movzx ecx, byte [edx + esi*4 - 1]
imul ecx, eax
mov eax, 0x80808081
mov byte [ebp - 0x2f1], 1
mul ecx
shr edx, 7
mov byte [edi], dl
mov edi, dword [ebp - 0x2fc]
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 2]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x2f8]
shr edx, 7
mov byte [eax + esi*4 + 1], dl
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 3]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x2f8]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
mov edx, edi
jmp 0x1103edea
mov al, byte [edx + esi*4 - 1]
mov byte [edi], al
mov eax, dword [ebp - 0x2f8]
movzx ecx, byte [edx + esi*4 - 2]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x2f8]
movzx ecx, byte [edx + esi*4 - 3]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x1103ee24
mov byte [eax + esi*4], 0
mov eax, dword [ebp - 0x2f8]
mov byte [ebp - 0x2f1], 1
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x2f8]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x2f8]
mov byte [eax + esi*4 + 3], 0
inc esi
cmp esi, ebx
jl 0x1103ed40
mov edi, dword [ebp - 0x30c]
push dword [ebp - 0x304]
call fcn.1104aa00
push 0xa0
call fcn.1106a8c5
mov esi, eax
add esp, 8
mov dword [ebp - 0x304], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x1103ee68
lea ecx, [esi + 0x18]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
jmp 0x1103ee6a
xor esi, esi
mov eax, dword [ebp - 0x300]
mov dword [esi], eax
mov eax, dword [ebp - 0x310]
mov dword [esi + 0x10], eax
mov al, byte [ebp - 0x2f1]
mov byte [esi + 0x14], al
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], edi
jmp 0x1103ebfe