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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cdc1c
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [0x500070]
push esi
push edi
push 1
push 0
push ebp
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push ebp
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov edi, eax
xor esi, esi
test edi, edi
jbe 0x471090
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoW]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x58]
push eax
push 1
push esi
push ebp
mov dword [esp + 0x68], 0x30
mov dword [esp + 0x6c], 0x100
call ebx
test eax, eax
je 0x47108b
cmp dword [esp + 0x60], 0x800
je 0x471090
inc esi
cmp esi, edi
jb 0x471032
xor eax, eax
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x94], eax
cmp edi, eax
je 0x471573
cmp word [edi], ax
je 0x471573
lea ecx, [esp + 0x28]
push ecx
push 1
push esi
push ebp
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x40], 0x800
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push 0x4ddb40
lea ebx, [esp + 0x1c]
inc esi
call fcn.00402bd0
push edi
lea ebx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00402bd0
push 0x4ea1c8
lea ebx, [esp + 0x28]
mov byte [esp + 0x98], 2
call fcn.00402bd0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push ecx
push eax
mov byte [esp + 0xa0], 3
call fcn.004907a0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push ecx
mov bl, 4
push eax
mov byte [esp + 0xa0], bl
call fcn.004907a0
mov edi, dword [eax]
mov dword [esp + 0x10], edi
test edi, edi
je 0x47117d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x94], bl
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4711a2
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4711a2
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4711c8
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4711c8
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4711ee
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4711ee
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 1
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x471212
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x471212
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x471236
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x471236
push ebx
call fcn.0049e96f
add esp, 4
mov dword [esp + 0x2c], 0x42
mov dword [esp + 0x38], 0xd101
test edi, edi
je 0x471255
lea eax, [edi + 8]
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x47125d
mov dword [esp + 0x4c], 0x4d9064
lea edx, [esp + 0x28]
push edx
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push 0x4ddb40
lea ebx, [esp + 0x18]
inc esi
call fcn.00402bd0
mov eax, dword [esp + 0x9c]
push eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0x98], 6
call fcn.00402bd0
push 0x4ea1dc
lea ebx, [esp + 0x20]
mov byte [esp + 0x98], 7
call fcn.00402bd0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0xa0], 8
call fcn.004907a0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov byte [esp + 0xa0], 9
call fcn.004907a0
mov ebx, eax
mov byte [esp + 0x94], 0xa
test edi, edi
je 0x4712fc
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4712fc
push edi
call fcn.0049e96f
add esp, 4
mov edi, dword [ebx]
mov dword [esp + 0x10], edi
test edi, edi
je 0x47130d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x94], 9
mov eax, dword [esp + 0x24]
test eax, eax
je 0x471333
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x471333
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x471359
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x471359
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47137f
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x47137f
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 6
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4713a3
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4713a3
push ebx
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4713c7
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4713c7
push ebx
call fcn.0049e96f
add esp, 4
mov dword [esp + 0x38], 0xd102
test edi, edi
je 0x4713de
lea eax, [edi + 8]
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4713e6
mov dword [esp + 0x4c], 0x4d9064
lea eax, [esp + 0x28]
push eax
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push 0x4ddb40
lea ebx, [esp + 0x18]
inc esi
call fcn.00402bd0
mov ecx, dword [esp + 0x9c]
push ecx
lea ebx, [esp + 0x1c]
mov byte [esp + 0x98], 0xb
call fcn.00402bd0
push 0x4ea1f0
lea ebx, [esp + 0x20]
mov byte [esp + 0x98], 0xc
call fcn.00402bd0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
push eax
mov byte [esp + 0xa0], 0xd
call fcn.004907a0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push ecx
push eax
mov byte [esp + 0xa0], 0xe
call fcn.004907a0
mov ebx, eax
mov byte [esp + 0x94], 0xf
test edi, edi
je 0x471485
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x471485
push edi
call fcn.0049e96f
add esp, 4
mov ebx, dword [ebx]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x471496
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x94], 0xe
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
je 0x4714be
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x4714be
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 0xd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4714e0
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x4714e0
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x471502
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x471502
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 0xb
mov edi, dword [esp + 0x18]
test edi, edi
je 0x471522
push edi
call ebx
test eax, eax
jne 0x471522
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x94], 0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x471542
push edi
call ebx
test eax, eax
jne 0x471542
push edi
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], 0xd103
test eax, eax
je 0x47155b
add eax, 8
mov dword [esp + 0x4c], eax
jne 0x471563
mov dword [esp + 0x4c], 0x4d9064
lea edx, [esp + 0x28]
push edx
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_InsertMenuItemW]
inc esi
lea eax, [esp + 0x28]
push eax
push 1
push esi
push ebp
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x40], 0x800
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push 0x37
inc esi
call fcn.0049e995
mov edi, eax
push 0x2c
lea ebx, [edi + 8]
push 0x4ea208
push ebx
mov dword [edi], 1
mov dword [edi + 4], 0x2c
call fcn.004a7df0
add esp, 0x10
mov dword [esp + 0x24], edi
mov byte [esp + 0x94], 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4715e8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4715e8
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0049e96f
add esp, 4
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
mov byte [esp + 0x98], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x47160f
push edi
call fcn.0049e96f
add esp, 4
mov dword [esp + 0x2c], 0x42
mov dword [esp + 0x38], 0xd104
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x47162f
mov dword [esp + 0x4c], 0x4d9064
lea edx, [esp + 0x28]
push edx
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push 0x35
inc esi
call fcn.0049e995
mov ebx, eax
push 0x2a
lea eax, [ebx + 8]
push 0x4ea234
push eax
mov dword [ebx], 1
mov dword [ebx + 4], 0x2a
call fcn.004a7df0
add esp, 0x10
mov dword [esp + 0x24], ebx
push edi
mov byte [esp + 0x98], 0x11
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x471688
push edi
call fcn.0049e96f
add esp, 4
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x94], 0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call edi
test eax, eax
jne 0x4716b1
push ebx
call fcn.0049e96f
add esp, 4
lea eax, [ebx + 8]
mov dword [esp + 0x2c], 0x42
mov dword [esp + 0x38], 0xd105
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4716d4
mov dword [esp + 0x4c], 0x4d9064
lea eax, [esp + 0x28]
push eax
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push ebx
mov dword [esp + 0x98], 0xffffffff
call edi
test eax, eax
jne 0x4716fe
push ebx
call fcn.0049e96f
add esp, 4
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret 4