Function at 0x4651ed
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4879f5
call fcn.0046cde8
push ecx
mov eax, 0x2114
call fcn.0046cee9
mov eax, dword [0x492bc0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2118]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x2124], esi
mov dword [ebp - 0x211c], edi
call fcn.00463184
cmp eax, edi
jl 0x4654db
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.00463025
test eax, eax
pop ecx
pop ecx
jne 0x465257
mov eax, 0x80020009
jmp 0x4654db
mov ecx, esi
call fcn.00463162
lea eax, [ebp - 0x2118]
push eax
mov ecx, esi
call fcn.00463184
cmp eax, edi
jl 0x4654db
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x4654a2
sub eax, 9
je 0x46539e
dec eax
dec eax
je 0x465359
sub eax, 0x3ff5
jne 0x4654c7
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x118], edi
add eax, eax
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00464205
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x465334
cmp word [ebp - 0x2118], 0
lea edi, [ebp - 0x2118]
je 0x46531b
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x46530e
cmp word [eax], 0x30
jne 0x46530e
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x465315
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x4652e9
and word [esi], 0
push dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00462f1b
mov esi, eax
jmp 0x465337
push 0xe
pop esi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x4654b8
lea ecx, [ebp - 0x118]
call fcn.00413171
jmp 0x4654b8
call dword [0x491038]
lea eax, [ebp - 0x211c]
push eax
push edi
push edi
lea eax, [ebp - 0x2118]
push eax
mov dword [ebp - 0x2120], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x211c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00462ed5
lea ecx, [ebp - 0x2120]
mov esi, eax
call fcn.0043d5b0
jmp 0x4654b8
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x46540c
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x2120], ebx
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], 3
push ebx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00464205
jmp 0x4653ed
mov edi, dword [ebp - 0x118]
test edi, edi
jne 0x465416
lea eax, [ebp - 0x114]
test eax, eax
je 0x46540c
lea ecx, [ebp - 0x118]
call fcn.00413171
mov eax, 0x80004005
jmp 0x4654db
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x211c], edi
jle 0x46546b
mov ecx, dword [ebp - 0x118]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x2118]
push eax
call fcn.004630b7
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x211c]
jl 0x465432
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x118]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x4654b8
lea ecx, [ebp - 0x118]
call fcn.00413171
jmp 0x4654b8
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x2118]
push eax
push dword [ebp + 0xc]
call fcn.00462eef
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4654c7
push esi
call fcn.00462d86
pop ecx
jmp 0x4654db
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2124]
call fcn.00463184
cmp eax, edi
jl 0x4654db
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0046cd1e
pop edi
pop esi
pop ebx
leave
ret 0xc