Function at 0x401dd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x41591c
mov eax, 0x4291ad
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x38
push ebx
push esi
push edi
push 4
push dword [ebp + 8]
mov esi, ecx
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 4
push dword [ebp + 8]
mov ebx, eax
push ebx
call edi
test eax, eax
jne 0x41595a
push 4
xor ebx, ebx
push dword [ebp + 8]
push ebx
call edi
test eax, eax
je 0x415981
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x415981
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
call dword [sym.imp.USER32.dll_CreateMenu]
push eax
mov ecx, esi
call sub.MFC42.DLL_CMenu::Attach
test eax, eax
jne 0x415988
xor eax, eax
jmp 0x415c13
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx ecx, word [eax + 2]
lea ebx, [ecx + eax + 4]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [ebp - 0x30], 0x42e6f0
xor edi, edi
mov dword [ebp - 0x44], 0x42e6d8
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
push esi
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push edi
lea ecx, [ebp - 0x44]
push dword [ebp - 0x3c]
call fcn.004018e8
jmp 0x4159de
xor edi, edi
mov ax, word [ebx]
inc ebx
mov dword [ebp + 8], eax
and dword [ebp + 8], 0x10
inc ebx
cmp word [ebp + 8], di
mov dword [ebp - 0x1c], eax
jne 0x4159fe
mov cx, word [ebx]
inc ebx
mov word [ebp - 0x18], cx
inc ebx
jmp 0x415a01
mov dword [ebp - 0x18], edi
movzx eax, ax
test al, 0x80
mov dword [ebp - 0x10], eax
je 0x415a12
sub dword [ebp - 0x10], 0x80
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push ebx
call edi
lea eax, [eax + eax + 2]
push eax
call sub.MFC42.DLL_operatornew
push ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
push ebx
call edi
xor edi, edi
add esp, 0x14
cmp word [ebp + 8], di
lea ebx, [ebx + eax*2 + 2]
je 0x415ad3
test byte [ebp - 0x1c], 0x80
je 0x415a5a
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov dword [eax + ecx*4 - 4], 1
push 0x54
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov byte [ebp - 4], 2
je 0x415a76
mov ecx, eax
call fcn.004020e5
mov edi, eax
mov eax, dword [esi + 0x48]
mov byte [ebp - 4], 1
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, edi
call sub.MFC42.DLL_CMenu::Attach
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push 0xffffffffffffffff
push dword [edi + 4]
mov ecx, dword [ecx + eax*4 - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00402022
push edi
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0
lea ecx, [ebp - 0x44]
call fcn.004020d6
jmp 0x415b3e
movzx eax, word [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4 - 4]
push dword [ebp - 0x14]
call fcn.00402022
test byte [ebp - 0x1c], 0x80
je 0x415b03
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov dword [eax + ecx*4 - 4], 1
mov eax, dword [ebp - 0x28]
lea edi, [eax - 1]
test edi, edi
jl 0x415b3e
mov eax, dword [ebp - 0x40]
cmp dword [eax + edi*4], 0
je 0x415b3e
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [eax + ecx*4 - 4]
call fcn.004019f1
push 1
push edi
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CPtrArray::RemoveAt
push 1
push edi
lea ecx, [ebp - 0x44]
call fcn.00401f64
dec edi
jns 0x415b0d
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x28]
pop ecx
dec eax
cmp eax, 0xffffffff
jne 0x4159dc
push dword [esi + 4]
xor edi, edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x415bf3
mov ebx, dword [sym.imp.USER32.dll_ModifyMenuA]
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
call fcn.0040154b
push edi
mov byte [ebp - 4], 3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
test eax, eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
je 0x415bbf
push edi
mov dword [eax + 0x10], 0x410
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
push dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
push 0x410
jmp 0x415bcf
mov ecx, 0x400
mov dword [eax + 0x10], ecx
push dword [ebp + 8]
mov eax, dword [eax + 0x14]
push eax
push ecx
push edi
push dword [esi + 4]
call ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push dword [esi + 4]
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x415b6d
and byte [ebp - 4], 0
push 1
pop edi
lea ecx, [ebp - 0x44]
mov dword [esi + 0x50], edi
call fcn.00401717
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00426504
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4