Function at 0x435cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a54b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
mov dword [esp + 0x20], 0x4b3300
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString_4
push 0x80
push 4
push 0x80
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CMenu::Attach
cmp eax, ebp
je 0x435e92
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
call esi
cmp eax, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebp
jbe 0x435e92
push edi
jmp 0x435d5d
mov esi, dword [sym.imp.USER32.dll_GetMenuItemCount]
lea ecx, [esp + 0x10]
push 1
lea edx, [ebp + 0x8016]
push ecx
push edx
mov ecx, 0x4dc390
call fcn.004983e0
test eax, eax
je 0x435d90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push eax
push ebp
push 0x400
push ebp
push ecx
call dword [sym.imp.USER32.dll_ModifyMenuA]
test ebp, ebp
je 0x435d9d
cmp ebp, 2
jne 0x435e80
mov edx, dword [esp + 0x28]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov edi, eax
test edi, edi
je 0x435e80
mov eax, dword [edi + 4]
cmp ebp, 2
push eax
jne 0x435df4
call esi
lea esi, [eax - 1]
test esi, esi
jl 0x435dde
mov ecx, dword [edi + 4]
push 0x400
push esi
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
dec esi
jns 0x435dcb
mov edx, dword [ebx + 0x174]
push edi
push 0
push edx
mov ecx, ebx
call fcn.00435f00
jmp 0x435e80
call esi
xor ebp, ebp
mov dword [esp + 0x1c], eax
test eax, eax
jbe 0x435e7c
mov ecx, dword [edi + 4]
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov esi, eax
test esi, esi
je 0x435e73
lea edx, [esp + 0x10]
push 1
push edx
push esi
mov ecx, 0x4dc390
call fcn.004983e0
test eax, eax
je 0x435e73
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
push eax
push esi
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_ModifyMenuA]
test eax, eax
jne 0x435e73
lea edx, [esp + 0x18]
push 0x480
push edx
mov ecx, 0x4dc390
call fcn.00498ef0
mov eax, dword [eax]
push 0
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jb 0x435e00
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
mov dword [esp + 0x14], ebp
jb 0x435d57
pop edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CMenu::Detach
test ebx, ebx
mov esi, eax
jne 0x435ea5
xor eax, eax
jmp 0x435ea8
mov eax, dword [ebx + 0x20]
push esi
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, ebx
mov dword [ebx + 0x48], esi
call fcn.00439b00
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x20], 0x4b3300
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 3
call sub.MFC42.DLL_CMenu::DestroyMenu
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret