Function at 0x10091840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c24e0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x1023c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0x60], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push 4
mov byte [ebp - 4], 1
mov esi, dword [0x1023c868]
push 0x3bd5
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10091d32
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10091d32
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x60]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::LoadMenuIndirectW_void_const__
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x10091d32
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x1009192a
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x1009192a
mov eax, dword [eax]
test eax, eax
je 0x1009192a
mov ecx, dword [eax + 0xc]
jmp 0x1009192c
xor ecx, ecx
cmp dword [ebp - 0x38], 0
jne 0x10091d32
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x38], ecx
cmp dword [ebx + 0x7c], eax
sete al
push eax
push 0x506c
push ecx
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::EnableMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
mov eax, dword [ebx + 0xa8]
add esp, 0xc
mov eax, dword [eax + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x64]
movzx esi, ax
mov eax, dword [ebx + 0xa8]
mov eax, dword [eax + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
movzx edi, ax
mov ebx, esi
mov eax, esi
not eax
and eax, 1
push eax
push 0x506d
push dword [ebp - 0x38]
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::EnableMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, edi
and eax, 1
shl eax, 3
push eax
push 0x506d
push dword [ebp - 0x38]
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::CheckMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
mov esi, dword [ebp - 0x38]
add esp, 0xc
test esi, esi
je 0x100919d2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x100919d2
nop dword [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x506d
je 0x10091a04
add eax, 4
cmp eax, ecx
jne 0x100919c0
or eax, 0xffffffff
and eax, 9
cmp al, 9
jne 0x10091a10
test esi, esi
je 0x10091a10
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091a10
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x506d
je 0x10091a09
add eax, 4
cmp eax, ecx
jne 0x100919f0
jmp 0x10091a10
mov eax, dword [edx + 4]
jmp 0x100919d5
and dword [edx + 4], 0xfffffff7
mov esi, dword [ebp - 0x38]
mov eax, ebx
shr eax, 1
not eax
and eax, 1
push eax
push 0x506e
push esi
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::EnableMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, edi
and eax, 2
shl eax, 2
push eax
push 0x506e
push dword [ebp - 0x38]
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::CheckMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
mov esi, dword [ebp - 0x38]
add esp, 0xc
test esi, esi
je 0x10091a64
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091a64
mov edx, dword [eax]
cmp dword [edx + 8], 0x506d
je 0x10091a94
add eax, 4
cmp eax, ecx
jne 0x10091a52
or eax, 0xffffffff
and eax, 9
cmp al, 9
jne 0x10091aa0
test esi, esi
je 0x10091aa0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091aa0
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x506d
je 0x10091a99
add eax, 4
cmp eax, ecx
jne 0x10091a80
jmp 0x10091aa0
mov eax, dword [edx + 4]
jmp 0x10091a67
and dword [edx + 4], 0xfffffff7
mov esi, dword [ebp - 0x38]
mov eax, ebx
shr eax, 2
not eax
and eax, 1
push eax
push 0x506f
push esi
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::EnableMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, edi
and eax, 4
add eax, eax
push eax
push 0x506f
push dword [ebp - 0x38]
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::CheckMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
mov esi, dword [ebp - 0x38]
add esp, 0xc
test esi, esi
je 0x10091af4
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091af4
mov edx, dword [eax]
cmp dword [edx + 8], 0x506f
je 0x10091b24
add eax, 4
cmp eax, ecx
jne 0x10091ae2
or eax, 0xffffffff
and eax, 9
cmp al, 9
jne 0x10091b30
test esi, esi
je 0x10091b30
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091b30
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x506f
je 0x10091b29
add eax, 4
cmp eax, ecx
jne 0x10091b10
jmp 0x10091b30
mov eax, dword [edx + 4]
jmp 0x10091af7
and dword [edx + 4], 0xfffffff7
mov esi, dword [ebp - 0x38]
mov eax, ebx
shr eax, 3
not eax
and eax, 1
push eax
push 0x5070
push esi
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::EnableMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, edi
and eax, 8
push eax
push 0x5070
push dword [ebp - 0x38]
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::CheckMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
mov esi, dword [ebp - 0x38]
add esp, 0xc
test esi, esi
je 0x10091b82
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091b82
mov edx, dword [eax]
cmp dword [edx + 8], 0x5070
je 0x10091bb4
add eax, 4
cmp eax, ecx
jne 0x10091b70
or eax, 0xffffffff
and eax, 9
cmp al, 9
jne 0x10091bc0
test esi, esi
je 0x10091bc0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091bc0
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x5070
je 0x10091bb9
add eax, 4
cmp eax, ecx
jne 0x10091ba0
jmp 0x10091bc0
mov eax, dword [edx + 4]
jmp 0x10091b85
and dword [edx + 4], 0xfffffff7
mov esi, dword [ebp - 0x38]
mov eax, ebx
shr eax, 4
not eax
and eax, 1
push eax
push 0x5071
push esi
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::EnableMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, edi
shr eax, 1
and eax, 8
push eax
push 0x5071
push dword [ebp - 0x38]
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::CheckMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
mov esi, dword [ebp - 0x38]
add esp, 0xc
test esi, esi
je 0x10091c14
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091c14
mov edx, dword [eax]
cmp dword [edx + 8], 0x5071
je 0x10091c44
add eax, 4
cmp eax, ecx
jne 0x10091c02
or eax, 0xffffffff
and eax, 9
cmp al, 9
jne 0x10091c50
test esi, esi
je 0x10091c50
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091c50
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x5071
je 0x10091c49
add eax, 4
cmp eax, ecx
jne 0x10091c30
jmp 0x10091c50
mov eax, dword [edx + 4]
jmp 0x10091c17
and dword [edx + 4], 0xfffffff7
mov esi, dword [ebp - 0x38]
shr ebx, 5
not ebx
and ebx, 1
push ebx
push 0x5072
push esi
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::EnableMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
add esp, 0xc
shr edi, 2
and edi, 8
push edi
push 0x5072
push dword [ebp - 0x38]
call sym.HncOfficeFramework.dll_public:_static_unsigned_int___cdecl_CHncMenu::CheckMenuItem_class_CHncMenuData___unsigned_int__unsigned_int_
mov esi, dword [ebp - 0x38]
add esp, 0xc
test esi, esi
je 0x10091ca2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10091ca2
nop
mov edx, dword [eax]
cmp dword [edx + 8], 0x5072
je 0x10091d03
add eax, 4
cmp eax, ecx
jne 0x10091c90
or eax, 0xffffffff
and eax, 9
cmp al, 9
jne 0x10091cd3
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0x5072
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.101212e0
add esp, 4
test eax, eax
je 0x10091cd3
and dword [eax + 4], 0xfffffff7
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x188]
mov dword [ebp - 0x1c], 0
mov dword [ebx + 0x18c], 1
test eax, eax
jne 0x10091d0e
mov eax, dword [ecx + 4]
test eax, eax
jne 0x10091d08
jmp 0x10091d0e
mov eax, dword [edx + 4]
jmp 0x10091ca5
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
push 0
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
push dword [ebp + 8]
push 2
call sym.HncOfficeFramework.dll_public:_unsigned_int___thiscall_CHncMenu::TrackPopupMenuEx_unsigned_int__int__int__struct_HWND_____struct_tagTPMPARAMS__
mov dword [ebx + 0x18c], 0
mov esi, 1
jmp 0x10091d34
xor esi, esi
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
je 0x10091d4e
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x10091d4e
push ecx
call fcn.10022170
cmp dword [ebp - 0x4c], 0
je 0x10091d61
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x10091d61
push ecx
call fcn.10022170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8