Function at 0x1022237
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1028058]
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 0x10224be
cmp dword [ebp + 8], ebx
jne 0x1022272
call fcn.010209bc
test eax, eax
jne 0x10224b8
push esi
push edi
push dword [ebp + 0x10]
mov byte [ebp - 0x20d], bl
push dword [ebp + 8]
call fcn.010212ab
cmp dword [ebp + 8], ebx
je 0x10222b3
push dword [ebp + 0xc]
call fcn.0102113c
push dword [ebp + 0xc]
mov esi, 0x1001d20
push 1
push ebx
mov edi, 0x1001c64
mov edx, esi
mov ecx, 0x80000002
call fcn.01020b1d
jmp 0x10223a1
lea eax, [ebp - 0x214]
push eax
push 3
push ebx
mov esi, 0x1001d20
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1022332
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.01020a10
test eax, eax
jne 0x1022326
lea eax, [ebp - 0x20c]
push eax
push 0x1001c64
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1022326
push ebx
push 0x1001420
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.01021d37
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.01021d37
push 1
push 1
lea eax, [ebp - 0x218]
push eax
push 4
mov dword [ebp - 0x218], edi
call fcn.01021d37
push edi
call fcn.01021d9f
push 0x1001f28
call fcn.010228a7
mov byte [ebp - 0x20d], 1
call fcn.01020aa4
test eax, eax
jne 0x1022480
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x102244c
cmp dword [ebp + 8], ebx
je 0x10223d0
call fcn.0102397d
test al, al
jne 0x1022465
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 0x1022465
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.01020a10
test eax, eax
jne 0x102243e
lea eax, [ebp - 0x20c]
push eax
push 0x1001c64
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x102243e
push ebx
push 0x1001420
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 0x1022465
cmp dword [ebp + 8], ebx
jne 0x1022465
push ebx
push ebx
push ebx
mov edi, 0x1001c64
mov edx, esi
mov ecx, 0x80000001
call fcn.01020b1d
push ebx
call fcn.01022126
push dword [ebp + 8]
push 0x1001d68
call fcn.01020d0e
push ebx
call fcn.01020a69
jmp 0x1022493
push 0x1002568
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
cmp byte [ebp - 0x20d], bl
je 0x10224ab
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
push 0x1001c48
call fcn.01020dd1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01023d2d
leave
ret 0xc