Function at 0x10044b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x10154a4]
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x864]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x864], 0x30
call dword [sym.imp.user32.dll_GetMenuItemCount]
xor edi, edi
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x814], edi
mov dword [ebp - 0x810], edi
mov eax, dword [ebp - 0x810]
cmp eax, dword [ebp - 0x830]
jge 0x10045d4
mov esi, dword [sym.imp.user32.dll_GetMenuItemInfoW]
lea ecx, [ebp - 0x864]
push ecx
xor ebx, ebx
inc ebx
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x860], 2
call esi
test eax, eax
je 0x10045c2
cmp dword [ebp - 0x854], 0xfa0
jne 0x10045c2
lea eax, [ebp - 0x864]
push eax
push ebx
push dword [ebp - 0x810]
mov dword [ebp - 0x814], ebx
push dword [ebp + 8]
mov dword [ebp - 0x860], 4
call esi
test eax, eax
je 0x10045c2
cmp dword [ebp - 0x850], edi
je 0x1004580
push dword [ebp - 0x850]
call dword [sym.imp.user32.dll_DestroyMenu]
push 0xfa1
push dword [0x1015d70]
call dword [sym.imp.user32.dll_LoadMenuW]
cmp eax, edi
mov dword [ebp - 0x850], eax
je 0x10045c2
lea eax, [ebp - 0x864]
push eax
push ebx
push dword [ebp - 0x810]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetMenuItemInfoW]
test eax, eax
jne 0x10045c2
push dword [ebp - 0x850]
call dword [sym.imp.user32.dll_DestroyMenu]
inc dword [ebp - 0x810]
cmp dword [ebp - 0x814], edi
je 0x10044fe
cmp dword [ebp - 0x814], edi
je 0x1004a54
push edi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x828]
push eax
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x82c], edi
call fcn.01002cf0
call fcn.01002d7b
push 0x1001790
push edi
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 edi
mov dword [ebp - 0x824], eax
call dword [sym.imp.shlwapi.dll_Ordinal_413]
mov ebx, eax
lea eax, [ebp - 0x820]
push eax
dec ebx
push 1
dec ebx
push edi
neg ebx
push 0x1001ab0
sbb ebx, ebx
push 0x80000002
inc ebx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x810], edi
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x814], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10046b9
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
push edi
push 0x1001a80
push dword [ebp - 0x820]
mov dword [ebp - 0x818], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x10046ad
cmp dword [ebp - 0x81c], edi
setne al
mov dword [ebp - 0x814], eax
push dword [ebp - 0x820]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x820]
push eax
push 1
push edi
push 0x1001a08
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10047f0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
push edi
push 0x1001a80
push dword [ebp - 0x820]
mov dword [ebp - 0x818], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x100472a
cmp dword [ebp - 0x814], edi
jne 0x1004720
cmp dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], edi
je 0x100472a
mov dword [ebp - 0x814], 1
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
push edi
push 0x10019f0
push dword [ebp - 0x820]
mov dword [ebp - 0x818], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004768
cmp dword [ebp - 0x81c], edi
setne al
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
push edi
push 0x10019e0
push dword [ebp - 0x820]
mov dword [ebp - 0x818], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x10047a6
cmp dword [ebp - 0x81c], edi
setne al
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
push edi
push 0x10019c4
push dword [ebp - 0x820]
mov dword [ebp - 0x818], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x10047e4
cmp dword [ebp - 0x81c], edi
setne al
mov dword [ebp - 0x834], eax
push dword [ebp - 0x820]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, edi
je 0x100480c
cmp dword [ebp - 0x82c], edi
je 0x100480c
cmp dword [ebp - 0x824], edi
jne 0x100480c
cmp dword [ebp - 0x810], edi
je 0x100481c
push 3
push 0xfa4
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EnableMenuItem]
cmp esi, edi
je 0x1004838
cmp dword [ebp - 0x828], edi
je 0x1004838
cmp dword [ebp - 0x824], edi
jne 0x1004838
cmp dword [ebp - 0x810], edi
je 0x1004848
push 3
push 0xfa2
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EnableMenuItem]
cmp esi, edi
je 0x1004854
cmp dword [ebp - 0x810], edi
je 0x1004864
push 3
push 0xfa3
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EnableMenuItem]
cmp esi, edi
je 0x1004870
cmp dword [ebp - 0x810], edi
je 0x1004880
push 3
push 0xfa5
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EnableMenuItem]
lea eax, [ebp - 0x204]
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x864]
push eax
push edi
mov esi, 0xfa6
push esi
push dword [ebp + 8]
mov dword [ebp - 0x860], 0x10
mov dword [ebp - 0x83c], 0x100
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x1004987
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x408]
push eax
mov word [ebp - 0x408], di
mov dword [ebp - 0x828], 0x101
call sub.shell32.dll_Ordinal_241
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x80c]
push 0x201
push eax
call fcn.0100368a
add esp, 0x10
test eax, eax
jl 0x1004923
lea eax, [ebp - 0x80c]
push eax
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.0100337b
jmp 0x1004975
push 0x10019bc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.shlwapi.dll_StrStrIW]
cmp eax, edi
mov dword [ebp - 0x82c], eax
je 0x1004975
mov word [eax], di
lea eax, [ebp - 0x204]
push eax
push 0x201
lea eax, [ebp - 0x80c]
push eax
call fcn.0100337b
mov eax, dword [ebp - 0x82c]
add eax, 6
push eax
push 0x201
lea eax, [ebp - 0x80c]
push eax
call fcn.010036b1
lea eax, [ebp - 0x864]
push eax
push edi
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 0x10049a7
cmp dword [ebp - 0x810], edi
jne 0x10049a7
cmp dword [ebp - 0x830], edi
je 0x10049b3
push 3
push esi
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EnableMenuItem]
cmp dword [ebp - 0x824], edi
mov esi, dword [sym.imp.user32.dll_DeleteMenu]
jne 0x10049d5
push 0x1a
call dword [sym.imp.shlwapi.dll_IsOS]
test eax, eax
je 0x10049d5
cmp dword [ebp - 0x834], edi
je 0x10049fc
push edi
push 0xfa7
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x824], edi
je 0x10049fc
push 0x1a
call dword [sym.imp.shlwapi.dll_IsOS]
test eax, eax
je 0x10049fc
cmp dword [ebp - 0x834], edi
je 0x1004a07
push edi
push 0xfa8
push dword [ebp + 8]
call esi
cmp ebx, edi
je 0x1004a22
push 0x1001998
push edi
call sub.shell32.dll_Ordinal_236
test eax, eax
je 0x1004a22
cmp dword [fcn.01015dd8], edi
jne 0x1004a2d
push edi
push 0xfa9
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x824], edi
jne 0x1004a49
push 0x1a
call dword [sym.imp.shlwapi.dll_IsOS]
test eax, eax
jne 0x1004a49
cmp dword [ebp - 0x814], edi
je 0x1004a54
push edi
push 0xfaa
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01011fd4
leave
ret 4