Function at 0x102fcf0
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.0102f8a7
xor esi, esi
cmp eax, esi
jl 0x102ff25
cmp byte [ebp - 1], 0
jne 0x102fd22
mov eax, 0x80070002
jmp 0x102ff25
mov ax, word [ebp + 8]
cmp ax, si
push edi
jne 0x102fd43
push dword [ebp + 0x18]
mov ecx, ebx
call fcn.0102fbd9
cmp eax, esi
jl 0x102ff24
jmp 0x102ff1b
cmp ax, 3
jne 0x102fd7b
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 0x102ff1b
jle 0x102ff24
and eax, 0xffff
or eax, 0x80070000
jmp 0x102ff24
cmp ax, 0xb
jne 0x102fd93
cmp word [ebp + 0x10], si
mov edi, 0x1003bbc
jne 0x102fda5
mov edi, 0x1003bb0
jmp 0x102fda5
cmp ax, 8
jne 0x102fdbf
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x102fda5
mov edi, 0x1003ac8
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 0x102fd51
cmp ax, 0x2008
jne 0x102feba
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 0x102ff24
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jmp 0x102fe21
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add esi, 4
test eax, eax
je 0x102fe1b
lea edi, [edi + eax + 1]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 8]
jle 0x102fe08
add edi, edi
push edi
mov dword [ebp - 0x18], edi
call fcn.0102aa1d
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x1c], esi
jne 0x102fe45
mov eax, 0x8007000e
jmp 0x102ff24
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jg 0x102fe8b
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
test ebx, ebx
je 0x102fe7a
mov eax, dword [edi]
test eax, eax
jne 0x102fe6c
mov eax, 0x1003ac8
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 0x102fe53
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 0x102fd66
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
jmp 0x102ff1b
cmp ax, 0x2011
jne 0x102ff1f
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 0x102ff24
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 0x102fd66
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
jmp 0x102ff24
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x18