Function at 0x6d5b2900
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 0x6d5b2953
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 0x6d5b295d
push 0x8007000e
call fcn.6d5ca1c9
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 0x6d5b2953
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 0x6d5b299a
cmp dword [esp + 0x40], ebp
je 0x6d5b299a
push 0x8007000e
call fcn.6d5ca1c9
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.6d594760
push edi
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5b29dd
mov eax, dword [esi]
cmp eax, ebp
je 0x6d5b29c4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x6d5b29d4
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.6d593600
test eax, eax
je 0x6d5b2a75
call fcn.6d595620
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, ebp
je 0x6d5b2a25
push ebx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x6d5b2a1e
lea edx, [esp + 0x20]
push edx
push 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x6d5b2a3b
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.6d592330
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 0x6d5b2a61
mov eax, dword [eax]
push 0x20019
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.6d593190
jmp 0x6d5b2a9d
push 0x20019
xor eax, eax
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.6d593190
jmp 0x6d5b2a9d
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x6d5b2a81
mov eax, dword [eax]
jmp 0x6d5b2a83
xor eax, eax
push 0x2001f
push eax
push SysReAllocString
lea ecx, [esp + 0x3c]
call fcn.6d593190
mov esi, dword [esp + 0x24]
mov ebx, ebp
cmp eax, ebp
je 0x6d5b2aed
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, ebp
je 0x6d5b2ac5
cmp esi, ebp
je 0x6d5b2ab8
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.6d592330
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x6d5b2ad9
push eax
call edi
cmp esi, ebp
je 0x6d5b2ae0
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 0x6d5b2b97
cmp esi, 2
je 0x6d5b2b97
push str.cleanupSSVDisabledEntry_error
lea ecx, [esp + 0x18]
call fcn.6d592e00
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.6d592e00
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x1c]
call fcn.6d592330
push str._Flags
lea ecx, [esp + 0x20]
call fcn.6d592e00
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x1c]
call fcn.6d592330
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
cmp eax, ebp
je 0x6d5b2b81
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push esi
call fcn.6d5ac540
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.6d592330
push str.Version
push edi
call ebx
mov esi, eax
cmp esi, ebp
je 0x6d5b2c37
cmp esi, 2
je 0x6d5b2c37
push str.cleanupSSVDisabledEntry_error
lea ecx, [esp + 0x18]
call fcn.6d592e00
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.6d592e00
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x1c]
call fcn.6d592330
push str._Version
lea ecx, [esp + 0x20]
call fcn.6d592e00
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x1c]
call fcn.6d592330
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
cmp eax, ebp
je 0x6d5b2c21
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push esi
call fcn.6d5ac540
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.6d592330
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebp
je 0x6d5b2c46
push edi
call esi
xor edi, edi
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x18], ebp
je 0x6d5b2c6e
cmp ebx, ebp
je 0x6d5b2c5d
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.6d592330
cmp edi, ebp
je 0x6d5b2c7e
push edi
call esi
cmp ebx, ebp
je 0x6d5b2c85
push ebx
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret