Function at 0x1021c11
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 0x1021e95
cmp dword [ebp + 8], ebx
jne 0x1021c4c
call fcn.0102068a
test eax, eax
jne 0x1021e8f
push esi
push edi
push dword [ebp + 8]
mov byte [ebp - 0x20d], bl
call fcn.01020ec6
cmp dword [ebp + 8], ebx
je 0x1021c8a
push dword [ebp + 0xc]
call fcn.01020dfc
push dword [ebp + 0xc]
mov esi, 0x1001c48
push 1
push ebx
mov edi, 0x1001bb4
mov edx, esi
mov ecx, SysStringLen
call fcn.010207e9
jmp 0x1021d78
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 0x1021d09
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.010206de
test eax, eax
jne 0x1021cfd
lea eax, [ebp - 0x20c]
push eax
push 0x1001bb4
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1021cfd
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.010217dd
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.010217dd
push 1
push 1
lea eax, [ebp - 0x218]
push eax
push 4
mov dword [ebp - 0x218], edi
call fcn.010217dd
push edi
call fcn.01021845
push 0x1001e50
call fcn.0102227b
mov byte [ebp - 0x20d], 1
call fcn.01020770
test eax, eax
jne 0x1021e57
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1021e23
cmp dword [ebp + 8], ebx
je 0x1021da7
call fcn.0102334c
test al, al
jne 0x1021e3c
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 0x1021e3c
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.010206de
test eax, eax
jne 0x1021e15
lea eax, [ebp - 0x20c]
push eax
push 0x1001bb4
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1021e15
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 0x1021e3c
cmp dword [ebp + 8], ebx
jne 0x1021e3c
push ebx
push ebx
push ebx
mov edi, 0x1001bb4
mov edx, esi
mov ecx, 0x80000001
call fcn.010207e9
push ebx
call fcn.01021b10
push dword [ebp + 8]
push 0x1001c90
call fcn.010209ec
push ebx
call fcn.01020735
jmp 0x1021e6a
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 0x1021e82
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
push 0x1001b98
call fcn.01020aaf
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010236f9
leave
ret 8