Function at 0x4088b9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x54
mov eax, 0x410414
call fcn.0040bc20
mov edi, ecx
xor ebx, ebx
mov eax, edi
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 8
jb 0x4088d6
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop esi
mov dword [ebp - 0x44], ebx
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 0x40892b
lea edx, [ebp - 0x44]
mov ecx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call fcn.00408c60
test al, al
je 0x40892b
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x408924
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00403825
mov bl, 1
jmp 0x408af1
xor eax, eax
mov dword [ebp - 0x2c], ebx
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.004084f0
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 0x408985
push eax
push str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.004048b4
pop ecx
pop ecx
jmp 0x408aaf
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 0x408a99
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x408a97
shr ebx, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
je 0x408a27
add ebx, ebx
cmp ebx, 0x1000
jb 0x4089ee
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x408b34
push eax
call fcn.0040b69e
pop ecx
mov ecx, eax
test ecx, ecx
je 0x408b1d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4089fd
test ebx, ebx
je 0x4089fb
push ebx
call fcn.0040b69e
pop ecx
jmp 0x4089fd
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.0040cf50
and dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x50], esi
call fcn.00404ac5
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 0x408a60
push eax
push str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.004048b4
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x408a76
push dword [ebp - 0x54]
mov ecx, edi
call fcn.004037fe
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 0x408aaf
mov edx, dword [ebp - 0x4c]
sub edx, ecx
and edx, 0xfffffffe
call fcn.0040123a
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
jmp 0x408aaf
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.004048b4
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408ae4
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408adb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b1d
push edx
push ecx
call fcn.0040b690
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 0x408b2c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408b23
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040b690
pop ecx
pop ecx
mov al, bl
call fcn.0040bbde
ret
call fcn.00401339
int3