Function at 0x1022f08
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.01022b17
xor esi, esi
cmp eax, esi
jl 0x102313d
cmp byte [ebp - 1], 0
jne 0x1022f3a
mov eax, 0x80070002
jmp 0x102313d
mov ax, word [ebp + 8]
cmp ax, si
push edi
jne 0x1022f5b
push dword [ebp + 0x18]
mov ecx, ebx
call fcn.01022df1
cmp eax, esi
jl 0x102313c
jmp 0x1023133
cmp ax, 3
jne 0x1022f93
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 0x1023133
jle 0x102313c
and eax, 0xffff
or eax, 0x80070000
jmp 0x102313c
cmp ax, 0xb
jne 0x1022fab
cmp word [ebp + 0x10], si
mov edi, 0x1002db4
jne 0x1022fbd
mov edi, 0x1002da8
jmp 0x1022fbd
cmp ax, 8
jne 0x1022fd7
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x1022fbd
mov edi, 0x1001ea8
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 0x1022f69
cmp ax, 0x2008
jne 0x10230d2
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 0x102313c
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jmp 0x1023039
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add esi, 4
test eax, eax
je 0x1023033
lea edi, [edi + eax + 1]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 8]
jle 0x1023020
add edi, edi
push edi
mov dword [ebp - 0x18], edi
call fcn.0101d067
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x1c], esi
jne 0x102305d
mov eax, 0x8007000e
jmp 0x102313c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jg 0x10230a3
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
test ebx, ebx
je 0x1023092
mov eax, dword [edi]
test eax, eax
jne 0x1023084
mov eax, 0x1001ea8
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 0x102306b
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 0x1022f7e
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
jmp 0x1023133
cmp ax, 0x2011
jne 0x1023137
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 0x102313c
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 0x1022f7e
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
jmp 0x102313c
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x18