Function at 0x410270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x208
mov ebx, ecx
push eax
lea ecx, [ebp - 0x272]
push ecx
mov word [ebp - 0x274], ax
call fcn.00405300
xor edx, edx
push 0x62
push edx
lea eax, [ebp - 0x66]
push eax
mov dword [ebp - 0x278], 0
mov word [ebp - 0x68], dx
call fcn.00405300
add esp, 0x18
test ebx, ebx
je 0x4104b9
test edi, edi
je 0x4104b9
test esi, esi
je 0x4104c1
mov eax, dword [esi]
test eax, eax
je 0x4104b9
push 0x32
lea ecx, [ebp - 0x68]
push ecx
push str.InstallPath
mov dword [ebp - 0x280], eax
call fcn.00413190
add esp, 0xc
test eax, eax
jne 0x41031f
push str.GetSpecificProductInstallPath:_Wide_conversion_failed
push 1
call fcn.004343f0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push ebx
push 0x46a584
push str.SOFTWARE_S_S
lea edx, [ebp - 0x274]
push 0x105
push edx
call fcn.00457d45
add esp, 0x14
lea eax, [ebp - 0x27c]
push eax
push 1
push 0
lea ecx, [ebp - 0x274]
push ecx
push 0x80000002
call dword [0x4650cc]
mov ebx, eax
test ebx, ebx
jne 0x410395
mov edx, dword [esi]
push esi
push edi
lea eax, [ebp - 0x278]
push eax
add edx, edx
push ebx
lea ecx, [ebp - 0x68]
mov dword [esi], edx
mov edx, dword [ebp - 0x27c]
push ecx
push edx
call dword [0x4650c4]
shr dword [esi], 1
mov ebx, eax
mov eax, dword [ebp - 0x27c]
push eax
call dword [0x4650d0]
jmp 0x4103a4
push str.GetSpecificProductInstallPath:_could_not_find_product_registry_key
push 4
call fcn.004343f0
add esp, 8
test ebx, ebx
je 0x4103c8
push str.GetSpecificProductInstallPath:_could_not_find_an_InstallPath_key_for_product
push 4
call fcn.004343f0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x278], 1
je 0x4103f1
push str.GetSpecificProductInstallPath:_registry_key_is_not_a_string
push 1
call fcn.004343f0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
cmp eax, 2
jae 0x410419
push eax
push str.GetSpecificProductInstallPath:_invalid_path_length:_0x_08x
push 1
call fcn.004343f0
add esp, 0xc
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
cmp word [edi + eax*2 - 2], 0
je 0x410441
push str.GetSpecificProductInstallPath:_path_length_does_not_correspond_to_actual_buffer
push 1
call fcn.004343f0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
cmp word [edi + eax*2 - 4], 0x5c
je 0x410476
cmp eax, dword [ebp - 0x280]
jae 0x410499
push str.GetSpecificProductInstallPath:_appending_slash_to_path
push 0x20
call fcn.004343f0
mov ecx, dword [esi]
mov edx, 0x5c
mov word [edi + ecx*2 - 2], dx
mov eax, dword [esi]
xor ecx, ecx
add esp, 8
mov word [edi + eax*2], cx
inc dword [esi]
push str.GetSpecificProductInstallPath:_install_path_read_from_product_key
push 0x10
call fcn.004343f0
add esp, 8
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.GetSpecificProductInstallPath:_need_to_append_slash_but_inadequate_buffer_space
push 1
call fcn.004343f0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4104c1
mov eax, dword [esi]
jmp 0x4104c3
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.004343f0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret