Function at 0x46c8b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be84f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x509334]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x38]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [eax + 0x60]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], ebx
jne 0x46c968
mov eax, str.NonNullSubKeyName
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c920
sub eax, edx
push eax
push str.NonNullSubKeyName
lea ecx, [ebp - 0x34]
call fcn.00406650
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 1
call fcn.00431ee0
push 0x4f0788
lea edx, [ebp - 0xe0]
push edx
mov dword [ebp - 0xe0], vtable.common::CRegistryException.0
call fcn.0049e394
push 0x46a700
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.004681a0
add esp, 0xc
push 1
push ebx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
mov byte [ebp - 0x18], 0x5c
call fcn.00412db0
mov ebx, eax
mov eax, dword [esi + 0x14]
dec eax
cmp ebx, eax
jne 0x46c9ff
mov eax, str.NoTrailingSlash
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c9b4
sub eax, edx
push eax
push str.NoTrailingSlash
lea ecx, [ebp - 0x34]
call fcn.00406650
push 0
push 0
push 0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
call fcn.00431ee0
push 0x4f0788
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - method.Grid::CPreauthenticationFailedException.virtual_0], vtable.common::CRegistryException.0
call fcn.0049e394
cmp ebx, 0xffffffff
je 0x46caf6
push ebx
push 0
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00405f50
lea edx, [ebp - 0x34]
lea ecx, [edi + 0x2c]
push edx
mov byte [ebp - 4], 4
mov dword [ebp + 8], ecx
call fcn.0046b650
cmp dword [eax], 0
je 0x46ca69
inc ebx
push ebx
mov ecx, esi
call fcn.00412cf0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00407a20
mov esi, eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.0046b650
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
jmp 0x46cac2
push 0x58
call fcn.0048edea
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov byte [ebp - 4], 6
je 0x46ca93
mov edx, dword [edi + 0x20]
push 1
lea ecx, [ebp - 0x34]
push ecx
push edx
mov ecx, eax
call fcn.0046b8a0
mov edi, eax
jmp 0x46ca95
xor edi, edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 4
call fcn.0046b650
inc ebx
push ebx
mov ecx, esi
mov dword [eax], edi
call fcn.00412cf0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00407a20
mov edx, dword [edi]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call dword [edx + 0x18]
lea ecx, [ebp - 0x5c]
call fcn.00426bf0
cmp dword [ebp - 0x1c], 0x10
jb 0x46cadf
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049db86
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
jmp 0x46cbe2
lea ebx, [edi + 0x2c]
push esi
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0046b650
cmp dword [eax], 0
je 0x46cb50
push esi
mov ecx, ebx
call fcn.0046b650
mov ecx, dword [eax]
mov al, byte [ecx + 0x54]
test al, al
jne 0x46cb5b
push esi
mov ecx, ebx
call fcn.0046b650
mov ecx, dword [eax]
call fcn.00468200
test al, al
jne 0x46cb5b
push esi
mov ecx, ebx
call fcn.0046b650
mov ecx, dword [eax]
test ecx, ecx
je 0x46cb42
mov edx, dword [ecx]
push 1
call dword [edx]
push esi
mov ecx, ebx
call fcn.0046b650
mov dword [eax], 0
cmp dword [esi + 0x18], 0x10
jb 0x46cb8e
mov esi, dword [esi + 4]
jmp 0x46cb91
push str.key_is_open_or_has_open_subkeys
lea ecx, [ebp - 0x5c]
call fcn.00407a20
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 9
call fcn.00413fa0
push 0x4f0788
lea ecx, [ebp - 0x1dc]
push ecx
call fcn.0049e394
add esi, 4
mov edx, dword [edi + 0x20]
push esi
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, eax
test esi, esi
je 0x46cbd4
push 0x4c505b
lea ecx, [ebp - 0x5c]
call fcn.00407a20
lea eax, [ebp - 0x5c]
push eax
push esi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xa
call fcn.00468320
push 0x4f964c
lea ecx, [ebp - 0x230]
push ecx
call fcn.0049e394
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 2
call dword [edx + 0x60]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], vtable.._AV__ObjScopeGuardImpl0_VCWin32Key_common__P812_AEXXZ__.0
call fcn.004672f0
lea ecx, [ebp - 0x40]
call fcn.004129c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.0049e993
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4