Function at 0x407610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecd78
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5441b4]
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
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], esi
push 0x34
xor eax, eax
push 0x50bae0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.004073c0
push esi
push ebx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004064e0
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov edi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], edi
jae 0x407696
mov ecx, esi
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x68]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4076fe
push str.RegWriteUninstInfo
call fcn.00407570
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x4076d5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
test eax, eax
je 0x4076f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40792c
mov ecx, dword [ebx + 0x2c]
cmp dword [ebx + 0x30], edi
lea eax, [ebx + 0x1c]
jb 0x40770b
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x68]
push 1
push 0
push str.DisplayIcon
push eax
call esi
mov ecx, dword [ebx + 0x48]
cmp dword [ebx + 0x4c], edi
lea eax, [ebx + 0x38]
jb 0x407732
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.DisplayName
push edx
call esi
mov ecx, dword [ebx + 0x64]
cmp dword [ebx + 0x68], edi
lea eax, [ebx + 0x54]
jb 0x407752
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.DisplayVersion
push edx
call esi
mov ecx, dword [ebx + 0x80]
cmp dword [ebx + 0x84], edi
lea eax, [ebx + 0x70]
jb 0x407778
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.Publisher
push edx
call esi
lea eax, [ebx + 0x8c]
push str.__unsetup
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404300
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4077b2
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x68]
push 1
push 0
push str.UninstallString
push eax
call esi
mov ecx, dword [ebx + 0xb8]
cmp dword [ebx + 0xbc], edi
lea eax, [ebx + 0xa8]
jb 0x4077df
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.URLInfoAbout
push edx
call esi
mov ecx, dword [ebx + 0xf0]
cmp dword [ebx + 0xf4], edi
lea eax, [ebx + 0xe0]
jb 0x407808
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.ChannelName
push edx
call esi
mov edx, dword [ebp - 0x68]
xor eax, eax
cmp dword [ebx + 0xfc], eax
push 4
lea ecx, [ebp - 0x70]
push ecx
push 4
sete al
push 0
push str.DisableAutorun
push edx
mov dword [ebp - 0x70], eax
call esi
lea eax, [ebx + 0x8c]
push eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x5c
call fcn.004041a0
cmp eax, 0xffffffff
je 0x4078a5
push eax
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebx + 0x8c]
call fcn.00406370
mov eax, dword [ebp - 0x64]
mov edi, 8
cmp dword [ebp - 0x50], edi
jae 0x40787b
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x68]
push 1
push 0
push str.InstallLocation
push eax
call esi
cmp dword [ebp - 0x50], edi
jb 0x4078aa
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b6106
add esp, 4
jmp 0x4078aa
mov edi, 8
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x4078d5
add ebx, 0xc4
cmp dword [ebx + 0x14], edi
jb 0x4078c1
mov ebx, dword [ebx]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x68]
push edx
push ebx
push 1
push 0
push str.UpdateExeVersion
push eax
call esi
cmp dword [ebp - 0x34], edi
jb 0x4078e6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b6106
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], edi
jb 0x40790c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
test eax, eax
je 0x40792a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.004b6111
mov esp, ebp
pop ebp
ret