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

Disassembly:
push 0xffffffffffffffff
push 0x61ff0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x6925a8]
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 0x471e57
push edi
jmp 0x471b9d
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 0x471bd2
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 0x471bf7
cmp dword [eax], 0x454d4a43
jne 0x471e45
mov ecx, dword [esp + 0x16c]
test ecx, ecx
je 0x471c10
cmp dword [esp + 0x28], 0xf000
jae 0x471e45
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x1c], 0
test ecx, ecx
mov ecx, dword [esp + 0x20]
je 0x471d83
test edi, ecx
jne 0x471d10
mov edx, ecx
mov dword [esp + 0x1c], 0x10
or edx, edi
test eax, eax
mov dword [esp + 0x20], edx
jne 0x471d03
push 0x10
call fcn.005e6fe9
add esp, 4
test eax, eax
je 0x471c6c
mov edx, dword [0x6925a8]
mov esi, eax
mov dword [eax + 4], edx
mov dword [eax], 0x454d4a43
jmp 0x471c6e
xor esi, esi
mov eax, dword [ebx + 0x9c]
lea ecx, [ebx + 0x94]
push esi
push eax
mov ebp, esi
call fcn.005e6751
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x60]
test eax, eax
jle 0x471cad
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea ecx, [ebx + 0x54]
call fcn.005e6f5c
test eax, eax
je 0x471cef
mov eax, dword [esp + 0x4c]
jmp 0x471cf2
mov eax, dword [ebx + 0x84]
test eax, eax
jle 0x471cd3
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
lea ecx, [ebx + 0x78]
call fcn.005e6f5c
test eax, eax
je 0x471cef
mov eax, dword [esp + 0x44]
jmp 0x471cf2
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [ebx + 0x30]
call fcn.005e6f5c
test eax, eax
je 0x471cef
mov eax, dword [esp + 0x50]
jmp 0x471cf2
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.005eb1d3
mov eax, dword [esp + 0x164]
test eax, eax
jne 0x471d1f
xor edi, edi
jmp 0x471d22
mov edi, dword [eax + 4]
lea esi, [ebx + 0xcc]
push 0
push edi
mov ecx, esi
call fcn.005e6559
test eax, eax
jne 0x471d3e
push edi
mov ecx, esi
call fcn.005e6423
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x471d5f
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x471d5f
mov edx, dword [esp + 0x28]
add ebp, 4
push edx
push ebp
mov ecx, ebx
call fcn.00472220
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x471e45
mov eax, dword [esp + 0x164]
test eax, eax
jne 0x471e33
jmp 0x471e36
test edi, ecx
je 0x471da9
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.005eb183
jmp 0x471db7
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
call fcn.005eb1d3
test ebp, ebp
je 0x471dcd
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 0x471dfd
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x471dfd
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.00472220
test eax, eax
je 0x471dfd
mov eax, dword [esp + 0x1c]
or al, 0x10
mov dword [esp + 0x1c], eax
test byte [esp + 0x1c], 0x10
je 0x471d63
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.004624fd
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 0x471d63
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 0x471b96
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x158], 0xffffffff
call fcn.005eb04a
mov ecx, dword [esp + 0x150]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x10