Function at 0x414b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x800
lea eax, [ebp - 0x804]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x414b62
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 0x414d7c
xor eax, eax
mov dword [ebp - 0x1808], 0x800
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]
call esi
test eax, eax
jne 0x414c7b
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
mov eax, dword [0x4a20f4]
test eax, eax
jne 0x414bf9
cmp byte [0x4a20f8], al
je 0x414c7b
test eax, eax
je 0x414c3e
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414c02
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a2048
call fcn.00402380
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
cmp dword [0x4a205c], 8
mov eax, 0x4a2048
mov dword [0x4a2058], 0
cmovae eax, dword [0x4a2048]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x1808], 0x800
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]
call esi
test eax, eax
jne 0x414d0c
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x414d0c
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414cd0
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a2048
call fcn.00402380
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x1808], 0x800
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]
call esi
test eax, eax
jne 0x414d70
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x414d70
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414d60
jmp 0x414cdb
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 0x414ea0
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x1808]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x1808], 0x800
push eax
push 0
push 0
push str.FriendlyTypeName
push dword [ebp - 0x180c]
call esi
test eax, eax
je 0x414ddf
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 0x414df4
sub ecx, edx
sar ecx, 1
cmp ecx, 0x1e
jbe 0x414ea0
lea ecx, [ecx*2 - 0x3a]
cmp word [ebp + ecx - 0x804], 0x5c
jne 0x414e34
cmp ecx, 0x800
jae 0x415080
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.0046b918
lea eax, [ebp - 0x1804]
push eax
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0046b918
add esp, 0x18
lea ecx, [ebp - 0x804]
mov dl, 1
call fcn.00414330
test al, al
je 0x414ea0
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414e90
jmp 0x41505b
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x804]
push 0x400
push eax
push str._ProgramFiles_x86__Windows_Kits10
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x414ee3
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414ed3
jmp 0x41505b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_Windows_Kits10
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x414f20
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414f10
jmp 0x41505b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_x86__Windows_Kits8.1
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x414f60
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414f50
jmp 0x41505b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_Windows_Kits8.1
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x414fa0
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414f90
jmp 0x41505b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_x86__Windows_Kits8.0
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x414fe0
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414fd0
jmp 0x41505b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_Windows_Kits8.0
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x41501d
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415010
jmp 0x41505b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_Windows_AIK
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414330
test al, al
je 0x415071
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415050
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a2048
call fcn.00402380
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.00463410
int3