Function at 0x10016320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [0x10089eac]
mov dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 0xc]
test al, 1
jne 0x100163af
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
push 0
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x10089e5c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10016694
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100163e3
sub ecx, edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push str.DisplayName
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x10016439
push dword [ebp - 0x210]
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0x20
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016440
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x210]
call edi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10016673
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100164b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x210]
call edi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10016673
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [ebp - 0x21c]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016521
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x210]
call edi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10016673
mov ebx, dword [ebp - 0x214]
test ebx, ebx
je 0x100165a9
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016570
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x210]
call edi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10016673
mov ebx, dword [ebp - 0x220]
test ebx, ebx
je 0x100165f5
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100165c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.URLInfoAbout
push dword [ebp - 0x210]
call edi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10016673
mov ebx, dword [ebp - 0x224]
test ebx, ebx
je 0x10016673
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016604
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.Publisher
push dword [ebp - 0x210]
call edi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10016673
mov esi, dword [ebp - 0x228]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016644
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push str.InstallTime
push dword [ebp - 0x210]
call edi
neg eax
sbb esi, esi
and esi, 0x80004005
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop esi
xor ecx, ebp
pop ebx
call fcn.10041e20
mov esp, ebp
pop ebp
ret 0x20