Function at 0x10030f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
push ebx
push esi
push edi
push 0xc
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x58], 0x30
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
xor edi, edi
cmp edi, dword [ebp - 0x1c]
jge 0x10031c4
mov esi, dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea eax, [ebp - 0x58]
push eax
push 1
push edi
push dword [ebp + 8]
mov dword [ebp - 0x54], 2
call esi
test eax, eax
je 0x10031ba
xor eax, eax
cmp dword [ebp - 0x48], 0xfa0
sete al
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10031ba
lea eax, [ebp - 0x58]
push eax
push 1
push edi
push dword [ebp + 8]
mov dword [ebp - 0x54], 4
call esi
test eax, eax
je 0x10031ba
cmp dword [ebp - 0x44], ebx
je 0x1003185
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xfa1
push dword [0x1014e00]
call dword [sym.imp.USER32.dll_LoadMenuW]
cmp eax, ebx
mov dword [ebp - 0x44], eax
je 0x10031ba
lea eax, [ebp - 0x58]
push eax
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
test eax, eax
jne 0x10031ba
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_DestroyMenu]
inc edi
cmp dword [ebp - 4], ebx
je 0x1003127
cmp dword [ebp - 4], ebx
je 0x1003540
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.01002fa3
call fcn.0100301c
push 0x1001760
push ebx
call sub.SHELL32.dll_Ordinal_236
mov esi, eax
neg esi
sbb esi, esi
push 0x1000
neg esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_413]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
dec edi
push 1
dec edi
push ebx
neg edi
push 0x10018c8
sbb edi, edi
push 0x80000002
inc edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100326d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1001898
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003264
cmp dword [ebp - 8], ebx
setne al
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push 0x1001820
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003350
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1001898
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10032c3
cmp dword [ebp - 4], ebx
jne 0x10032bc
cmp dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x10032c3
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1001808
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10032ef
cmp dword [ebp - 8], ebx
setne al
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x10017f8
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100331b
cmp dword [ebp - 8], ebx
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x10017dc
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003347
cmp dword [ebp - 8], ebx
setne al
mov dword [ebp - 0x20], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x1003363
cmp dword [ebp - 0x28], ebx
je 0x1003363
cmp dword [ebp - 0x18], ebx
jne 0x1003363
cmp dword [ebp - 0x14], ebx
je 0x1003373
push 3
push 0xfa4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp esi, ebx
je 0x1003386
cmp dword [ebp - 0x24], ebx
je 0x1003386
cmp dword [ebp - 0x18], ebx
jne 0x1003386
cmp dword [ebp - 0x14], ebx
je 0x1003396
push 3
push 0xfa2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp esi, ebx
je 0x100339f
cmp dword [ebp - 0x14], ebx
je 0x10033af
push 3
push 0xfa3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp esi, ebx
je 0x10033b8
cmp dword [ebp - 0x14], ebx
je 0x10033c8
push 3
push 0xfa5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea eax, [ebp - 0x258]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
push ebx
mov esi, 0xfa6
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x10
mov dword [ebp - 0x30], 0x100
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x100348b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x45c]
push eax
mov word [ebp - 0x45c], bx
mov dword [ebp - 0x24], 0x101
call sub.SHELL32.dll_Ordinal_241
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x860]
push 0x201
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
test eax, eax
jle 0x100345b
push 0x100
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x100347c
push 0x10017d4
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x100347c
lea ecx, [eax + 6]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x58]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push 0x10000000
call dword [sym.imp.SHELL32.dll_SHRestricted]
cmp eax, 1
je 0x10034a5
cmp dword [ebp - 0x14], ebx
jne 0x10034a5
cmp dword [ebp - 0x1c], ebx
je 0x10034b1
push 3
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
jne 0x10034cd
push 0x1a
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x10034cd
cmp dword [ebp - 0x20], ebx
je 0x10034ee
push ebx
push 0xfa7
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x18], ebx
je 0x10034ee
push 0x1a
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x10034ee
cmp dword [ebp - 0x20], ebx
je 0x10034f9
push ebx
push 0xfa8
push dword [ebp + 8]
call esi
cmp edi, ebx
je 0x1003514
push 0x10017b0
push ebx
call sub.SHELL32.dll_Ordinal_236
test eax, eax
je 0x1003514
cmp dword [0x1014e64], ebx
jne 0x100351f
push ebx
push 0xfa9
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x18], ebx
jne 0x1003535
push 0x1a
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x1003535
cmp dword [ebp - 4], ebx
je 0x1003540
push ebx
push 0xfaa
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 4