Function at 0x420ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50278c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xb4]
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
cmp eax, edx
mov dword [esp + 0x30], esi
je 0x420bf1
mov ecx, dword [eax]
cmp dword [ecx + 0x88], edi
je 0x420cda
add eax, 4
cmp eax, edx
jne 0x420bdc
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
cmp ebx, ebp
je 0x420c0f
mov ecx, ebx
call fcn.0041d8b0
test eax, eax
jne 0x420c0f
push ebx
push edi
mov ecx, esi
call fcn.004206d0
mov dword [esp + 0x14], vtable.CMenu.0
mov dword [esp + 0x18], ebp
mov dword [esp + 0xac], ebp
call fcn.004f65e5
mov eax, dword [eax + 0xc]
push 0x113
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x18]
call fcn.004e7382
lea eax, [esp + 0x14]
push eax
call fcn.004440b0
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
add esp, 4
push ebp
push ecx
call ebx
push eax
call fcn.004e734f
mov ebp, eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [esi + 0x1c]
mov edx, eax
sar eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
and edx, 0xffff
push eax
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
call fcn.00436d40
mov esi, eax
push 0x78
mov dword [esp + 0x24], esi
call fcn.004e1a0a
add esp, 4
mov ecx, esi
mov dword [esp + 0x1c], eax
push 0x1e
push edi
push eax
call fcn.00437cb0
mov esi, eax
test esi, esi
jg 0x420ce1
mov dword [esp + 0x14], vtable.CMenu.0
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], 1
call fcn.004e73d9
or eax, 0xffffffff
jmp 0x420fbb
mov ebx, ecx
jmp 0x420bf5
lea ecx, [esp + 0x64]
call fcn.0041af20
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0xb0], 2
call fcn.0041afc0
mov edx, dword [ebp + 4]
push 0
push 0x800a
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
lea ecx, [esp + 0x64]
call fcn.0041b4c0
test eax, eax
push 1
je 0x420d27
mov eax, dword [ebp + 4]
push 0x8004
push eax
jmp 0x420d30
mov ecx, dword [ebp + 4]
push 0x8005
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp esi, 1
jle 0x420ee1
mov edx, dword [esp + 0x18]
push 1
push edx
call ebx
push eax
call fcn.004e734f
mov ebx, eax
push 0x400
push 0
mov dword [esp + 0x2c], ebx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
test esi, esi
jle 0x420e4c
mov edi, dword [esp + 0x1c]
mov bl, 5
mov eax, dword [0x54514c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], eax
mov edx, dword [edi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov byte [esp + 0xb4], 3
call fcn.00437860
test eax, eax
je 0x420dea
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.004376e0
test eax, eax
je 0x420dea
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [edx + 4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x58]
mov byte [esp + 0xac], 7
call fcn.004e1339
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 6
call fcn.004e1339
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], bl
call fcn.004e1339
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 4
call fcn.004e1339
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 2
call fcn.004e1339
add edi, 4
dec esi
jne 0x420d73
mov ebx, dword [esp + 0x24]
mov ecx, dword [0x54514c]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetMenuStringA]
push 0
push 0
push 0
push 0x800b
push edx
mov byte [esp + 0xc0], 8
call edi
test eax, eax
jle 0x420ea3
lea esi, [eax + eax + 2]
lea ecx, [esp + 0x10]
push esi
call fcn.004e17e0
push 0
push esi
push eax
mov eax, dword [ebp + 4]
push 0x800b
push eax
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004e17b8
jmp 0x420eac
lea ecx, [esp + 0x10]
call fcn.004e12c4
test ebx, ebx
jne 0x420eb4
xor eax, eax
jmp 0x420eb7
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push ecx
push eax
push 0x10
push 0x800b
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 2
call fcn.004e1339
jmp 0x420ef2
mov eax, dword [ebp + 4]
push 0
push 0x800b
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push edi
push ecx
push edx
push 0x182
mov ecx, ebp
call fcn.004e2b27
mov esi, eax
test esi, esi
jle 0x420f7f
cmp esi, 0x8000
jle 0x420f29
mov eax, dword [edi]
push 0
push esi
mov ecx, edi
call dword [eax + 0x78]
jmp 0x420f7f
mov ecx, dword [edi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
push ecx
call ebp
push eax
call fcn.004e1f6d
test eax, eax
je 0x420f7f
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x80]
push edx
push eax
push esi
call fcn.004376e0
test eax, eax
je 0x420f7f
mov ecx, dword [edi + 0x1c]
push ecx
call ebp
push eax
call fcn.004e1f6d
mov edx, dword [esp + 0x80]
mov eax, dword [eax + 0x1c]
push 0
push edx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004e1a33
add esp, 4
lea ecx, [esp + 0x64]
mov byte [esp + 0xac], 0
call fcn.0041af70
mov dword [esp + 0x14], vtable.CMenu.0
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], 9
call fcn.004e73d9
xor eax, eax
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 8