Function at 0x461fe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402820
mov byte [ebp - 4], 4
lea edx, [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.00462620
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x46207b
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x462154
mov edx, str.DWORD
lea ecx, [ebp + 0x10]
call fcn.0045c510
test al, al
je 0x4620af
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0xffffffff
push 4
lea eax, [ebp - 0x20]
push eax
push 4
jmp 0x462141
mov edx, str.STRING
lea ecx, [ebp + 0x10]
call fcn.0045c510
test al, al
je 0x4620d4
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
jmp 0x462141
mov edx, str.MULTI_STRING
lea ecx, [ebp + 0x10]
call fcn.0045c510
test al, al
je 0x4620f9
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 7
jmp 0x462141
mov edx, str.EXPANDABLE_STRING
lea ecx, [ebp + 0x10]
call fcn.0045c510
test al, al
je 0x46211e
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 2
jmp 0x462141
mov edx, str.NONE
lea ecx, [ebp + 0x10]
call fcn.0045c510
test al, al
je 0x462154
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x14], esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462182
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 6
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4621a4
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4621c6
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4621ec
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret