Function at 0x10218b2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 2
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1021b36
cmp dword [ebp + 8], ebx
jne 0x10218ed
call fcn.0102032b
test eax, eax
jne 0x1021b30
push esi
push edi
push dword [ebp + 8]
mov byte [ebp - 0x20d], bl
call fcn.01020b67
cmp dword [ebp + 8], ebx
je 0x102192b
push dword [ebp + 0xc]
call fcn.01020a9d
push dword [ebp + 0xc]
mov esi, 0x1001c48
push 1
push ebx
mov edi, 0x1001bb4
mov edx, esi
mov ecx, SysStringLen
call fcn.0102048a
jmp 0x1021a19
lea eax, [ebp - 0x214]
push eax
push 3
push ebx
mov esi, 0x1001c48
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10219aa
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x208
call fcn.0102037f
test eax, eax
jne 0x102199e
lea eax, [ebp - 0x20c]
push eax
push 0x1001bb4
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x102199e
push ebx
push 0x10013f0
push 1
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea eax, [ebp - 0x218]
push eax
push 2
mov dword [ebp - 0x218], 0x19
call fcn.0102147e
push 0x17
pop edi
push 1
push 2
lea eax, [ebp - 0x21c]
push eax
push 2
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], 6
call fcn.0102147e
push 1
push 1
lea eax, [ebp - 0x218]
push eax
push 4
mov dword [ebp - 0x218], edi
call fcn.0102147e
push edi
call fcn.010214e6
push 0x1001e50
call fcn.01021f1c
mov byte [ebp - 0x20d], 1
call fcn.01020411
test eax, eax
jne 0x1021af8
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1021ac4
cmp dword [ebp + 8], ebx
je 0x1021a48
call fcn.01022fed
test al, al
jne 0x1021add
lea eax, [ebp - 0x214]
push eax
push 3
push ebx
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1021add
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x208
call fcn.0102037f
test eax, eax
jne 0x1021ab6
lea eax, [ebp - 0x20c]
push eax
push 0x1001bb4
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1021ab6
push ebx
push 0x10013f0
push 1
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1021add
cmp dword [ebp + 8], ebx
jne 0x1021add
push ebx
push ebx
push ebx
mov edi, 0x1001bb4
mov edx, esi
mov ecx, 0x80000001
call fcn.0102048a
push ebx
call fcn.010217b1
push dword [ebp + 8]
push 0x1001c90
call fcn.0102068d
push ebx
call fcn.010203d6
jmp 0x1021b0b
push 0x1002460
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp - 0x20d], bl
pop edi
pop esi
je 0x1021b23
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
push 0x1001b98
call fcn.01020750
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 8