Function at 0x4610e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47cf46
call fcn.004680bc
sub esp, 0xc8
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call fcn.004604e8
test al, al
jne 0x461116
call fcn.00460501
test al, al
mov eax, SysReAllocStringLen
je 0x46111b
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push ecx
push 0xf003f
push esi
push str.SoftwareInstallShieldPendingOperation
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4612fa
lea ecx, [ebp - 0x14]
call fcn.00403666
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
jne 0x4612fa
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], esi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x49c098
push ecx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x46117c
mov dword [ebp - 0x1c], esi
push 1
pop eax
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jb 0x4612fa
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
push dword [ebp - 0x18]
lea eax, [ebp - 0xd4]
push str.dest_d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0xb4]
push dword [ebp - 0x18]
push str.source_d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x22]
mov edi, 0x47e4b0
lea ecx, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x54], 0x47e4b8
mov dword [ebp - 0x34], edi
call fcn.004058e5
lea eax, [ebp - 0x21]
push 0
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], 0x47e4b8
mov dword [ebp - 0x5c], edi
call fcn.004058e5
lea eax, [ebp - 0x94]
push esi
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call fcn.0041f411
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 3
call fcn.00406608
lea ecx, [ebp - 0x28]
mov dword [edi + 8], eax
push ecx
push eax
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4612a6
lea eax, [ebp - 0x88]
push esi
push eax
lea ecx, [ebp - 0x54]
call fcn.0041f411
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
call fcn.00406608
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb4]
push 0
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
sete byte [ebp - 0xd]
call fcn.00405d65
cmp byte [ebp - 0xd], 0
je 0x4612a6
mov byte [ebp - 0xd], 1
jmp 0x4612aa
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00405d65
cmp byte [ebp - 0xd], 0
je 0x4612d1
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
call fcn.0041d844
pop ecx
test al, al
pop ecx
jne 0x461319
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407421
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407421
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jbe 0x461196
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x461308
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
push dword [0x47e51c]
lea eax, [ebp - 0x54]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x50]
and eax, ecx
push 0
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 4]
call fcn.00406732
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407421
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407421
lea ecx, [ebp - 0x14]
call fcn.00403666
jmp 0x461308