Function at 0x101728d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c9a19
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 edi, ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x10172908
xor ecx, ecx
jmp 0x1017290b
mov ecx, dword [eax + 0x5c]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
add eax, 0x14
push edx
push eax
mov dword [ebp + 8], eax
call fcn.1017bd30
mov ecx, eax
test ecx, ecx
jne 0x1017293e
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 eax, dword [ecx]
call dword [eax + 0x14]
cmp eax, 1
jne 0x10172928
xor ebx, ebx
mov dword [ebp - 0x68], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 4
mov byte [ebp - 4], al
mov esi, dword [0x1023c868]
push 0x4504
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101729f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x101729f6
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 ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x101729f6
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jbe 0x101729f6
mov esi, dword [eax + 4]
test esi, esi
je 0x101729f6
mov esi, dword [esi + 0xc]
jmp 0x101729f8
xor esi, esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x10172b84
mov eax, dword [edi + 4]
mov dword [ebp - 0x40], esi
mov eax, dword [eax + 4]
test eax, eax
je 0x10172a13
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax + 0x68]
cmp ecx, dword [eax + 0x6c]
je 0x10172a20
cmp dword [eax + 0x74], ecx
jne 0x10172a53
test esi, esi
je 0x10172a53
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10172a53
nop
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca0
je 0x10172a44
add eax, 4
cmp eax, ecx
jne 0x10172a30
jmp 0x10172a53
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov esi, dword [ebp - 0x40]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10172a60
mov ecx, dword [ecx + 0x5c]
mov eax, dword [ecx + 0x68]
cmp eax, dword [ecx + 0x6c]
je 0x10172a70
mov eax, dword [ecx + 0x74]
cmp eax, dword [ecx + 0x6c]
jne 0x10172aa0
test esi, esi
je 0x10172aa0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x10172aa0
nop
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca9
je 0x10172a94
add eax, 4
cmp eax, ecx
jne 0x10172a80
jmp 0x10172aa0
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
push 1
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_IsValidPaste_unsigned_int_
test eax, eax
jne 0x10172ae0
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10172ae0
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
cmp eax, ecx
je 0x10172ae0
nop
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca3
je 0x10172ad4
add eax, 4
cmp eax, ecx
jne 0x10172ac0
jmp 0x10172ae0
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCGridCtrl::_IsEmptyDragCell_void_
cmp eax, 1
jne 0x10172b20
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10172b20
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
cmp eax, ecx
je 0x10172b20
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 8], 0x9ca5
je 0x10172b14
add eax, 4
cmp eax, ecx
jne 0x10172b00
jmp 0x10172b20
mov eax, dword [edx + 4]
and eax, 0xfffffffd
or eax, 1
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10172b3e
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 [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10172b59
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 - 0x14]
mov ecx, edi
push dword [ebp - 0x18]
push eax
call sym.HncOfficeFramework.dll_private:_void___thiscall_CHDCGridCtrl::_PopupCommandRunValue_unsigned_int__int__int_
mov ecx, dword [ebp - 0x40]
mov esi, 1
jmp 0x10172b86
xor esi, esi
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x44], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
je 0x10172b9d
test ecx, ecx
je 0x10172b9d
push ecx
call fcn.10022170
cmp dword [ebp - 0x54], 0
je 0x10172baf
test ebx, ebx
je 0x10172baf
push ecx
mov ecx, ebx
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 4