Function at 0x40d0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41519d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x41e014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebx + 0x10], 0
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x40d0ee
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
cmp byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07], 0x65
jne 0x40d144
lea edx, [ebp - 0x40]
mov ecx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call fcn.0040d610
test al, al
je 0x40d144
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x40d13d
cmp dword [ebp - 0x2c], 8
mov ecx, ebx
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004058f0
mov bl, 1
jmp 0x40d33d
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x4c]
call fcn.0040c780
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0x20219
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d1b0
push eax
push str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.00407000
add esp, 8
jmp 0x40d2f1
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push 0
push 0
push 2
push dword [ebp - 0x50]
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
test ecx, ecx
jne 0x40d2da
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40d2da
mov esi, ecx
shr eax, 1
mov edi, esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
je 0x40d25a
lea edi, [eax + eax]
cmp edi, 0x1000
jb 0x40d22a
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x40d397
push eax
call fcn.004111de
add esp, 4
test eax, eax
je 0x40d369
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x40d23d
test edi, edi
je 0x40d23b
push edi
call fcn.004111de
add esp, 4
mov esi, eax
jmp 0x40d23d
xor esi, esi
mov ecx, dword [ebp - 0x4c]
add edi, esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], edi
lea eax, [ecx + ecx]
push eax
push 0
push esi
call fcn.00412a90
add esp, 0xc
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
push esi
push 0
push 2
push dword [ebp - 0x50]
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40d294
push eax
push str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.00407000
add esp, 8
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x40d2a7
push esi
mov ecx, ebx
call fcn.004058c0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
test esi, esi
je 0x40d2f3
sub edi, esi
mov eax, esi
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x40d2ce
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d369
push edi
push esi
call fcn.004111d0
add esp, 8
jmp 0x40d2f3
push ecx
push str.Cant_get_the_size_of_the_SDK_location_registry_value_or_its_empty__result:_0x_X
call fcn.00407000
add esp, 8
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40d329
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d31f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d369
push ecx
push edx
call fcn.004111d0
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x40d379
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d36f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d36f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004111d0
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004111c2
mov esp, ebp
pop ebp
ret
call fcn.004013f0
int3