Function at 0x40a151
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x54
mov eax, 0x436283
call fcn.00434148
mov edi, ecx
xor ebx, ebx
mov eax, edi
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 8
jb 0x40a16e
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 0x40a1c3
lea edx, [ebp - 0x44]
mov ecx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call fcn.0040a63b
test al, al
je 0x40a1c3
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x40a1bc
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00401810
mov bl, 1
jmp 0x40a389
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.00409e96
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 0x40a21d
push eax
push str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.00404e54
pop ecx
pop ecx
jmp 0x40a347
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 0x40a331
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40a32f
shr ebx, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
je 0x40a2bf
add ebx, ebx
cmp ebx, 0x1000
jb 0x40a286
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x40a3cc
push eax
call fcn.0042f02f
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40a3b5
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40a295
test ebx, ebx
je 0x40a293
push ebx
call fcn.0042f02f
pop ecx
jmp 0x40a295
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.00430840
and dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x50], esi
call fcn.004050cd
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 0x40a2f8
push eax
push str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.00404e54
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x40a30e
push dword [ebp - 0x54]
mov ecx, edi
call fcn.00403ef8
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 0x40a347
mov edx, dword [ebp - 0x4c]
sub edx, ecx
and edx, 0xfffffffe
call fcn.00401904
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
jmp 0x40a347
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.00404e54
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40a37c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a373
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a3b5
push edx
push ecx
call fcn.0042f05f
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 0x40a3c4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a3bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042f05f
pop ecx
pop ecx
mov al, bl
call fcn.004340f7
ret
call fcn.004016b9
int3