Function at 0x10181460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ca1d6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
push esi
push edi
mov eax, dword [0x1023c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x58], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x1018172e
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1018172e
mov esi, dword [0x1023c868]
push 4
push 0x3992
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1018172e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1018172e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x58]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::LoadMenuIndirectW_void_const__
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x1018172e
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x101815b8
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x101815b8
mov eax, dword [eax]
test eax, eax
je 0x101815b8
mov eax, dword [eax + 0xc]
jmp 0x101815ba
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x78], eax
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCEditBase::CanUndo_void_const
neg eax
mov ecx, edi
sbb esi, esi
neg esi
call sym.HncOfficeFramework.dll_protected:_int___thiscall_CHDCEditBase::_CanCut_void_
test eax, eax
je 0x101815d8
or esi, 2
mov ecx, edi
call sym.HncOfficeFramework.dll_protected:_int___thiscall_CHDCEditBase::_CanCopy_void_
test eax, eax
je 0x101815e6
or esi, 4
mov ecx, edi
call sym.HncOfficeFramework.dll_protected:_int___thiscall_CHDCEditBase::_CanPaste_void_
test eax, eax
je 0x101815f4
or esi, 8
mov ecx, edi
call sym.HncOfficeFramework.dll_protected:_int___thiscall_CHDCEditBase::_CanDelete_void_
test eax, eax
je 0x10181602
or esi, 0x10
mov ecx, edi
call sym.HncOfficeFramework.dll_protected:_int___thiscall_CHDCEditBase::_CanSelectAll_void_
test eax, eax
je 0x10181610
or esi, 0x20
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10181629
mov edx, dword [eax + 0x5c]
test edx, edx
je 0x10181629
mov edx, dword [edx + 0x80]
jmp 0x1018162b
xor edx, edx
mov ecx, esi
or ecx, 0x40
and dl, 0x80
cmove ecx, esi
test eax, eax
je 0x10181649
mov edx, dword [eax + 0x5c]
test edx, edx
je 0x10181649
mov edx, dword [edx + 0x80]
jmp 0x1018164b
xor edx, edx
mov esi, ecx
or esi, 0x80
and dl, 0x20
cmove esi, ecx
mov dword [ebp - 0x18], esi
test eax, eax
je 0x10181666
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
lea ecx, [ebx + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [edi + 4]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x1018168f
mov eax, dword [eax + 8]
test eax, 0x100
jne 0x101816ad
push 0
push 0x100
push 0
mov ecx, edi
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCEditBase::ModifyStyle_unsigned_long_int__unsigned_long_int__unsigned_int_
mov dword [ebp - 0x14], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push 8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
call fcn.100854b0
mov ecx, dword [edi + 4]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov ecx, dword [ecx + 4]
mov dword [esi], 0x101da3a0
mov dword [esi + 4], ecx
call dword [sym.imp.HncFoundation.dll_class_Hnc::Framework____cdecl_Hnc::GetFramework_void_]
movups xmm0, xmmword [ebp - 0x34]
mov edi, eax
mov eax, dword [ebp - 0x18]
push esi
push 0
cdq
push edx
push eax
mov eax, dword [edi]
sub esp, 0x10
mov ecx, esp
push 1
movups xmmword [ecx], xmm0
mov ecx, edi
call dword [eax + 0x11c]
cmp dword [ebp - 0x14], 0
je 0x1018171d
mov ecx, dword [ebp - 0x20]
push 0
push 0
push 0x100
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCEditBase::ModifyStyle_unsigned_long_int__unsigned_long_int__unsigned_int_
mov eax, dword [ebp - 0x24]
mov esi, 1
mov dword [eax + 0x6c], 1
jmp 0x10181730
xor esi, esi
cmp dword [ebp - 0x44], 0
je 0x10181743
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10181743
push ecx
call fcn.10022170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8