Function at 0x40871d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x54
mov eax, 0x4102a4
call fcn.0040baa4
mov edi, ecx
xor ebx, ebx
mov eax, edi
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 8
jb 0x40873a
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop esi
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 0x40878c
lea edx, [ebp - 0x44]
mov ecx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call fcn.00408b2e
test al, al
je 0x40878c
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x408785
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004037c5
mov bl, 1
jmp 0x40894f
xor eax, eax
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.00408364
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 0x4087e3
push eax
push str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.0040484a
pop ecx
pop ecx
jmp 0x40890d
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 0x4088f7
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x4088f5
shr ebx, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
je 0x408885
add ebx, ebx
cmp ebx, 0x1000
jb 0x40884c
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x408992
push eax
call fcn.0040b511
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40897b
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40885b
test ebx, ebx
je 0x408859
push ebx
call fcn.0040b511
pop ecx
jmp 0x40885b
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.0040cde0
and dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x50], esi
call fcn.00404a5b
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 0x4088be
push eax
push str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.0040484a
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x4088d4
push dword [ebp - 0x54]
mov ecx, edi
call fcn.0040379e
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 0x40890d
mov edx, dword [ebp - 0x4c]
sub edx, ecx
and edx, 0xfffffffe
call fcn.00401233
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
jmp 0x40890d
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.0040484a
pop ecx
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408942
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408939
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40897b
push edx
push ecx
call fcn.0040b503
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 0x40898a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408981
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040b503
pop ecx
pop ecx
mov al, bl
call fcn.0040ba5f
ret
call fcn.00401339
int3