Function at 0x412030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x274]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
call fcn.0040f160
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x278], 0
push 0
push eax
call fcn.0040f160
add esp, 0x18
test ebx, ebx
je 0x412281
test edi, edi
je 0x412281
test esi, esi
je 0x412289
mov eax, dword [esi]
mov dword [ebp - 0x280], eax
test eax, eax
je 0x412281
push 0x32
lea eax, [ebp - 0x68]
push eax
push str.InstallPath
call fcn.004181c0
add esp, 0xc
test eax, eax
jne 0x4120dd
push str.GetSpecificProductInstallPath:_Wide_conversion_failed
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push ebx
push 0x499920
push str.SOFTWARE_S_S
lea eax, [ebp - 0x274]
push 0x105
push eax
call fcn.004159a0
add esp, 0x14
lea eax, [ebp - 0x27c]
push eax
push 1
push 0
lea eax, [ebp - 0x274]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x412151
mov eax, dword [esi]
push esi
add eax, eax
push edi
mov dword [esi], eax
lea eax, [ebp - 0x278]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x27c]
shr dword [esi], 1
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412160
push str.GetSpecificProductInstallPath:_could_not_find_product_registry_key
push 4
call fcn.004439a0
add esp, 8
test ebx, ebx
je 0x412186
push str.GetSpecificProductInstallPath:_could_not_find_an_InstallPath_key_for_product
push 4
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x278], 1
je 0x4121b1
push str.GetSpecificProductInstallPath:_registry_key_is_not_a_string
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
cmp eax, 2
jae 0x4121db
push eax
push str.GetSpecificProductInstallPath:_invalid_path_length:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp word [edi + eax*2 - 2], 0
je 0x412205
push str.GetSpecificProductInstallPath:_path_length_does_not_correspond_to_actual_buffer
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp word [edi + eax*2 - 4], 0x5c
je 0x41223a
cmp eax, dword [ebp - 0x280]
jae 0x41225f
push str.GetSpecificProductInstallPath:_appending_slash_to_path
push 0x20
call fcn.004439a0
mov eax, dword [esi]
mov ecx, 0x5c
add esp, 8
mov word [edi + eax*2 - 2], cx
xor ecx, ecx
mov eax, dword [esi]
mov word [edi + eax*2], cx
inc dword [esi]
push str.GetSpecificProductInstallPath:_install_path_read_from_product_key
push 0x10
call fcn.004439a0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.GetSpecificProductInstallPath:_need_to_append_slash_but_inadequate_buffer_space
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x412289
mov eax, dword [esi]
jmp 0x41228b
xor eax, eax
push eax
push esi
push edi
push ebx
push str.GetSpecificProductInstallPath:_invalid_parameters:_0x_08x_0x_08x_0x_08x_0x_08x
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret