Function at 0x1001ff90
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov edi, 1
push 0xc
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x1001ffe3
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
call ebx
mov dword [esi], eax
cmp eax, ebp
jne 0x1001ffed
push 0x8007000e
call fcn.10030c90
push 0xc
mov dword [esp + 0x14], esi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x1001ffe3
mov eax, dword [esp + 0x40]
lea edi, [esi + 8]
push eax
mov dword [esi + 4], ebp
mov dword [edi], 1
call ebx
mov dword [esi], eax
cmp eax, ebp
jne 0x1002002a
cmp dword [esp + 0x40], ebp
je 0x1002002a
push 0x8007000e
call fcn.10030c90
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.10004760
push edi
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x1002006d
mov eax, dword [esi]
cmp eax, ebp
je 0x10020054
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x10020064
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
call fcn.10003600
test eax, eax
je 0x10020105
call fcn.10005470
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, ebp
je 0x100200b5
push ebx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x100200ae
lea edx, [esp + 0x20]
push edx
push 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x100200cb
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.10002330
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov esi, ecx
mov dword [esp + 0x24], esi
cmp eax, ebp
je 0x100200f1
mov eax, dword [eax]
push 0x20019
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.10003190
jmp 0x1002012d
push 0x20019
xor eax, eax
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.10003190
jmp 0x1002012d
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10020111
mov eax, dword [eax]
jmp 0x10020113
xor eax, eax
push 0x2001f
push eax
push SysReAllocStringLen
lea ecx, [esp + 0x3c]
call fcn.10003190
mov esi, dword [esp + 0x24]
mov ebx, ebp
cmp eax, ebp
je 0x1002017d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, ebp
je 0x10020155
cmp esi, ebp
je 0x10020148
push esi
call edi
mov dword [esp + 0x24], ebp
mov esi, ebp
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.10002330
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x10020169
push eax
call edi
cmp esi, ebp
je 0x10020170
push esi
call edi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x30]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Flags
push edi
call ebx
mov esi, eax
cmp esi, ebp
je 0x10020227
cmp esi, 2
je 0x10020227
push str.cleanupSSVDisabledEntry_error
lea ecx, [esp + 0x18]
call fcn.10002e00
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.10002e00
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.10004760
lea ecx, [esp + 0x1c]
call fcn.10002330
push str._Flags
lea ecx, [esp + 0x20]
call fcn.10002e00
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.10004760
lea ecx, [esp + 0x1c]
call fcn.10002330
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
cmp eax, ebp
je 0x10020211
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push esi
call fcn.10019c30
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.10002330
push str.Version
push edi
call ebx
mov esi, eax
cmp esi, ebp
je 0x100202c7
cmp esi, 2
je 0x100202c7
push str.cleanupSSVDisabledEntry_error
lea ecx, [esp + 0x18]
call fcn.10002e00
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.10002e00
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.10004760
lea ecx, [esp + 0x1c]
call fcn.10002330
push str._Version
lea ecx, [esp + 0x20]
call fcn.10002e00
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.10004760
lea ecx, [esp + 0x1c]
call fcn.10002330
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
cmp eax, ebp
je 0x100202b1
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push esi
call fcn.10019c30
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.10002330
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebp
je 0x100202d6
push edi
call esi
xor edi, edi
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x18], ebp
je 0x100202fe
cmp ebx, ebp
je 0x100202ed
push ebx
call esi
mov dword [esp + 0x24], ebp
mov ebx, ebp
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.10002330
cmp edi, ebp
je 0x1002030e
push edi
call esi
cmp ebx, ebp
je 0x10020315
push ebx
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret