Function at 0x460d95
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x47cf0e
call fcn.004680bc
sub esp, 0xc8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.004604e8
test al, al
jne 0x460dc7
call fcn.00460501
test al, al
mov eax, SysReAllocStringLen
je 0x460dcc
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareInstallShieldPendingOperation
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x461040
lea ecx, [ebp - 0x14]
call fcn.00403666
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x461040
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x49c098
push ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x460e34
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 1
pop eax
cmp ecx, eax
mov dword [ebp - 0x20], eax
jb 0x460fc9
mov edi, 0x104
lea eax, [ebp - 0x22]
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x47e4b8
mov dword [ebp - 0x34], 0x47e4b0
call fcn.004058e5
lea eax, [ebp - 0x21]
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], 0x47e4b8
mov dword [ebp - 0x5c], 0x47e4b0
call fcn.004058e5
push dword [ebp - 0x20]
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], edi
push str.dest_d
push eax
mov dword [ebp - 0x2c], edi
call esi
add esp, 0xc
lea eax, [ebp - 0x9c]
push dword [ebp - 0x20]
push str.source_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x7c]
push edi
push eax
call fcn.0041f411
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call fcn.00406608
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x460f60
lea eax, [ebp - 0xb4]
push edi
push eax
lea ecx, [ebp - 0x54]
call fcn.0041f411
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
call fcn.00406608
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x9c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
lea ecx, [ebp - 0xb4]
sete byte [ebp - 0xd]
mov byte [ebp - 4], 3
call fcn.00405d65
cmp byte [ebp - 0xd], bl
mov byte [ebp - 0xd], 1
jne 0x460f63
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00405d65
cmp byte [ebp - 0xd], bl
je 0x460fa3
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
call fcn.0041d844
pop ecx
test al, al
pop ecx
lea eax, [ebp - 0x54]
push eax
jne 0x46105b
push dword [ebp + 0xc]
call fcn.0041d844
pop ecx
test al, al
pop ecx
jne 0x4610a1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407421
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00407421
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], ecx
jbe 0x460e50
inc ecx
lea eax, [ebp - 0xd4]
push ecx
push str.dest_d
push eax
call esi
mov eax, dword [ebp - 0x1c]
add esp, 0xc
inc eax
push eax
lea eax, [ebp - 0x9c]
push str.source_d
push eax
call esi
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
call fcn.00406608
push eax
lea ecx, [ebp - 0x14]
call fcn.00458fbd
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xd4]
push eax
call fcn.00406608
push eax
lea ecx, [ebp - 0x14]
call fcn.00458fbd
mov eax, dword [ebp - 0x1c]
push 4
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push ebx
push 0x49c098
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403666
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp + 8]
call fcn.0041d844
pop ecx
test al, al
pop ecx
jne 0x4610c8
lea ecx, [ebp - 0x54]
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
call fcn.00406608
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
lea eax, [ebp - 0x9c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4610c8
lea ecx, [ebp - 0x54]
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
call fcn.00406608
push eax
lea ecx, [ebp - 0x14]
call fcn.00458fbd
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407421
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00407421
jmp 0x461040