Function at 0x4065c0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c010
mov eax, dword fs:[0]
push eax
sub esp, 0x684
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x690], ecx
mov dword [ebp - 0x680], 0
xor eax, eax
mov word [ebp - 0x67c], ax
xor ecx, ecx
mov word [ebp - 0x67a], cx
xor edx, edx
mov dword [ebp - 0x678], edx
mov dword [ebp - 0x674], edx
xor eax, eax
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x664], eax
lea ecx, [ebp - 0x660]
call fcn.004044e0
lea ecx, [ebp - 0x648]
call fcn.004044e0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x630], ecx
lea edx, [ebp - 0x680]
push edx
call fcn.0040a1c0
add esp, 4
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.0040fb70
add esp, 0xc
push 0x423760
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x208
push 0
lea edx, [ebp - 0x628]
push edx
call fcn.0040fb70
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x680]
mov dword [ecx], edx
mov eax, dword [ebp - 0x67c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x678]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x674]
mov dword [ecx + 0xc], eax
call fcn.0040aff0
add esp, 0x14
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x684], 0
mov dword [ebp - 0x62c], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0040fb70
add esp, 0xc
lea ecx, [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x684]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40687a
lea ecx, [ebp - 0x660]
call fcn.004042c0
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4237cc
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push str.DisplayIcon
mov eax, dword [ebp - 0x684]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4067b4
jmp 0x40689e
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.UninstallString
mov ecx, dword [ebp - 0x684]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4067ec
jmp 0x40689e
push 0x42381c
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push str.DisplayName
mov eax, dword [ebp - 0x684]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406833
jmp 0x40689e
push 0x423850
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 1
push 0
push str.Publisher
mov edx, dword [ebp - 0x684]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40687a
jmp 0x40689e
mov dword [ebp - 0x688], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.00402ab0
mov eax, dword [ebp - 0x688]
jmp 0x4068ea
cmp dword [ebp - 0x684], 0
je 0x4068c8
mov eax, dword [ebp - 0x684]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x684]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x68c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.00402ab0
mov eax, dword [ebp - 0x68c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret