Function at 0x10022c2f
Capabilities:
Delete registry value

Disassembly:
push 0x30
mov eax, 0x1005867e
call fcn.10039bd1
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
xor edi, edi
inc edi
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call fcn.10001309
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.10001309
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.10001524
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp ecx, esi
je 0x10022c9e
call fcn.10001441
call fcn.1003b4c0
test eax, eax
je 0x10022d51
call fcn.1002eeb7
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x10022cdd
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x10022cc5
call fcn.10001441
lea ecx, [ebp - 0x30]
call fcn.10016b3c
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
mov eax, edi
call fcn.10039c70
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x10022cf1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10022cb9
lea eax, [ebp - 0x20]
push eax
mov edi, 0x20019
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x10022d33
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x10022d1e
call fcn.10001441
lea ecx, [ebp - 0x30]
call fcn.10016b3c
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
xor eax, eax
inc eax
jmp 0x10022cd7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
cmp eax, esi
je 0x10022d4a
mov eax, dword [eax]
jmp 0x10022d4c
xor eax, eax
push edi
push eax
push ecx
jmp 0x10022d69
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x10022d5c
mov eax, dword [eax]
jmp 0x10022d5e
xor eax, eax
push 0x2001f
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x30]
call fcn.1003b4c0
cmp eax, esi
je 0x10022db7
cmp dword [ebp - 0x14], esi
je 0x10022d91
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x10022d9d
call fcn.10001441
xor esi, esi
inc esi
lea ecx, [ebp - 0x30]
call fcn.10016b3c
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
mov eax, esi
jmp 0x10022cd7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Flags
push dword [ebp - 0x30]
call ebx
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x10022e79
cmp eax, 2
je 0x10022e79
push 0x10065008
lea ecx, [ebp - 0x18]
call fcn.10001309
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.10001309
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.10001524
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
cmp ecx, esi
je 0x10022e17
call fcn.10001441
push str._Flags
lea ecx, [ebp - 0x1c]
call fcn.10001309
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.10001524
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
cmp ecx, esi
je 0x10022e44
call fcn.10001441
mov edi, dword [ebp - 0x18]
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
mov dword [eax], edi
cmp edi, esi
je 0x10022e5d
lea eax, [edi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push dword [ebp - 0x24]
call fcn.10029002
pop ecx
pop ecx
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp edi, esi
je 0x10022e79
mov ecx, edi
call fcn.10001441
push str.Version
push dword [ebp - 0x30]
call ebx
mov ebx, eax
cmp ebx, esi
je 0x10022f2e
cmp ebx, 2
je 0x10022f2e
push str.cleanupSSVDisabledEntry_error
lea ecx, [ebp - 0x18]
call fcn.10001309
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.10001309
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.10001524
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
cmp ecx, esi
je 0x10022ed2
call fcn.10001441
push str._Version
lea ecx, [ebp - 0x1c]
call fcn.10001309
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.10001524
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
cmp ecx, esi
je 0x10022eff
call fcn.10001441
mov edi, dword [ebp - 0x18]
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
mov dword [eax], edi
cmp edi, esi
je 0x10022f18
lea eax, [edi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push ebx
call fcn.10029002
pop ecx
pop ecx
mov dword [ebp - 0x18], esi
cmp edi, esi
je 0x10022f2e
mov ecx, edi
call fcn.10001441
lea ecx, [ebp - 0x30]
call fcn.10016b3c
cmp dword [ebp - 0x14], esi
je 0x10022f52
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x10022f5e
call fcn.10001441
mov esi, dword [ebp - 0x18]
jmp 0x10022da0