Function at 0x45efa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465fd2
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x48e4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x214], 0x208
lea ecx, [ebp + 0xc]
call fcn.00402ce0
mov dword [ebp - 0x224], eax
lea ecx, [ebp + 0x10]
call fcn.00402ce0
mov dword [ebp - 0x228], eax
push 0x200
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.004325e0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x220]
add edx, 1
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x220]
mov cl, byte [eax]
mov byte [ebp - 0x219], cl
add dword [ebp - 0x220], 1
cmp byte [ebp - 0x219], 0
jne 0x45f02c
mov edx, dword [ebp - 0x220]
sub edx, dword [ebp - 0x240]
mov dword [ebp - 0x22c], edx
push 0x100
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x22c]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.HKEY_LOCAL_MACHINE
lea eax, [ebp + 8]
push eax
call fcn.00412620
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x45f186
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp - 0x224]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45f10b
mov dword [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00412540
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00412540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00412540
mov eax, dword [ebp - 0x234]
jmp 0x45f2c0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x45f179
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00412540
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00412540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00412540
mov eax, dword [ebp - 0x244]
jmp 0x45f2c0
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x47a2dc
lea edx, [ebp + 8]
push edx
call fcn.00412620
add esp, 8
movzx eax, al
test eax, eax
je 0x45f289
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0x224]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45f211
mov dword [ebp - 0x23c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00412540
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00412540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00412540
mov eax, dword [ebp - 0x23c]
jmp 0x45f2c0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x45f27c
mov dword [ebp - 0x230], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00412540
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00412540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00412540
mov eax, dword [ebp - 0x230]
jmp 0x45f2c0
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00412540
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00412540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00412540
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004270b0
mov esp, ebp
pop ebp
ret 0x10