Function at 0x10102220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c595e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
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 - 0x58], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push 4
mov byte [ebp - 4], 1
mov esi, dword [0x1023c868]
push 0x4519
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101024f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x101024f6
push edi
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 edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp - 0x54]
test esi, esi
je 0x101024f6
test ebx, ebx
je 0x1010230c
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
sub ecx, eax
sar ecx, 2
cmp ecx, 2
jbe 0x1010230c
mov eax, dword [eax + 8]
test eax, eax
je 0x1010230c
mov eax, dword [eax + 0xc]
jmp 0x1010230e
xor eax, eax
cmp dword [ebp - 0x30], 0
jne 0x101024f6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
push 0
cmp dword [ecx + 0x4dc], 1
jne 0x10102330
push 0x9cba
jmp 0x10102335
push 0x9cb7
push eax
call sym.HncOfficeFramework.dll_public:_static_int___cdecl_CHncMenu::RemoveMenu_class_CHncMenuData___unsigned_int__unsigned_int_
add esp, 0xc
call dword [sym.imp.HncVfs.dll_struct_IHncVfsManager____cdecl_HncGetVfsManager_void_]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4d8]
mov edi, dword [esi]
mov edx, dword [ecx]
call dword [edx]
push eax
mov ecx, esi
call dword [edi + 0x18]
mov edi, eax
test edi, edi
je 0x1010244b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test eax, eax
jne 0x101023c8
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x101023c8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x1010239c
mov edx, dword [eax]
cmp dword [edx + 8], 0x9cb8
je 0x10102395
add eax, 4
cmp eax, ecx
jne 0x10102381
jmp 0x1010239c
or dword [edx + 4], 3
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x101023c8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x101023c8
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9cb9
je 0x101023c4
add eax, 4
cmp eax, ecx
jne 0x101023b0
jmp 0x101023c8
or dword [edx + 4], 3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov esi, dword [ebp - 0x30]
test eax, eax
jne 0x101023ff
test esi, esi
je 0x101023ff
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x101023ff
mov edx, dword [eax]
cmp dword [edx + 8], 0x9cb7
je 0x101023f8
add eax, 4
cmp eax, ecx
jne 0x101023e4
jmp 0x101023ff
or dword [edx + 4], 3
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
call sym.HncOfficeFramework.dll_public:_unsigned_int___thiscall_CHDCListCtrl::GetSelectedCount_void_const
cmp eax, 1
je 0x101024d8
test esi, esi
je 0x101024d8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x101024d8
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9cb9
je 0x101024d4
add eax, 4
cmp eax, ecx
jne 0x10102430
jmp 0x101024d8
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x101024d8
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
je 0x1010247b
mov esi, dword [eax]
cmp dword [esi + 8], 0x9cb7
je 0x10102474
add eax, 4
cmp eax, ecx
jne 0x10102460
jmp 0x1010247b
or dword [esi + 4], 3
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x101024d8
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
je 0x101024ab
nop dword [eax]
mov esi, dword [eax]
cmp dword [esi + 8], 0x9cb8
je 0x101024a4
add eax, 4
cmp eax, ecx
jne 0x10102490
jmp 0x101024ab
or dword [esi + 4], 3
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x101024d8
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
je 0x101024d8
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9cb9
je 0x101024d4
add eax, 4
cmp eax, ecx
jne 0x101024c0
jmp 0x101024d8
or dword [edx + 4], 3
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
call sym.HncOfficeFramework.dll_public:_unsigned_int___thiscall_CHncMenu::TrackPopupMenuEx_unsigned_int__int__int__struct_HWND_____struct_tagTPMPARAMS__
mov ecx, dword [ebp - 0x10]
push eax
call sym.HncOfficeFramework.dll_private:_void___thiscall_CHncShellListCtrlVL::_DoObjectContextCommandProtocol_unsigned_int_
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x34], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
je 0x10102510
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10102510
push ecx
call fcn.10022170
cmp dword [ebp - 0x44], 0
je 0x10102522
test ebx, ebx
je 0x10102522
push ecx
mov ecx, ebx
call fcn.10022170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc