Function at 0x1022ffa
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 1]
mov ebx, ecx
push eax
mov dword [ebp - 0x14], ebx
call fcn.01022c09
xor esi, esi
cmp eax, esi
jl 0x102322f
cmp byte [ebp - 1], 0
jne 0x102302c
mov eax, 0x80070002
jmp 0x102322f
mov ax, word [ebp + 8]
cmp ax, si
push edi
jne 0x102304d
push dword [ebp + 0x18]
mov ecx, ebx
call fcn.01022ee3
cmp eax, esi
jl 0x102322e
jmp 0x1023225
cmp ax, 3
jne 0x1023085
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp + 0x18]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x1023225
jle 0x102322e
and eax, 0xffff
or eax, 0x80070000
jmp 0x102322e
cmp ax, 0xb
jne 0x102309d
cmp word [ebp + 0x10], si
mov edi, 0x1002df4
jne 0x10230af
mov edi, 0x1002de8
jmp 0x10230af
cmp ax, 8
jne 0x10230c9
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x10230af
mov edi, 0x1001eb0
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
pop ecx
push eax
xor eax, eax
cmp byte [ebp + 0x1c], al
push edi
setne al
inc eax
push eax
jmp 0x102305b
cmp ax, 0x2008
jne 0x10231c4
lea eax, [ebp - 0x10]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
cmp eax, esi
jl 0x102322e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jmp 0x102312b
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add esi, 4
test eax, eax
je 0x1023125
lea edi, [edi + eax + 1]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 8]
jle 0x1023112
add edi, edi
push edi
mov dword [ebp - 0x18], edi
call fcn.0101d0fa
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x1c], esi
jne 0x102314f
mov eax, 0x8007000e
jmp 0x102322e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jg 0x1023195
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
test ebx, ebx
je 0x1023184
mov eax, dword [edi]
test eax, eax
jne 0x1023176
mov eax, 0x1001eb0
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea esi, [esi + ebx*2 + 2]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
add edi, 4
cmp eax, dword [ebp - 8]
jle 0x102315d
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x18]
and word [esi], 0
push dword [ebp - 0x1c]
push 7
push 0
push dword [ebp + 0x18]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1023070
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
jmp 0x1023225
cmp ax, 0x2011
jne 0x1023229
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [ebp + 0x1c]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
cmp eax, esi
jl 0x102322e
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x18]
push 3
push esi
push dword [ebp + 0x18]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
jne 0x1023070
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
jmp 0x102322e
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x18