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

Disassembly:
push 0xffffffffffffffff
push 0x55e1de
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov esi, dword [esp + 0x288]
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x290]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4a7f34
mov al, 1
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0051916c
add esp, 0x26c
ret
mov esi, dword [esp + 0x30]
push 0x30
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00519500
push 0x200
lea eax, [esp + 0x80]
push 0
push eax
mov dword [esp + 0x54], 0x2c
call fcn.00519500
add esp, 0x18
lea edx, [esp + 0x3c]
push edx
push 1
push edi
lea ecx, [esp + 0x7c]
push esi
mov dword [esp + 0x50], 0x17
mov dword [esp + 0x54], 0
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0x100
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4a8156
mov ebx, dword [esp + 0x44]
test ebx, 0x800
jne 0x4a7fdc
lea eax, [esp + 0x70]
lea edx, [eax + 2]
jmp 0x4a7fb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a7fb0
sub eax, edx
sar eax, 1
jne 0x4a7fdc
push 0x400
push 0x100
lea eax, [esp + 0x78]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringW]
mov ebx, dword [esp + 0x44]
test ebx, 0x100
jne 0x4a8161
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
push 0x30
lea ecx, [esp + 0x40]
push 0
shr ebx, 0xb
push ecx
and bl, 1
mov dword [esp + 0x34], esi
call fcn.00519500
add esp, 0xc
mov dword [esp + 0x3c], 0x2c
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x5c], 0
test bl, bl
je 0x4a803c
mov dword [esp + 0x44], 0x900
jmp 0x4a80d8
mov ecx, dword [esp + 0x294]
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
mov edx, ebp
lea edi, [esp + 0x40]
mov dword [esp + 0x48], 0x32
mov dword [esp + 0x54], ebp
call fcn.004a7cf0
add esp, 8
test al, al
jne 0x4a807f
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0xffffffff
push 0x24
call fcn.0051a2f5
add esp, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x27c], 0
test eax, eax
je 0x4a80bf
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
push ebp
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, eax
call fcn.004a7890
jmp 0x4a80c1
xor eax, eax
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x27c], 0xffffffff
mov dword [esp + 0x5c], eax
test esi, esi
je 0x4a8123
mov edx, dword [esp + 0x294]
mov eax, dword [esp + 0x34]
push edx
push eax
push 0
push 0
push esi
call fcn.004a8b70
add esp, 0x14
mov dword [esp + 0x50], eax
test eax, eax
je 0x4a8103
or dword [esp + 0x40], 4
cmp byte [esp + 0x28c], 0
je 0x4a8123
mov ecx, dword [esp + 0x30]
push 0x400
push edi
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
dec edi
dec dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
test eax, eax
je 0x4a8161
inc dword [esp + 0x14]
inc edi
mov dword [esp + 0x20], edi
cmp edi, dword [esp + 0x18]
jb 0x4a7f30
jmp 0x4a7f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a7f05
xor al, al
jmp 0x4a7f07