Function at 0x40d200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415998
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x420534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40d23e
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call fcn.0040bee0
add esp, 8
test al, al
je 0x40d28c
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x40d285
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00404eb0
mov bl, 1
jmp 0x40d3b4
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040caf0
add esp, 0xc
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push 0x20219
push 0
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d2f6
push eax
push str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.0040aaa0
add esp, 8
jmp 0x40d3aa
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 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 0x40d393
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40d393
lea ecx, [ebp - 0x45]
shr eax, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040a450
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x4c]
push eax
push ebx
push 0
push 2
push dword [ebp - 0x50]
mov byte [ebp - 4], 2
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40d376
push eax
push str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.0040aaa0
add esp, 8
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x60]
xor bl, bl
call fcn.0040a500
jmp 0x40d3ac
push ebx
mov ecx, esi
call fcn.0040c640
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x60]
mov bl, 1
call fcn.0040a500
jmp 0x40d3ac
push ecx
push str.Cant_get_the_size_of_the_SDK_location_registry_value_or_its_empty__result:_0x_X
call fcn.0040aaa0
add esp, 8
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.00402900
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40d3ea
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d407
push edx
push ecx
call fcn.00411118
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411126
mov esp, ebp
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3