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

Disassembly:
push 0xffffffffffffffff
push 0x65cdbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x6e8700]
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x160]
xor esi, esi
mov dword [esp + 0x158], esi
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], esi
jbe 0x4778e7
push edi
jmp 0x47762d
mov ebp, dword [esp + 0x164]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
mov edi, 0x100
mov dword [esp + 0x18], 0x2c
test ebp, ebp
mov dword [esp + 0x1c], 0x36
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
je 0x477662
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
push eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [esp + 0x38]
test eax, eax
mov ebp, eax
je 0x477687
cmp dword [eax], 0x454d4a43
jne 0x4778d5
mov ecx, dword [esp + 0x16c]
test ecx, ecx
je 0x4776a0
cmp dword [esp + 0x28], 0xf000
jae 0x4778d5
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x1c], 0
test ecx, ecx
mov ecx, dword [esp + 0x20]
je 0x477813
test edi, ecx
jne 0x4777a0
mov edx, ecx
mov dword [esp + 0x1c], 0x10
or edx, edi
test eax, eax
mov dword [esp + 0x20], edx
jne 0x477793
push 0x10
call fcn.006247b3
add esp, 4
test eax, eax
je 0x4776fc
mov edx, dword [0x6e8700]
mov esi, eax
mov dword [eax + 4], edx
mov dword [eax], 0x454d4a43
jmp 0x4776fe
xor esi, esi
mov eax, dword [ebx + 0x9c]
lea ecx, [ebx + 0x94]
push esi
push eax
mov ebp, esi
call fcn.006236ef
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x60]
test eax, eax
jle 0x47773d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea ecx, [ebx + 0x54]
call fcn.00624726
test eax, eax
je 0x47777f
mov eax, dword [esp + 0x4c]
jmp 0x477782
mov eax, dword [ebx + 0x84]
test eax, eax
jle 0x477763
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
lea ecx, [ebx + 0x78]
call fcn.00624726
test eax, eax
je 0x47777f
mov eax, dword [esp + 0x44]
jmp 0x477782
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [ebx + 0x30]
call fcn.00624726
test eax, eax
je 0x47777f
mov eax, dword [esp + 0x50]
jmp 0x477782
or eax, 0xffffffff
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
or al, 0x20
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [ebp + 4]
call fcn.0062899d
mov eax, dword [esp + 0x164]
test eax, eax
jne 0x4777af
xor edi, edi
jmp 0x4777b2
mov edi, dword [eax + 4]
lea esi, [ebx + 0xcc]
push 0
push edi
mov ecx, esi
call fcn.00623c2a
test eax, eax
jne 0x4777ce
push edi
mov ecx, esi
call fcn.00623bdc
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x4777ef
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4777ef
mov edx, dword [esp + 0x28]
add ebp, 4
push edx
push ebp
mov ecx, ebx
call fcn.00477cb0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4778d5
mov eax, dword [esp + 0x164]
test eax, eax
jne 0x4778c3
jmp 0x4778c6
test edi, ecx
je 0x477839
mov edx, dword [esp + 0x20]
add eax, 4
and dh, 0xfe
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0x10
call fcn.0062894d
jmp 0x477847
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
call fcn.0062899d
test ebp, ebp
je 0x47785d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], 0
or al, 0x20
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x47788d
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47788d
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.00477cb0
test eax, eax
je 0x47788d
mov eax, dword [esp + 0x1c]
or al, 0x10
mov dword [esp + 0x1c], eax
test byte [esp + 0x1c], 0x10
je 0x4777f3
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00467f87
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x60]
mov dword [esp + 0x48], edx
add esp, 0xc
mov eax, dword [eax - 8]
mov dword [esp + 0x40], eax
jmp 0x4777f3
mov eax, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
push eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jb 0x477626
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x158], 0xffffffff
call fcn.00628814
mov ecx, dword [esp + 0x150]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x10