Function at 0x40dc90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415cdd
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x41f4e4]
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, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x40dcd2
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
push str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call fcn.0040c910
add esp, 8
test al, al
je 0x40dd23
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x40dd1c
cmp dword [ebp - 0x2c], 8
mov ecx, ebx
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00404c10
mov bl, 1
jmp 0x40df11
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 eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040d390
add esp, 0xc
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push 0x20219
push 0
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40dd96
push eax
push str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.0040b430
add esp, 8
xor bl, bl
jmp 0x40dec3
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 - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
test ecx, ecx
jne 0x40df3f
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40df3f
shr eax, 1
mov edi, ecx
mov ebx, edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov esi, ebx
mov dword [ebp - 0x5c], edi
je 0x40de3c
lea ebx, [eax + eax]
cmp ebx, 0x1000
jb 0x40de0f
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x40df85
push eax
call fcn.00411bc3
add esp, 4
test eax, eax
je 0x40df8a
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40de22
test ebx, ebx
je 0x40de20
push ebx
call fcn.00411bc3
add esp, 4
mov edi, eax
jmp 0x40de22
xor edi, edi
push ebx
push 0
lea esi, [ebx + edi]
mov dword [ebp - 0x64], edi
push edi
mov dword [ebp - 0x5c], esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], esi
mov ebx, edi
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
push edi
push 0
push 2
push dword [ebp - 0x50]
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40de79
push eax
push str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.0040b430
add esp, 8
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov byte [ebp - 0x41], al
jmp 0x40de8f
mov ecx, dword [ebp - 0x58]
push edi
call fcn.0040ce90
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x41], 1
test ebx, ebx
je 0x40dec0
sub esi, ebx
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x40deb6
mov ecx, dword [ebx - 4]
add esi, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x40df8a
mov ebx, ecx
push esi
push ebx
call fcn.00411bf3
add esp, 8
mov bl, byte [ebp - 0x41]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40defd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40def3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8a
push edx
push ecx
call fcn.00411bf3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40df67
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40df5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8a
jmp 0x40df5d
push ecx
push str.Cant_get_the_size_of_the_SDK_location_registry_value_or_its_empty__result:_0x_X
call fcn.0040b430
add esp, 8
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x40dec3
push edx
push ecx
call fcn.00411bf3
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.00411c01
mov esp, ebp
pop ebp
ret
call fcn.004047a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3