Function at 0x7c122e5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x211c
lea ebp, [esp - 0x6c]
call fcn.7c12ce40
mov eax, dword [0x7c133774]
push esi
mov dword [ebp + 0x68], eax
push edi
lea eax, [ebp - 0x209c]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20b0], esi
mov dword [ebp - 0x20a4], edi
call fcn.7c122326
cmp eax, edi
jl 0x7c12316c
lea eax, [ebp - 0x20a4]
push eax
lea eax, [ebp - 0x209c]
push eax
call fcn.7c1231b7
test eax, eax
pop ecx
pop ecx
jne 0x7c122ebc
mov eax, 0x80020009
jmp 0x7c12316c
mov ecx, esi
call fcn.7c1222fd
lea eax, [ebp - 0x209c]
push eax
mov ecx, esi
call fcn.7c122326
cmp eax, edi
jl 0x7c12316c
movzx eax, word [ebp - 0x20a4]
sub eax, 8
push ebx
je 0x7c12311e
sub eax, 9
je 0x7c123023
dec eax
dec eax
je 0x7c122fc9
sub eax, 0x3ff5
jne 0x7c123157
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
cmp eax, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x7c122f31
push eax
lea ecx, [ebp - 0x9c]
call fcn.7c122198
jmp 0x7c122f3d
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp - 0x9c]
cmp esi, edi
je 0x7c122fa4
cmp word [ebp - 0x209c], 0
lea edi, [ebp - 0x209c]
je 0x7c122f89
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x7c122f7c
cmp word [eax], 0x30
jne 0x7c122f7c
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x7c122f83
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x7c122f5d
and word [esi], 0
push dword [ebp - 0x9c]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.7c12317d
mov esi, eax
xor edi, edi
jmp 0x7c122fa7
push 0xe
pop esi
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x7c12314a
lea ecx, [ebp - 0x9c]
call fcn.7c12218f
jmp 0x7c12314a
call dword [0x7c132050]
lea eax, [ebp - 0x20a0]
push eax
push edi
push edi
lea eax, [ebp - 0x209c]
push eax
mov dword [ebp - 0x20a8], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x20a0]
push 4
mov dword [ebp - 0x20ac], eax
lea eax, [ebp - 0x20ac]
push eax
mov eax, dword [ebp + 0x74]
push 4
push edi
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x20a8]
mov esi, eax
call fcn.7c1217b2
jmp 0x7c12314a
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x20a0], eax
je 0x7c123044
mov eax, 0x80004005
jmp 0x7c12316b
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x7c123067
push ebx
lea ecx, [ebp - 0x9c]
call fcn.7c122198
jmp 0x7c123073
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], edi
jne 0x7c123092
lea eax, [ebp - 0x98]
test eax, eax
je 0x7c12303a
lea ecx, [ebp - 0x9c]
call fcn.7c12218f
jmp 0x7c12303a
push ebx
push edi
push dword [ebp - 0x9c]
call fcn.7c12c940
add esp, 0xc
cmp dword [ebp - 0x20a0], edi
jle 0x7c1230e8
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov ax, word [ebp + edi*2 - 0x209c]
sar esi, 1
add esi, dword [ebp - 0x9c]
push eax
call fcn.7c123249
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x20a0]
jl 0x7c1230aa
xor edi, edi
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x9c]
push 3
push edi
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x7c12314a
lea ecx, [ebp - 0x9c]
call fcn.7c12218f
jmp 0x7c12314a
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x209c]
push eax
mov eax, dword [ebp + 0x74]
push 1
push edi
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x7c123157
push esi
call fcn.7c1216d8
pop ecx
jmp 0x7c12316b
push dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x20b0]
call fcn.7c122326
cmp eax, edi
jl 0x7c12316b
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
call fcn.7c12c444
add ebp, 0x6c
leave
ret 0xc