Function at 0x459160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb5e0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4fa0a8]
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, dword [ebp + 0xc]
mov esi, dword [0x50f3cc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x21c], 0
test esi, esi
je 0x4591ee
lock inc dword [esi + 4]
mov esi, dword [0x50f3cc]
mov ecx, dword [0x50f3c8]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x220]
mov eax, dword [ecx]
push edx
call dword [eax + 0x30]
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x220]
or edi, 0xffffffff
mov dword [ebp - 0x224], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45925c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45927e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45927e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x45927e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x224], 0
jne 0x459473
mov edx, dword [ebp - 0x228]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459296
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.DisplayName
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x45945e
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4592d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x45945e
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0049c3c0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebp - 0x22c]
push ebx
push eax
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459331
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x45945e
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0049c3c0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x230]
push ebx
push eax
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459392
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x45945e
mov eax, dword [ebp - 0x234]
xor esi, esi
test eax, eax
je 0x4593eb
mov ecx, dword [ebp - 0x21c]
mov edx, str.DisplayVersion
push eax
call fcn.004594a0
mov esi, eax
add esp, 4
test esi, esi
js 0x459463
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x45940f
mov ecx, dword [ebp - 0x21c]
mov edx, str.URLInfoAbout
push eax
call fcn.004594a0
mov esi, eax
add esp, 4
test esi, esi
js 0x459463
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x459463
mov ecx, dword [ebp - 0x21c]
mov edx, 0x4e3c88
push eax
call fcn.004594a0
mov esi, eax
add esp, 4
test esi, esi
js 0x459463
push dword [ebp - 0x240]
mov ecx, dword [ebp - 0x21c]
mov edx, str.InstallTime
call fcn.004594a0
add esp, 4
mov esi, eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x459478
mov esi, 0x80004005
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x459478
mov eax, 0x80004005
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.0049a9dd
mov esp, ebp
pop ebp
ret 0x20