Function at 0x466655
Capabilities:
Set registry value

Disassembly:
mov eax, 0x489617
call fcn.0046e3e3
push ecx
mov eax, 0x2114
call fcn.0046ead6
mov eax, dword [section..cdata]
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.00464638
cmp eax, edi
jl 0x466943
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.004644d9
test eax, eax
pop ecx
pop ecx
jne 0x4666bf
mov eax, 0x80020009
jmp 0x466943
mov ecx, esi
call fcn.00464616
lea eax, [ebp - 0x2118]
push eax
mov ecx, esi
call fcn.00464638
cmp eax, edi
jl 0x466943
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x46690a
sub eax, 9
je 0x466806
dec eax
dec eax
je 0x4667c1
sub eax, 0x3ff5
jne 0x46692f
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.00465679
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x46679c
cmp word [ebp - 0x2118], 0
lea edi, [ebp - 0x2118]
je 0x466783
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x466776
cmp word [eax], 0x30
jne 0x466776
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x46677d
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x466751
and word [esi], 0
push dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004643cf
mov esi, eax
jmp 0x46679f
push 0xe
pop esi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x466920
lea ecx, [ebp - 0x118]
call fcn.00414884
jmp 0x466920
call dword [0x493038]
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.00464389
lea ecx, [ebp - 0x2120]
mov esi, eax
call fcn.0043e5c3
jmp 0x466920
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x466874
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.00465679
jmp 0x466855
mov edi, dword [ebp - 0x118]
test edi, edi
jne 0x46687e
lea eax, [ebp - 0x114]
test eax, eax
je 0x466874
lea ecx, [ebp - 0x118]
call fcn.00414884
mov eax, 0x80004005
jmp 0x466943
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 0x4668d3
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.0046456b
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 0x46689a
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 0x466920
lea ecx, [ebp - 0x118]
call fcn.00414884
jmp 0x466920
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x2118]
push eax
push dword [ebp + 0xc]
call fcn.004643a3
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x46692f
push esi
call fcn.0046423d
pop ecx
jmp 0x466943
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2124]
call fcn.00464638
cmp eax, edi
jl 0x466943
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0046e295
pop edi
pop esi
pop ebx
leave
ret 0xc