Function at 0x10046980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd653
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x10114894]
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 ebx, ecx
mov dword [ebp - 0x640], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10066cd0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [0x10113788]
push dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.100078b0
mov ecx, eax
test ecx, ecx
je 0x10046dce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x10046a23
movzx eax, ax
lea ecx, [ebp - 0x630]
push eax
call fcn.10008670
jmp 0x10046a52
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046a30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.100070c0
mov edi, dword [ebp - 0x630]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 4], 1
mov eax, dword [edi - 0xc]
add eax, eax
push eax
push edi
push 1
push str.DisplayIcon
push dword [0x1011379c]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push dword [0x10113780]
lea ecx, [ebp - 0x63c]
call fcn.10008a60
mov eax, dword [ebp - 0x63c]
mov byte [ebp - 4], 2
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayName
push dword [0x1011379c]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10066cd0
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [0x1011378c]
push dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.100078b0
mov ecx, eax
test ecx, ecx
je 0x10046dd8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x634], eax
mov byte [ebp - 4], 3
call fcn.100078b0
mov ecx, eax
test ecx, ecx
je 0x10046de2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x10046b41
movzx eax, ax
lea ecx, [ebp - 0x62c]
push eax
call fcn.10008670
jmp 0x10046b72
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046b50
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x62c]
call fcn.100070c0
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.10023570
mov edx, dword [ebp - 0x62c]
add esp, 8
mov byte [ebp - 4], 3
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10046bae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayVersion
push dword [0x1011379c]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10006bd0
mov ebx, eax
add esp, 4
lea eax, [ebx + 0x10]
mov dword [ebp - 0x644], eax
mov ecx, dword [eax - 0xc]
add ecx, ecx
mov byte [ebp - 4], 6
push ecx
push eax
push 1
push str.InstallLocation
push dword [0x1011379c]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push dword [0x101137a0]
lea ecx, [ebp - 0x638]
call fcn.10008a60
mov eax, dword [ebp - 0x638]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.Publisher
push dword [0x1011379c]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10066cd0
mov eax, dword [ebp - 0x640]
add esp, 0xc
push dword [0x10113790]
push dword [eax]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.100078b0
mov ecx, eax
test ecx, ecx
je 0x10046dec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 8
test eax, 0xffff0000
jne 0x10046cad
movzx eax, ax
lea ecx, [ebp - 0x62c]
push eax
call fcn.10008670
jmp 0x10046cd8
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046cb6
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x62c]
call fcn.100070c0
mov esi, dword [ebp - 0x62c]
mov byte [ebp - 4], 7
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.UninstallString
push dword [0x1011379c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10046d1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x638]
mov eax, esi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10046d3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10046d54
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x634]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10046d75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x63c]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10046d96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x10046db2
mov ecx, dword [edi]
push edi
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.1005e6b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005050
push 0x80004005
call fcn.10005050
push 0x80004005
call fcn.10005050
push 0x80004005
call fcn.10005050
int3