Function at 0x413f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4802fa
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
push 4
mov edi, ecx
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, eax
push 4
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x413f95
xor eax, eax
jmp 0x41431a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
jne 0x413fb2
xor eax, eax
jmp 0x41431a
call dword [sym.imp.USER32.dll_CreateMenu]
push eax
mov ecx, edi
call sub.MFC42.DLL_CMenu::Attach
cmp eax, esi
jne 0x413fcb
xor eax, eax
jmp 0x41431a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov cx, word [eax + 2]
lea ebx, [ecx + eax + 4]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [esp + 0x2c], 0x489d68
mov dword [esp + 0x48], esi
mov dword [esp + 0x18], 0x489db8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x34]
push edi
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00415cb0
jmp 0x414034
mov ebx, dword [esp + 0x50]
xor esi, esi
mov ax, word [ebx]
add ebx, 2
mov ebp, eax
mov dword [esp + 0x14], eax
and ebp, 0x10
mov dword [esp + 0x50], ebx
cmp bp, si
jne 0x414056
mov si, word [ebx]
add ebx, 2
mov dword [esp + 0x50], ebx
mov ebx, eax
and ebx, 0xffff
test bl, 0x80
je 0x414069
sub ebx, 0x80
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [eax + eax + 2]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], eax
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x64]
add esp, 0x14
test bp, bp
lea edx, [ecx + eax*2 + 2]
mov dword [esp + 0x50], edx
je 0x414174
test byte [esp + 0x14], 0x80
je 0x4140c8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [eax + ecx*4 - 4], 1
push 0x54
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x48], 2
je 0x4140ea
mov ecx, eax
call fcn.00412610
mov esi, eax
jmp 0x4140ec
xor esi, esi
mov edx, dword [edi + 0x3c]
mov byte [esp + 0x48], 1
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, esi
call sub.MFC42.DLL_CMenu::Attach
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x38]
push ebx
push eax
mov ecx, dword [edx + ecx*4 - 4]
call fcn.00413890
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov ebx, eax
inc eax
push eax
lea ecx, [esp + 0x20]
call fcn.00415b70
mov ecx, dword [esp + 0x1c]
push esi
mov dword [ecx + ebx*4], 0
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x1c]
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
jmp 0x414210
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
and esi, 0xffff
mov ecx, dword [eax + ecx*4 - 4]
push 0xffffffffffffffff
push esi
push ebx
push edx
call fcn.00413890
test byte [esp + 0x14], 0x80
je 0x4141ab
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov dword [edx + eax*4 - 4], 1
mov ecx, dword [esp + 0x34]
lea esi, [ecx - 1]
test esi, esi
jl 0x414210
mov edx, dword [esp + 0x1c]
cmp dword [edx + esi*4], 0
je 0x414210
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ecx, dword [eax + ecx*4 - 4]
call fcn.00414330
push 1
push esi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CPtrArray::RemoveAt
mov eax, dword [esp + 0x20]
sub eax, esi
dec eax
je 0x414204
lea edx, [eax*4]
mov eax, dword [esp + 0x1c]
push edx
lea ecx, [eax + esi*4 + 4]
lea edx, [eax + esi*4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov ecx, dword [esp + 0x20]
dec ecx
dec esi
mov dword [esp + 0x20], ecx
jns 0x4141b6
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x38]
add esp, 4
dec ecx
cmp ecx, 0xffffffff
jne 0x41402e
mov edx, dword [edi + 4]
xor esi, esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4142de
mov ebp, dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, dword [sym.imp.USER32.dll_ModifyMenuA]
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x50]
push eax
mov ecx, dword [ecx + esi*4]
call fcn.00412550
mov edx, dword [edi + 4]
push esi
push edx
mov byte [esp + 0x50], 3
call ebp
push eax
call sub.MFC42.DLL_CMenu::FromHandle
test eax, eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi*4]
je 0x41429b
mov dword [ecx + 0xc], 0x410
mov edx, dword [edi + 4]
push esi
push edx
call ebp
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + 4]
push ecx
push eax
push 0x410
jmp 0x4142b6
mov dword [ecx + 0xc], 0x400
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x50]
mov eax, dword [edx + esi*4]
push ecx
mov eax, dword [eax + 0x10]
push eax
push 0x400
mov edx, dword [edi + 4]
push esi
push edx
call ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 4]
inc esi
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jl 0x41424b
mov dword [esp + 0x18], 0x489db8
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x48], 4
test eax, eax
je 0x4142fc
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0x488704
mov dword [esp + 0x48], 0xffffffff
call fcn.0047e07e
mov eax, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4