Function at 0x10195580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cadc2
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1023c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x10], 0x112
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
jne 0x10195819
cmp edi, 0xf090
jne 0x101956b0
cmp dword [esi + 0x54], 0
je 0x101956a6
lea ecx, [ebp - 0x4c]
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHncMenu::constructor_void_
mov ecx, ebx
mov dword [ebp - 4], 0
mov edi, dword [0x1023c868]
movsx eax, cx
push 4
shr ecx, 0x10
mov dword [ebp - 0x28], eax
push 0x3ce7
movsx eax, cx
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10195633
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10195633
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x4c]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::LoadMenuIndirectW_void_const__
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x4c]
push 0xf090
push ecx
lea ecx, [esi - 0xc]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [eax + 0x58]
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ClientToScreen]
push 0
push dword [esi + 0x54]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0x102
call sym.HncOfficeFramework.dll_public:_unsigned_int___thiscall_CHncMenu::TrackPopupMenuEx_unsigned_int__int__int__struct_HWND_____struct_tagTPMPARAMS__
test eax, eax
je 0x1019568c
push 0
push eax
push 0x112
lea ecx, [esi - 0xc]
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCWindowCaption::_OnMenuCommand_unsigned_int__unsigned_int__long_int_
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x4c], sym.HncOfficeFramework.dll_const_CHncMenu::vftable
je 0x101956a6
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x101956a6
push ecx
call fcn.10022170
mov eax, 1
jmp 0x10195838
cmp edi, 0xf100
jne 0x10195802
cmp bx, 0x20
jne 0x10195819
cmp dword [esi + 0x54], 0
je 0x101956a6
lea ecx, [ebp - 0x4c]
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHncMenu::constructor_void_
mov dword [ebp - 4], 1
lea edx, [ebp - 0x20]
mov ecx, dword [esi - 8]
xor ebx, ebx
mov ecx, dword [ecx + 4]
call fcn.1001bb30
call dword [sym.imp.HncFoundation.dll__HncLayoutIsR2L_0]
mov eax, dword [ebp - 0x20]
mov edi, dword [0x1023c868]
push 4
push 0x3ce7
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1019573a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1019573a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x4c]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncMenu::LoadMenuIndirectW_void_const__
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi - 0xc]
lea ecx, [esi - 0xc]
push 0xf100
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x30], ebx
push edx
mov dword [ebp - 0x2c], ebx
call dword [eax + 0x58]
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esi - 8]
mov edx, dword [eax + 4]
test edx, edx
je 0x1019578c
mov ecx, dword [edx + 0x5c]
test ecx, ecx
je 0x1019578c
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x1019578c
test edx, edx
jne 0x1019577f
xor eax, eax
jmp 0x10195786
xor edx, edx
test ecx, ecx
cmove eax, edx
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x18]
call dword [sym.imp.HncFoundation.dll__HncLayoutIsR2L_0]
push 0
push dword [esi + 0x54]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0x102
call sym.HncOfficeFramework.dll_public:_unsigned_int___thiscall_CHncMenu::TrackPopupMenuEx_unsigned_int__int__int__struct_HWND_____struct_tagTPMPARAMS__
mov edi, eax
test ebx, ebx
je 0x101957df
mov ecx, dword [esi - 8]
mov edx, dword [ecx + 4]
test edx, edx
je 0x101957df
mov eax, dword [edx + 0x5c]
test eax, eax
je 0x101957df
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x101957df
test edx, edx
jne 0x101957d0
xor ecx, ecx
jmp 0x101957d7
xor edx, edx
test eax, eax
cmove ecx, edx
push 0x64
push ebx
call sym.HncOfficeFramework.dll_public:_void____thiscall_CHDlgCtrlGrp::SetHDlgCtrl_void___unsigned_int_
test edi, edi
je 0x101957f3
push 0
push edi
push 0x112
lea ecx, [esi - 0xc]
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCWindowCaption::_OnMenuCommand_unsigned_int__unsigned_int__long_int_
lea ecx, [ebp - 0x4c]
call sym.HncOfficeFramework.dll_public_virtual:_void___thiscall_CHncMenu::destructor_void_
mov eax, 1
jmp 0x10195838
cmp edi, 0xf010
jne 0x10195819
lea ecx, [esi - 0xc]
call sym.HncOfficeFramework.dll_private:_void___thiscall_CHDCWindowCaption::_EnterWindowMoveLoop_void_
mov eax, 1
jmp 0x10195838
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10195836
push ebx
push edi
push dword [ebp + 0x10]
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10195838
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0x14