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

Disassembly:
push 0xffffffffffffffff
push 0x657f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x6e3700]
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 0x477947
push edi
jmp 0x47768d
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 0x4776c2
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 0x4776e7
cmp dword [eax], 0x454d4a43
jne 0x477935
mov ecx, dword [esp + 0x16c]
test ecx, ecx
je 0x477700
cmp dword [esp + 0x28], 0xf000
jae 0x477935
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x1c], 0
test ecx, ecx
mov ecx, dword [esp + 0x20]
je 0x477873
test edi, ecx
jne 0x477800
mov edx, ecx
mov dword [esp + 0x1c], 0x10
or edx, edi
test eax, eax
mov dword [esp + 0x20], edx
jne 0x4777f3
push 0x10
call fcn.0061f973
add esp, 4
test eax, eax
je 0x47775c
mov edx, dword [0x6e3700]
mov esi, eax
mov dword [eax + 4], edx
mov dword [eax], 0x454d4a43
jmp 0x47775e
xor esi, esi
mov eax, dword [ebx + 0x9c]
lea ecx, [ebx + 0x94]
push esi
push eax
mov ebp, esi
call fcn.0061e9a1
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x60]
test eax, eax
jle 0x47779d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea ecx, [ebx + 0x54]
call fcn.0061f8e6
test eax, eax
je 0x4777df
mov eax, dword [esp + 0x4c]
jmp 0x4777e2
mov eax, dword [ebx + 0x84]
test eax, eax
jle 0x4777c3
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
lea ecx, [ebx + 0x78]
call fcn.0061f8e6
test eax, eax
je 0x4777df
mov eax, dword [esp + 0x44]
jmp 0x4777e2
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [ebx + 0x30]
call fcn.0061f8e6
test eax, eax
je 0x4777df
mov eax, dword [esp + 0x50]
jmp 0x4777e2
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.00623b5c
mov eax, dword [esp + 0x164]
test eax, eax
jne 0x47780f
xor edi, edi
jmp 0x477812
mov edi, dword [eax + 4]
lea esi, [ebx + 0xcc]
push 0
push edi
mov ecx, esi
call fcn.0061ed9a
test eax, eax
jne 0x47782e
push edi
mov ecx, esi
call fcn.0061ed4c
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x47784f
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47784f
mov edx, dword [esp + 0x28]
add ebp, 4
push edx
push ebp
mov ecx, ebx
call fcn.00477d10
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x477935
mov eax, dword [esp + 0x164]
test eax, eax
jne 0x477923
jmp 0x477926
test edi, ecx
je 0x477899
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.00623b0c
jmp 0x4778a7
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
call fcn.00623b5c
test ebp, ebp
je 0x4778bd
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 0x4778ed
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4778ed
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.00477d10
test eax, eax
je 0x4778ed
mov eax, dword [esp + 0x1c]
or al, 0x10
mov dword [esp + 0x1c], eax
test byte [esp + 0x1c], 0x10
je 0x477853
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00467ff7
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 0x477853
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 0x477686
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x158], 0xffffffff
call fcn.006239d3
mov ecx, dword [esp + 0x150]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x10