Function at 0x10176970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c9b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
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 ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x101769aa
mov ecx, dword [ecx + 0x5c]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, 0xfffffdff
cmp eax, 4
ja case.0x101769bd.514
jmp dword [eax*4 + 0x10176c94]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x14]
push eax
call fcn.1017bd30
test eax, eax
je case.0x101769bd.514
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
cmp eax, 1
jne case.0x101769bd.514
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push edi
push ebx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_SetSelectValue_int__int_
cmp dword [esi], 0x201
jne 0x10176a0f
mov ecx, dword [ebp - 0x14]
push edi
push ebx
call sym.HncOfficeFramework.dll_private:_void___thiscall_CHDCGridCtrl::_FakeActiveEditCell_int__int_
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp + 8]
push edx
lea edx, [ebp - 0x14]
lea eax, [esi + 0x14]
push edx
push eax
mov dword [ebp - 0x18], eax
call fcn.1017bd30
mov edi, eax
test edi, edi
je case.0x101769bd.514
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
cmp eax, 1
jne case.0x101769bd.514
push dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 0x14]
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_SetSelectValue_int__int_
lea ecx, [ebp - 0x68]
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHncMenu::constructor_void_
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHncMenu::constructor_void_
push 4
mov byte [ebp - 4], 1
mov esi, dword [0x1023c868]
push 0x4504
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10176abb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10176abb
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x68]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::LoadMenuIndirectW_void_const__
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x10176ade
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jbe 0x10176ade
mov eax, dword [eax + 4]
test eax, eax
je 0x10176ade
mov eax, dword [eax + 0xc]
jmp 0x10176ae0
xor eax, eax
push eax
lea ecx, [ebp - 0x44]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::Attach_class_CHncMenuData__
test eax, eax
jne 0x10176b13
lea ecx, [ebp - 0x44]
call sym.HncOfficeFramework.dll_public_virtual:_void___thiscall_CHncMenu::destructor_void_
lea ecx, [ebp - 0x68]
call sym.HncOfficeFramework.dll_public_virtual:_void___thiscall_CHncMenu::destructor_void_
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_CanUndo_void_
mov esi, dword [ebp - 0x40]
test eax, eax
jne 0x10176b53
test esi, esi
je 0x10176b53
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10176b53
nop
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca0
je 0x10176b44
add eax, 4
cmp eax, ecx
jne 0x10176b30
jmp 0x10176b53
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov esi, dword [ebp - 0x40]
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_CanRedo_void_
test eax, eax
jne 0x10176b90
test esi, esi
je 0x10176b90
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10176b90
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca9
je 0x10176b84
add eax, 4
cmp eax, ecx
jne 0x10176b70
jmp 0x10176b90
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
push 1
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_IsValidPaste_unsigned_int_
mov esi, dword [ebp - 0x40]
test eax, eax
jne 0x10176bd3
test esi, esi
je 0x10176bd3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10176bd3
nop
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca3
je 0x10176bc4
add eax, 4
cmp eax, ecx
jne 0x10176bb0
jmp 0x10176bd3
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov esi, dword [ebp - 0x40]
cmp dword [edi + 0x30], 0
jne 0x10176c10
test esi, esi
je 0x10176c10
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10176c10
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca5
je 0x10176c04
add eax, 4
cmp eax, ecx
jne 0x10176bf0
jmp 0x10176c10
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10176c2e
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10176c49
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
push 0
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x20]
push 2
call sym.HncOfficeFramework.dll_public:_unsigned_int___thiscall_CHncMenu::TrackPopupMenuEx_unsigned_int__int__int__struct_HWND_____struct_tagTPMPARAMS__
push dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 0x14]
push eax
call sym.HncOfficeFramework.dll_private:_void___thiscall_CHDCGridCtrl::_PopupCommandRunValue_unsigned_int__int__int_
lea ecx, [ebp - 0x44]
call sym.HncOfficeFramework.dll_public_virtual:_void___thiscall_CHncMenu::destructor_void_
lea ecx, [ebp - 0x68]
call sym.HncOfficeFramework.dll_public_virtual:_void___thiscall_CHncMenu::destructor_void_
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4