Function at 0x41ceb919
Capabilities:
Set registry value

Disassembly:
mov eax, 0x41cfa9a2
call fcn.41cf1a54
push ecx
mov eax, 0x211c
call fcn.41cf20c0
mov eax, dword [0x41d01320]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2118]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x212c], esi
mov dword [ebp - 0x2124], ebx
call fcn.41ceae1e
cmp eax, ebx
jl 0x41cebc70
lea eax, [ebp - 0x2124]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.41cebcc3
test eax, eax
pop ecx
pop ecx
jne 0x41ceb983
mov eax, 0x80020009
jmp 0x41cebc70
mov ecx, esi
call fcn.41ceadf5
lea eax, [ebp - 0x2118]
push eax
mov ecx, esi
call fcn.41ceae1e
cmp eax, ebx
jl 0x41cebc70
movzx eax, word [ebp - 0x2124]
sub eax, 8
je 0x41cebc23
sub eax, 9
je 0x41cebafe
dec eax
dec eax
je 0x41cebaa4
sub eax, 0x3ff5
jne 0x41cebc5c
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x118], ebx
add eax, eax
cmp eax, 0x100
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
jbe 0x41ceba04
push eax
lea ecx, [ebp - 0x118]
call fcn.41ceac94
jmp 0x41ceba14
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
jmp 0x41ceba14
mov esi, dword [ebp - 0x118]
cmp esi, ebx
je 0x41ceba7b
cmp word [ebp - 0x2118], 0
lea edi, [ebp - 0x2118]
je 0x41ceba60
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x41ceba53
cmp word [eax], 0x30
jne 0x41ceba53
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x41ceba5a
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x41ceba34
and word [esi], 0
push dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.41cebc89
mov esi, eax
xor ebx, ebx
jmp 0x41ceba7e
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x41cebc4f
lea ecx, [ebp - 0x118]
call fcn.41cebd87
jmp 0x41cebc4f
call dword [0x41d01088]
lea eax, [ebp - 0x211c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2118]
push eax
mov dword [ebp - 0x2120], ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x211c]
push 4
mov dword [ebp - 0x2128], eax
lea eax, [ebp - 0x2128]
push eax
mov eax, dword [ebp + 8]
push 4
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2120]
mov esi, eax
call fcn.41ce6335
jmp 0x41cebc4f
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x41cebb89
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x2120], edi
mov dword [ebp - 0x118], ebx
cmp edi, 0x100
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
jbe 0x41cebb4f
push edi
lea ecx, [ebp - 0x118]
call fcn.41ceac94
jmp 0x41cebb65
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
jmp 0x41cebb65
cmp dword [ebp - 0x118], ebx
mov dword [ebp - 4], 3
jne 0x41cebb93
lea eax, [ebp - 0x114]
test eax, eax
je 0x41cebb89
lea ecx, [ebp - 0x118]
call fcn.41cebd87
mov eax, 0x80004005
jmp 0x41cebc70
push edi
push ebx
push dword [ebp - 0x118]
call fcn.41cf0a70
add esp, 0xc
cmp dword [ebp - 0x211c], ebx
jle 0x41cebbe9
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov ax, word [ebp + ebx*2 - 0x2118]
sar esi, 1
add esi, dword [ebp - 0x118]
push eax
call fcn.41cebd55
pop ecx
mov ecx, ebx
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc ebx
cmp ebx, dword [ebp - 0x211c]
jl 0x41cebbab
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push dword [ebp - 0x118]
push 3
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x41cebc4f
lea ecx, [ebp - 0x118]
call fcn.41cebd87
jmp 0x41cebc4f
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2118]
push eax
mov eax, dword [ebp + 8]
push 1
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x41cebc5c
push esi
call fcn.41ceb7c5
pop ecx
jmp 0x41cebc70
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x212c]
call fcn.41ceae1e
cmp eax, ebx
jl 0x41cebc70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.41cf14de
pop edi
pop esi
pop ebx
leave
ret 0xc