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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1107a407
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 0x1105fb70
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 0x1105f9c1
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 0x1105f8fc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fc35
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 0x1105f92b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fc35
mov dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.11066ee9
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 0x1105f9bc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x368], edx
mov eax, dword [ebp - 0x368]
push eax
call fcn.1106752b
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 0x1105fc35
jmp 0x1105fb59
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 0x1105f9f5
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0xd4], eax
jmp 0x1105fa13
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.11021540
add esp, 0xc
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x1105fa33
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fc35
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.11021600
add esp, 0x14
test eax, eax
je 0x1105fa71
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fc35
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1105fa97
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fc35
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.11066ee9
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.11021740
add esp, 0x14
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
je 0x1105fb3e
cmp dword [ebp - 0xd0], 0x600
je 0x1105fb3e
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
push edx
call fcn.1106752b
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 0x1105fb27
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.110217b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fc35
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx edx, al
test edx, edx
jne 0x1105fb59
mov eax, dword [ebp - 0xd4]
push eax
call fcn.110217b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1105fc2d
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 0x1105fb98
jmp 0x1105fc35
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 0x1105fbc9
mov ecx, dword [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1105fc35
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 0x1105fbe7
jmp 0x1105fc35
mov eax, dword [ebp - 0x24]
push eax
call fcn.11066ee9
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.110678b0
add esp, 0xc
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jne 0x1105f86a
cmp dword [ebp - 0x18], 0
jne 0x1105fd0d
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 0x1105fc6f
jmp 0x1105fd0d
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 0x1105fc8c
jmp 0x1105fd0d
mov dword [ebp - 0x31c], 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.11066ee9
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 0x1105fd06
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x37c], edx
mov eax, dword [ebp - 0x37c]
push eax
call fcn.1106752b
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x1105fd0d
cmp dword [ebp - 0x18], 0
jne 0x1105fd1a
xor eax, eax
jmp 0x110601b2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
push 0x1c
call fcn.1106825f
add esp, 4
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x384], 0
je 0x1105fd62
mov ecx, dword [ebp - 0x384]
call fcn.1105c2e0
mov dword [ebp - 0x394], eax
jmp 0x1105fd6c
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.1100a010
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.1106752b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x320], 0
jmp 0x1105fddf
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
cmp ecx, dword [ebp - 0x14]
jge 0x110601a3
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 0x1105fe4d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.11009dd0
add esp, 4
jmp 0x1105fdd0
push 0x2c
push 0
lea eax, [ebp - 0x354]
push eax
call fcn.11067f50
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 0x1105fefd
mov edx, dword [ebp - 0x2c]
push edx
call fcn.11009dd0
add esp, 4
jmp 0x1105fdd0
mov dword [ebp - 0x360], 0
jmp 0x1105ff18
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 0x110600d3
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 0x11060014
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 0x11060069
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 0x110600c7
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 0x1105ff09
push 0x9c
call fcn.1106825f
add esp, 4
mov dword [ebp - 0x390], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x390], 0
je 0x11060112
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 0x1106011c
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.1105c3f0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.11009dd0
add esp, 4
mov dword [ebp - 0x2c], 0
jmp 0x1105fdd0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.11009dd0
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.11067496
mov esp, ebp
pop ebp
ret