Function at 0x4086ed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x54
mov eax, 0x410fc9
call fcn.0040bec4
mov edi, ecx
xor ebx, ebx
mov eax, edi
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 8
jb 0x40870a
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
cmp byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07], 0x65
jne 0x40875c
lea edx, [ebp - 0x44]
mov ecx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call fcn.00408afe
test al, al
je 0x40875c
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x408755
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004037b8
mov bl, 1
jmp 0x40891f
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00408334
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x48]
push ecx
push 0x20219
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], ebx
cmovae eax, dword [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4087b3
push eax
push str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.0040486a
pop ecx
pop ecx
jmp 0x4088dd
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x60]
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4088c7
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x4088c5
shr ebx, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
je 0x408855
add ebx, ebx
cmp ebx, 0x1000
jb 0x40881c
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x408962
push eax
call fcn.0040b931
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40894b
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40882b
test ebx, ebx
je 0x408829
push ebx
call fcn.0040b931
pop ecx
jmp 0x40882b
xor eax, eax
push ebx
lea esi, [ebx + eax]
mov dword [ebp - 0x54], eax
push 0
push eax
mov dword [ebp - 0x4c], esi
call fcn.0040d300
and dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x50], esi
call fcn.00404a7b
mov eax, dword [ebp - 0x54]
push 7
pop esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
push ecx
push eax
push 0
push 2
push dword [ebp - 0x60]
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40888e
push eax
push str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.0040486a
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x4088a4
push dword [ebp - 0x54]
mov ecx, edi
call fcn.00403791
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4088dd
mov edx, dword [ebp - 0x4c]
sub edx, ecx
and edx, 0xfffffffe
call fcn.00401233
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
jmp 0x4088dd
xor ebx, ebx
push eax
push str.Cant_get_the_size_of_the_SDK_location_registry_value_or_its_empty__result:_0x_X
call fcn.0040486a
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408912
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40894b
push edx
push ecx
call fcn.0040b923
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], ax
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40895a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408951
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408951
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040b923
pop ecx
pop ecx
mov al, bl
call fcn.0040be7f
ret
call fcn.00401339
int3