Function at 0x46c4d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be7a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
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 0x46c588
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 0x46c540
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 1
push ebx
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov byte [ebp - 0x18], 0x5c
call fcn.00412db0
mov ebx, eax
mov eax, dword [esi + 0x14]
dec eax
cmp ebx, eax
jne 0x46c60b
mov eax, str.NoTrailingSlash
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c5c0
sub eax, edx
push eax
push str.NoTrailingSlash
lea ecx, [ebp - 0x34]
call fcn.00406650
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.00431ee0
push 0x4f0788
lea edx, [ebp - 0x150]
push edx
mov dword [ebp - method.Grid::CPreauthenticationFailedException.virtual_0], vtable.common::CRegistryException.0
call fcn.0049e394
push 0x46a700
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.004681a0
add esp, 0xc
cmp ebx, 0xffffffff
mov byte [ebp - 4], 3
je 0x46c718
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 0x46c68b
inc ebx
push ebx
mov ecx, esi
call fcn.00412cf0
push eax
lea ecx, [ebp - 0x70]
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 0x46c6e4
push 0x58
call fcn.0048edea
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov byte [ebp - 4], 6
je 0x46c6b5
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 0x46c6b7
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 - 0x70]
call fcn.00407a20
mov edx, dword [edi]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call dword [edx + 0x10]
lea ecx, [ebp - 0x70]
call fcn.00426bf0
cmp dword [ebp - 0x1c], 0x10
jb 0x46c701
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 0x46c7cc
lea ebx, [edi + 0x2c]
push esi
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0046b650
cmp dword [eax], 0
je 0x46c75f
push esi
mov ecx, ebx
call fcn.0046b650
mov ecx, dword [eax]
push 1
call fcn.00468620
push esi
mov ecx, ebx
call fcn.0046b650
mov ecx, dword [eax]
test ecx, ecx
je 0x46c751
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 0x46c76a
mov esi, dword [esi + 4]
jmp 0x46c76d
add esi, 4
mov eax, dword [edi + 0x20]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
je 0x46c7be
push 0x4c505b
lea ecx, [ebp - 0x70]
call fcn.00407a20
push 0
push esi
push 2
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 9
call fcn.00431ee0
push 0x4f964c
lea edx, [ebp - 0x1c0]
push edx
mov dword [ebp - method.common::CBlobException.virtual_0], vtable.common::CWin32RegistryException.0
call fcn.0049e394
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 3
call dword [eax + 0x60]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 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