Function at 0x6e916c80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
test byte [0x6e928c98], 8
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
jne 0x6e916e18
test bl, 0x10
jne 0x6e916e57
mov eax, ebx
mov ecx, 1
mov dword [esp + 0x14], ecx
and eax, 0x8000
mov edi, 0xffffffff
mov dword [esp + 8], edi
cmp eax, 1
mov dword [esp + 4], esi
sbb eax, eax
xor edx, edx
mov dword [esp + 0x18], edx
and eax, 0xd0026
mov dword [esp], 0xffffffff
add eax, 0x20019
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x6e916d10
xor esi, esi
test byte [0x6e928c98], 8
jne 0x6e916e8f
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x2000
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sym.crypt32.dll_CertOpenStore
sub esp, 0x14
test eax, eax
mov edi, eax
je 0x6e916cf6
mov dword [esp], 0x40
call sym.crypt32.dll_CryptMemAlloc
sub esp, 4
test eax, eax
mov esi, eax
je 0x6e916cf6
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x30], edx
mov dword [ebp + eax - 0x2c], edx
add eax, 8
cmp eax, 0x18
jb 0x6e916d5a
mov dword [esi], ebx
mov dword [esi + 4], edi
mov eax, dword [ebp - 0x34]
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [esi + 0x10]
mov dword [eax + 0x18], str..._wine_dlls_crypt32_regstore.c:_PWINE_REGSTOREINFO__cs
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], eax
mov edx, dword [esi + 4]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x30]
sub esp, 4
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov eax, dword [esi + 8]
call fcn.6e9161e0
lea eax, [ebp - 0x30]
mov dword [esi + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], 0xe
mov dword [ebp - 0x28], 0x6e928c60
call fcn.6e915000
mov edi, dword [ebp + 8]
test edi, edi
mov esi, eax
je 0x6e916cf8
test bl, 1
jne 0x6e916cf8
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.advapi32.dll_CryptReleaseContext
sub esp, 8
jmp 0x6e916cf8
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 8]
mov edx, 0x6e928c98
mov dword [esp + 0x14], ebx
mov dword [esp + 4], edx
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, 0x6e935152
mov dword [esp + 0xc], eax
mov eax, str.CRYPT_RegOpenStore
mov dword [esp + 8], eax
call fcn.6e915430
test bl, 0x10
je 0x6e916ca5
mov dword [esp], esi
mov eax, str.Certificates
mov dword [esp + 4], eax
call sub.advapi32.dll_RegDeleteTreeW
sub esp, 8
test eax, eax
je 0x6e916ec8
cmp eax, 0x103
je 0x6e916ec8
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
xor esi, esi
test byte [0x6e928c98], 8
je 0x6e916d05
mov eax, 0x6e9351cc
mov edx, str.CRYPT_RegOpenStore
mov dword [esp + 0x10], esi
mov ecx, 0x6e928c98
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
call fcn.6e915430
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov eax, str.CRLs
mov dword [esp + 4], eax
call sub.advapi32.dll_RegDeleteTreeW
sub esp, 8
test eax, eax
jne 0x6e916f10
mov dword [esp], esi
mov eax, str.CTLs
mov dword [esp + 4], eax
call sub.advapi32.dll_RegDeleteTreeW
sub esp, 8
cmp eax, 0x103
jne 0x6e916e76
xor eax, eax
jmp 0x6e916e76
cmp eax, 0x103
je 0x6e916ee0
jmp 0x6e916e76