Function at 0x415070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.004839d0
mov eax, dword [0x4ab00c]
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 0x415092
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 0x4152ac
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 0x4151ab
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414860
mov eax, dword [0x4ae1ac]
test eax, eax
jne 0x415129
cmp byte [0x4ae1b0], al
je 0x4151ab
test eax, eax
je 0x41516e
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415132
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4ae100
call fcn.00402430
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret
cmp dword [0x4ae114], 8
mov eax, 0x4ae100
mov dword [0x4ae110], 0
cmovae eax, dword [0x4ae100]
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.0046b9f0
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 0x41523c
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414860
test al, al
je 0x41523c
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415200
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4ae100
call fcn.00402430
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b9f0
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 0x4152a0
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414860
test al, al
je 0x4152a0
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415290
jmp 0x41520b
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 0x4153d0
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 0x41530f
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 0x415324
sub ecx, edx
sar ecx, 1
cmp ecx, 0x1e
jbe 0x4153d0
lea ecx, [ecx*2 - 0x3a]
cmp word [ebp + ecx - 0x804], 0x5c
jne 0x415364
cmp ecx, 0x800
jae 0x4155b0
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.00474910
lea eax, [ebp - 0x1804]
push eax
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00474910
add esp, 0x18
lea ecx, [ebp - 0x804]
mov dl, 1
call fcn.00414860
test al, al
je 0x4153d0
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4153c0
jmp 0x41558b
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.00414860
test al, al
je 0x415413
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415403
jmp 0x41558b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_Windows_Kits10
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414860
test al, al
je 0x415450
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415440
jmp 0x41558b
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.00414860
test al, al
je 0x415490
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415480
jmp 0x41558b
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.00414860
test al, al
je 0x4154d0
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4154c0
jmp 0x41558b
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.00414860
test al, al
je 0x415510
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415500
jmp 0x41558b
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.00414860
test al, al
je 0x41554d
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415540
jmp 0x41558b
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._ProgramFiles_Windows_AIK
call esi
mov dl, 1
lea ecx, [ebp - 0x804]
call fcn.00414860
test al, al
je 0x4155a1
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415580
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4ae100
call fcn.00402430
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret
call fcn.0046bb60
int3