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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1107a1a7
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x110a4e1c]
xor eax, ebp
mov dword [ebp - 0x38], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0xc], 0
jne 0x1105f970
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xc4]
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 0x1105f7c1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc4]
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 - 0xc4]
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 - 0xc8], eax
cmp dword [ebp - 0xc8], 0xffffffff
jne 0x1105f6fc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa35
push 0
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1105f72b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa35
mov dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.11066ce9
add esp, 4
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xcc]
cmp ecx, dword [ebp - 0x24]
je 0x1105f7bc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x368], edx
mov eax, dword [ebp - 0x368]
push eax
call fcn.1106732b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa35
jmp 0x1105f959
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
mov dword [ebp - 0xd4], 0
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx ecx, al
test ecx, ecx
je 0x1105f7f5
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0xd4], eax
jmp 0x1105f813
push 2
push 0
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.11021570
add esp, 0xc
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x1105f833
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa35
lea edx, [ebp - 0x30c]
push edx
lea eax, [ebp - 0xd8]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call fcn.11021630
add esp, 0x14
test eax, eax
je 0x1105f871
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa35
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1105f897
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa35
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.11066ce9
add esp, 4
mov dword [ebp - 0x36c], eax
mov edx, dword [ebp - 0x36c]
mov dword [ebp - 0x18], edx
push 3
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xd8]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call fcn.11021770
add esp, 0x14
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
je 0x1105f93e
cmp dword [ebp - 0xd0], 0x600
je 0x1105f93e
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
push edx
call fcn.1106732b
add esp, 4
mov dword [ebp - 0x18], 0
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
jne 0x1105f927
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.110217e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa35
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx edx, al
test edx, edx
jne 0x1105f959
mov eax, dword [ebp - 0xd4]
push eax
call fcn.110217e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fa2d
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 - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x1105f998
jmp 0x1105fa35
mov eax, dword [ebp - 0x314]
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 - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x1105f9c9
mov ecx, dword [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1105fa35
mov edx, dword [ebp - 0x314]
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 - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1105f9e7
jmp 0x1105fa35
mov eax, dword [ebp - 0x24]
push eax
call fcn.11066ce9
add esp, 4
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.110676b0
add esp, 0xc
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jne 0x1105f66a
cmp dword [ebp - 0x18], 0
jne 0x1105fb0d
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 - 0x318], eax
cmp dword [ebp - 0x318], 0xffffffff
jne 0x1105fa6f
jmp 0x1105fb0d
push 0
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1105fa8c
jmp 0x1105fb0d
mov dword [ebp - 0x31c], 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.11066ce9
add esp, 4
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0x31c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x31c]
cmp ecx, dword [ebp - 0x24]
je 0x1105fb06
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x37c], edx
mov eax, dword [ebp - 0x37c]
push eax
call fcn.1106732b
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x1105fb0d
cmp dword [ebp - 0x18], 0
jne 0x1105fb1a
xor eax, eax
jmp 0x1105ffb2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
push 0x1c
call fcn.1106805f
add esp, 4
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x384], 0
je 0x1105fb62
mov ecx, dword [ebp - 0x384]
call fcn.1105c0e0
mov dword [ebp - 0x394], eax
jmp 0x1105fb6c
mov dword [ebp - 0x394], 0
mov ecx, dword [ebp - 0x394]
mov dword [ebp - 0x380], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x380]
mov dword [ebp - 0x10], edx
push 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1100a000
add esp, 0x14
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x388], ecx
mov edx, dword [ebp - 0x388]
push edx
call fcn.1106732b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x320], 0
jmp 0x1105fbdf
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
cmp ecx, dword [ebp - 0x14]
jge 0x1105ffa3
mov edx, dword [ebp - 0x320]
shl edx, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x320]
shl edx, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x320]
shl edx, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x320]
shl edx, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x2c], 0
jne 0x1105fc4d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.11009dc0
add esp, 4
jmp 0x1105fbd0
push 0x2c
push 0
lea eax, [ebp - 0x354]
push eax
call fcn.11067d50
add esp, 0xc
mov dword [ebp - 0x354], 0x28
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x350], ecx
mov edx, dword [ebp - 0x1c]
neg edx
mov dword [ebp - 0x34c], edx
mov eax, 1
mov word [ebp - 0x348], ax
mov ecx, 0x20
mov word [ebp - 0x346], cx
mov dword [ebp - 0x344], 0
mov edx, dword [ebp - 0x20]
imul edx, dword [ebp - 0x1c]
shl edx, 2
mov dword [ebp - 0x340], edx
mov byte [ebp - 0x325], 0
mov dword [ebp - 0x324], 0
push 0
push 0
lea eax, [ebp - 0x324]
push eax
push 0
lea ecx, [ebp - 0x354]
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jne 0x1105fcfd
mov edx, dword [ebp - 0x2c]
push edx
call fcn.11009dc0
add esp, 4
jmp 0x1105fbd0
mov dword [ebp - 0x360], 0
jmp 0x1105fd18
mov eax, dword [ebp - 0x360]
add eax, 1
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x360], ecx
jge 0x1105fed3
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0x360]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4 + 3]
mov byte [eax + edx*4 + 3], cl
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
movzx ecx, byte [eax + edx*4 + 3]
cmp ecx, 0xff
jge 0x1105fe14
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4 + 2]
mov ecx, dword [ebp - 0x360]
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 - 0x360]
mov ecx, dword [ebp - 0x324]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x360]
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 - 0x360]
mov ecx, dword [ebp - 0x324]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x360]
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 - 0x360]
mov ecx, dword [ebp - 0x324]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x325], 1
jmp 0x1105fe69
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0x360]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0x360]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0x360]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x10]
jne 0x1105fec7
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x360]
mov edx, dword [ebp - 0x324]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x360]
mov ecx, dword [ebp - 0x324]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x324]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x325], 1
mov byte [ebp - 0x325], 1
jmp 0x1105fd09
push 0x9c
call fcn.1106805f
add esp, 4
mov dword [ebp - 0x390], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x390], 0
je 0x1105ff12
mov ecx, dword [ebp - 0x390]
add ecx, 0x14
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
mov ecx, dword [ebp - 0x390]
mov dword [ebp - 0x398], ecx
jmp 0x1105ff1c
mov dword [ebp - 0x398], 0
mov edx, dword [ebp - 0x398]
mov dword [ebp - 0x38c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
mov edx, dword [ebp - 0x358]
mov dword [ecx], edx
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x35c]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x35c]
mov cl, byte [ebp - 0x325]
mov byte [eax + 0x10], cl
mov edx, dword [ebp - 0x35c]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.1105c1f0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.11009dc0
add esp, 4
mov dword [ebp - 0x2c], 0
jmp 0x1105fbd0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.11009dc0
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.11067296
mov esp, ebp
pop ebp
ret