Function at 0x4060c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a5f8
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x450], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x454], eax
xor ecx, ecx
mov word [ebp - 0x434], cx
push 0x206
xor esi, esi
push esi
lea edx, [ebp - 0x432]
push edx
call fcn.004416b0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x206
push esi
lea ecx, [ebp - 0x22a]
push ecx
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x438], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x43c], 0x104
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x406315
mov dword [ebp - 4], esi
lea edx, [ebp - 0x438]
push edx
push 0x20019
push esi
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406337
mov dword [ebp - 0x43c], 0x208
mov dword [ebp - 0x440], 1
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x440]
push eax
push esi
push str.InstallLocation
mov ecx, dword [ebp - 0x438]
push ecx
call ebx
test eax, eax
je 0x40624b
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x440]
push ecx
push esi
push str.UninstallString
mov edx, dword [ebp - 0x438]
push edx
call ebx
test eax, eax
je 0x40624b
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x440]
push edx
push esi
push str.UninstallPath
mov eax, dword [ebp - 0x438]
push eax
call ebx
test eax, eax
jne 0x406337
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406254
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x4062b0
cmp word [ebp - 0x22c], 0x22
jne 0x4062b0
xor ecx, ecx
mov dword [ebp - 0x44c], ecx
lea edx, [eax - 1]
cmp ecx, edx
jge 0x406294
mov dx, word [ebp + ecx*2 - 0x22a]
mov word [ebp + ecx*2 - 0x22c], dx
inc ecx
jmp 0x406274
xor ecx, ecx
mov word [ebp + eax*2 - 0x22e], cx
lea eax, [ebp + eax*2 - 0x230]
cmp word [eax], 0x22
jne 0x4062b0
xor edx, edx
mov word [eax], dx
push str..exe
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4062d3
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406337
push str.File_is_in_Add_or_Remove_Program_List
call fcn.00404c20
add esp, 4
mov dword [ebp - 0x448], 1
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x48e050
call fcn.00448450
add esp, 0xc
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
call fcn.0040635c
inc dword [ebp - 0x444]
jmp 0x406163