Function at 0x10176cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c9bb6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x10176ce8
xor edi, edi
jmp 0x10176ceb
mov edi, dword [eax + 0x5c]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, 0xfffffe00
cmp eax, 5
ja case.0x10176cfe.514
jmp dword [eax*4 + 0x101770b0]
lea eax, [ebp + 8]
mov ecx, edi
push eax
push 0
lea eax, [esi + 0x14]
push eax
call fcn.1017bd30
test eax, eax
je case.0x10176cfe.514
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
cmp eax, 4
jne case.0x10176cfe.514
mov edi, dword [ebp + 8]
mov ecx, ebx
push edi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_SetSelectColumn_int_
cmp dword [esi], 0x201
jne 0x10176d4b
push edi
push 0xffffffffffffffff
mov ecx, 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 eax, [ebp + 8]
mov ecx, edi
push eax
push 0
lea eax, [esi + 0x14]
push eax
call fcn.1017bd30
test eax, eax
je case.0x10176cfe.514
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
cmp eax, 4
jne case.0x10176cfe.514
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 ecx, [ebp + 8]
push ecx
lea eax, [esi + 0x14]
mov ecx, edi
push 0
push eax
mov dword [ebp - 0x14], eax
call fcn.1017bd30
test eax, eax
je case.0x10176cfe.514
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
cmp eax, 4
jne case.0x10176cfe.514
push dword [ebp + 8]
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_SetSelectColumn_int_
lea ecx, [ebp - 0x64]
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHncMenu::constructor_void_
lea ecx, [ebp - 0x40]
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 0x10176e34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10176e34
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x64]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::LoadMenuIndirectW_void_const__
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x10176e55
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x10176e55
mov eax, dword [eax]
test eax, eax
je 0x10176e55
mov eax, dword [eax + 0xc]
jmp 0x10176e57
xor eax, eax
push eax
lea ecx, [ebp - 0x40]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::Attach_class_CHncMenuData__
test eax, eax
jne 0x10176e8a
lea ecx, [ebp - 0x40]
call sym.HncOfficeFramework.dll_public_virtual:_void___thiscall_CHncMenu::destructor_void_
lea ecx, [ebp - 0x64]
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 - 0x3c]
test eax, eax
jne 0x10176ed3
test esi, esi
je 0x10176ed3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10176ed3
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca0
je 0x10176ec4
add eax, 4
cmp eax, ecx
jne 0x10176eb0
jmp 0x10176ed3
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov esi, dword [ebp - 0x3c]
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_CanRedo_void_
test eax, eax
jne 0x10176f10
test esi, esi
je 0x10176f10
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10176f10
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca9
je 0x10176f04
add eax, 4
cmp eax, ecx
jne 0x10176ef0
jmp 0x10176f10
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
push 4
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_IsValidPaste_unsigned_int_
mov edx, dword [ebp - 0x3c]
test eax, eax
jne 0x10176f53
test edx, edx
je 0x10176f53
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
je 0x10176f53
nop
mov esi, dword [eax]
cmp dword [esi + 8], 0x9ca3
je 0x10176f44
add eax, 4
cmp eax, ecx
jne 0x10176f30
jmp 0x10176f53
mov eax, dword [esi + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi + 0x88]
sub eax, dword [edi + 0x84]
and eax, 0xfffffffc
cmp eax, 0x118
jl 0x10176fa3
test edx, edx
je 0x10176fa3
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
je 0x10176fa3
nop word [eax + eax]
mov esi, dword [eax]
cmp dword [esi + 8], 0x9ca4
je 0x10176f94
add eax, 4
cmp eax, ecx
jne 0x10176f80
jmp 0x10176fa3
mov eax, dword [esi + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi + 0x88]
sub eax, dword [edi + 0x84]
and eax, 0xfffffffc
cmp eax, 4
jg 0x10176fe5
test edx, edx
je 0x10176fe5
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
je 0x10176fe5
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca5
je 0x10176fd9
add eax, 4
cmp eax, ecx
jne 0x10176fc5
jmp 0x10176fe5
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov esi, dword [ebp + 8]
mov ecx, ebx
push esi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_IsEmptyColumnValue_int_
cmp eax, 1
jne 0x10177030
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10177030
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
cmp eax, ecx
je 0x10177030
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca6
je 0x10177024
add eax, 4
cmp eax, ecx
jne 0x10177010
jmp 0x10177030
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x1017704e
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x1c]
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 0x10177069
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
push 0
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
push 2
call sym.HncOfficeFramework.dll_public:_unsigned_int___thiscall_CHncMenu::TrackPopupMenuEx_unsigned_int__int__int__struct_HWND_____struct_tagTPMPARAMS__
push esi
push 4
push eax
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_void___thiscall_CHDCGridCtrl::_PopupCommandRunPoint_unsigned_int__unsigned_int__int_
lea ecx, [ebp - 0x40]
call sym.HncOfficeFramework.dll_public_virtual:_void___thiscall_CHncMenu::destructor_void_
lea ecx, [ebp - 0x64]
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