Function at 0x411010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.0045db90
mov eax, dword [0x4920c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x800
lea eax, [ebp - 0x804]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x411032
push esi
lea eax, [ebp - 0x180c]
push eax
push 0xf023f
push ecx
push str.SOFTWAREMicrosoftWindows_KitsInstalled_Roots
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4111ab
xor eax, eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x1808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push str.KitsRoot10
push dword [ebp - 0x180c]
mov dword [ebp - 0x1808], 0x800
call esi
test eax, eax
jne 0x41110d
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
cmp dword [0x495dc8], 0
jne 0x4110e1
cmp byte [0x495dcc], 0
je 0x41110d
mov ecx, 0x495d4c
call fcn.00402070
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
mov ecx, 0x495d4c
call fcn.00401f70
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x1808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push str.KitsRoot81
push dword [ebp - 0x180c]
mov dword [ebp - 0x1808], 0x800
call esi
test eax, eax
jne 0x411154
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
jne 0x4110e1
xor eax, eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x1808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push str.KitsRoot
push dword [ebp - 0x180c]
mov dword [ebp - 0x1808], 0x800
call esi
test eax, eax
jne 0x41119f
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
jne 0x4110e1
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x180c]
push eax
push 0xf003f
push 0
push str.SOFTWAREClassesMSCIL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4112b0
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x1808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push str.FriendlyTypeName
push dword [ebp - 0x180c]
mov dword [ebp - 0x1808], 0x800
call esi
test eax, eax
je 0x41120e
xor eax, eax
mov word [ebp - 0x804], ax
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411223
sub ecx, edx
sar ecx, 1
cmp ecx, 0x1e
jbe 0x4112b0
lea ecx, [ecx*2 - 0x3a]
cmp word [ebp + ecx - 0x804], 0x5c
jne 0x41125f
cmp ecx, 0x800
jae 0x411440
xor eax, eax
mov word [ebp + ecx - 0x804], ax
xor eax, eax
mov word [ebp - 0x1804], ax
lea eax, [ebp - 0x802]
push eax
lea eax, [ebp - 0x1804]
push 0x800
push eax
call fcn.004513ee
lea eax, [ebp - 0x1804]
push eax
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.004513ee
add esp, 0x18
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
jne 0x411420
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_x86__Windows_Kits10
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
je 0x411340
cmp word [ebp - 0x804], 0
jne 0x411307
xor ecx, ecx
push ecx
lea eax, [ebp - 0x804]
push eax
mov ecx, 0x495d4c
call fcn.004023a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411310
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
push eax
mov ecx, 0x495d4c
call fcn.004023a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_Windows_Kits10
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
lea eax, [ebp - 0x804]
jne 0x411426
push 0x400
push eax
push str._ProgramFiles_x86__Windows_Kits8.1
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
lea eax, [ebp - 0x804]
jne 0x411426
push 0x400
push eax
push str._ProgramFiles_Windows_Kits8.1
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
lea eax, [ebp - 0x804]
jne 0x411426
push 0x400
push eax
push str._ProgramFiles_x86__Windows_Kits8.0
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
lea eax, [ebp - 0x804]
jne 0x411426
push 0x400
push eax
push str._ProgramFiles_Windows_Kits8.0
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
lea eax, [ebp - 0x804]
jne 0x411426
push 0x400
push eax
push str._ProgramFiles_Windows_AIK
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.004109f0
test al, al
je 0x411431
lea eax, [ebp - 0x804]
push eax
mov ecx, 0x495d4c
call fcn.00401f70
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
call fcn.0045119a
int3