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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c37d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
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 - 0x230], ecx
mov dword [ebp - 4], 0
push 0x423afc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004055a0
push 0
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0x20206
push 0
push 0
push 0
push 0x423b18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00405670
cmp dword [ebp - 0x234], 0
je 0x40882a
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x238]
jmp 0x4089df
mov dword [ebp - 0x22c], 0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040fb70
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0xc], edx
call fcn.0040aff0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
push 1
push 0
push 0x423b34
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4088ab
jmp 0x408998
lea eax, [ebp - 0x218]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x20]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0xc], eax
call fcn.0040aff0
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push 0x423b40
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40890c
jmp 0x408998
lea ecx, [ebp + 0x28]
call fcn.004097e0
shl eax, 1
push eax
lea ecx, [ebp + 0x28]
call fcn.004042c0
push eax
push 1
push 0
push 0x423b4c
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40893c
jmp 0x408998
lea ecx, [ebp + 0x40]
call fcn.004097e0
shl eax, 1
push eax
lea ecx, [ebp + 0x40]
call fcn.004042c0
push eax
push 1
push 0
push 0x423b68
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40896c
jmp 0x408998
push 4
lea eax, [ebp + 0x58]
push eax
push 4
push 0
push 0x423b84
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40898e
jmp 0x408998
mov dword [ebp - 0x22c], 1
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4089be
push 0x423b98
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x23c]
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 0x54