Function at 0x1105f020
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1107a3a9
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x110a4e1c]
xor eax, ebp
mov dword [ebp - 0x64], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0xc], 0
jne 0x1105f360
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xec]
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
movzx eax, al
test eax, eax
je 0x1105f1b1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xec]
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 - 0xec]
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 dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0xffffffff
jne 0x1105f0ec
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f425
push 0
mov edx, dword [ebp - 0xf0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1105f11b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f425
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.11066ee9
add esp, 4
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0xf4]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xf0]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xf4]
cmp ecx, dword [ebp - 0x20]
je 0x1105f1ac
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x350], edx
mov eax, dword [ebp - 0x350]
push eax
call fcn.1106752b
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f425
jmp 0x1105f349
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
mov dword [ebp - 0xfc], 0
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx ecx, al
test ecx, ecx
je 0x1105f1e5
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0xfc], eax
jmp 0x1105f203
push 2
push 0
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.11021540
add esp, 0xc
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0
jne 0x1105f223
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f425
lea edx, [ebp - 0x334]
push edx
lea eax, [ebp - 0x100]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
call fcn.11021600
add esp, 0x14
test eax, eax
je 0x1105f261
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f425
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1105f287
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f425
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.11066ee9
add esp, 4
mov dword [ebp - 0x354], eax
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x14], edx
push 3
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x100]
push edx
mov eax, dword [ebp - 0xfc]
push eax
call fcn.11021740
add esp, 0x14
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
je 0x1105f32e
cmp dword [ebp - 0xf8], 0x600
je 0x1105f32e
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x358], ecx
mov edx, dword [ebp - 0x358]
push edx
call fcn.1106752b
add esp, 4
mov dword [ebp - 0x14], 0
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
jne 0x1105f317
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.110217b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f425
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx edx, al
test edx, edx
jne 0x1105f349
mov eax, dword [ebp - 0xfc]
push eax
call fcn.110217b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105f41d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
jne 0x1105f388
jmp 0x1105f425
mov eax, dword [ebp - 0x33c]
push eax
call sym.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x338], eax
cmp dword [ebp - 0x338], 0
jne 0x1105f3b9
mov ecx, dword [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1105f425
mov edx, dword [ebp - 0x33c]
push edx
call sym.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1105f3d7
jmp 0x1105f425
mov eax, dword [ebp - 0x20]
push eax
call fcn.11066ee9
add esp, 4
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.110678b0
add esp, 0xc
mov edx, dword [ebp - 0x33c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jne 0x1105f05a
cmp dword [ebp - 0x14], 0
jne 0x1105f4fd
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0xffffffff
jne 0x1105f45f
jmp 0x1105f4fd
push 0
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1105f47c
jmp 0x1105f4fd
mov dword [ebp - 0x344], 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.11066ee9
add esp, 4
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0x344]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x344]
cmp ecx, dword [ebp - 0x20]
je 0x1105f4f6
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x364], edx
mov eax, dword [ebp - 0x364]
push eax
call fcn.1106752b
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x1105f4fd
cmp dword [ebp - 0x14], 0
jne 0x1105f50a
xor eax, eax
jmp 0x1105f80c
mov dword [ebp - 0x2c], 0
push 4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.11009df0
add esp, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
push ecx
call fcn.1106752b
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x1105f557
xor eax, eax
jmp 0x1105f80c
push 0x2c
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.11067f50
add esp, 0xc
mov dword [ebp - 0x58], 0x28
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x18]
neg ecx
mov dword [ebp - 0x50], ecx
mov edx, 1
mov word [ebp - 0x4c], dx
mov eax, 0x20
mov word [ebp - 0x4a], ax
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x18]
shl ecx, 2
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x10], 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x58]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1105f5d3
xor eax, eax
jmp 0x1105f80c
mov dword [ebp - 0x348], 0
jmp 0x1105f5ee
mov ecx, dword [ebp - 0x348]
add ecx, 1
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x1c]
imul edx, dword [ebp - 0x18]
cmp dword [ebp - 0x348], edx
jge 0x1105f775
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x348]
mov esi, dword [ebp - 0x2c]
mov dl, byte [esi + edx*4 + 3]
mov byte [ecx + eax*4 + 3], dl
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + eax*4 + 3]
cmp edx, 0xff
jge 0x1105f6d8
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x2c]
movzx eax, byte [ecx + eax*4 + 2]
mov edx, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + edx*4 + 3]
imul eax, edx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp - 0x2c]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp - 0x2c]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x21], 1
jmp 0x1105f724
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x348]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x348]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x348]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x10]
jne 0x1105f770
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x10]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp - 0x10]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 0x10]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x21], 1
jmp 0x1105f5df
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.11009dd0
add esp, 4
push 0x9c
call fcn.1106825f
add esp, 4
mov dword [ebp - 0x370], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x370], 0
je 0x1105f7c0
mov ecx, dword [ebp - 0x370]
add ecx, 0x14
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
mov edx, dword [ebp - 0x370]
mov dword [ebp - 0x374], edx
jmp 0x1105f7ca
mov dword [ebp - 0x374], 0
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x60]
mov al, byte [ebp - 0x21]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.11067496
mov esp, ebp
pop ebp
ret