Function at 0x1004f6a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d8b1
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x101684dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x430], eax
cmp dword [eax + 0xc], 0
je 0x1004f91b
lea edi, [eax + 0x14]
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004f6f0
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub edx, ecx
sar edx, 1
lea eax, [edx + edx]
push eax
push edi
push 1
push str.DisplayIcon
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push 0xa
push 0x1012a890
push 1
push str.DisplayName
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
call fcn.10005070
mov ecx, eax
test ecx, ecx
je 0x1004f937
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], 0
call fcn.10005070
mov ecx, eax
test ecx, ecx
je 0x1004f941
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x1004f7b1
test edi, 0xffff0000
jne 0x1004f799
movzx eax, di
lea ecx, [ebp - 0x428]
push eax
call fcn.1001eae0
jmp 0x1004f7c0
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f7a0
sub ecx, edx
sar ecx, 1
jmp 0x1004f7b3
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x428]
call fcn.100059d0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.10017b00
mov edx, dword [ebp - 0x428]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f7fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x42c]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10094c40
lea ecx, [ebp - 0x21c]
add esp, 0xc
sub ecx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x1004f840
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f866
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push str.InstallLocation
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.10094c40
mov eax, dword [ebp - 0x430]
add esp, 0xc
push str.uninst.exe
push dword [eax]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f8d2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x424]
push eax
push 1
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004f91b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067be8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004440
push 0x80004005
call fcn.10004440
int3