Function at 0x4a8699
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0111
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1164
call fcn.004b9bb0
mov eax, dword [0x517930]
xor eax, esp
mov dword [esp + 0x1160], eax
push ebx
push esi
push edi
mov eax, dword [0x517930]
xor eax, esp
push eax
lea eax, [esp + 0x1178]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1180], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x60], ecx
mov ecx, eax
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c1f
cmp byte [edi], 0x7d
je 0x4a8c14
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a875b
test esi, esi
je 0x4a8805
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4a8807
mov dl, 0x5c
mov dword [esp + 0x30], esi
mov ecx, edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004a7a8a
test eax, eax
jne 0x4a8c0f
push edi
call fcn.004a8267
test eax, eax
je 0x4a87c7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.004a8354
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
cmp dword [esp + 0x1c], esi
je 0x4a87ff
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a8201
mov esi, eax
test esi, esi
js 0x4a8c14
and dword [esp + 0x34], 0
jmp 0x4a8b90
mov dword [esp + 0x34], esi
jmp 0x4a8807
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4a882f
mov ecx, dword [esp + 0x14]
push edi
mov dword [esp + 0x30], esi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
push 0x511310
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4a8956
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x16c]
push eax
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
cmp byte [edi], 0x3d
jne 0x4a8c0f
cmp dword [ebp + 0x10], 0
je 0x4a88dc
mov ecx, dword [esp + 0x14]
xor eax, eax
inc eax
mov byte [esp + 0x1180], al
mov eax, dword [esp + 0x18]
and dword [esp + 0x58], 0
and dword [esp + 0x5c], 0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x16c]
push edi
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004a7d52
xor ecx, ecx
mov esi, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
test esi, esi
js 0x4a8c14
mov byte [esp + 0x1180], cl
mov dword [esp + 0x58], ecx
jmp 0x4a8b90
cmp dword [ebp + 0x14], 0
jne 0x4a8947
cmp dword [esp + 0x2c], 0
je 0x4a8947
xor eax, eax
lea ecx, [esp + 0x3c]
push 0x20006
push eax
push dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.004a82f6
test eax, eax
jne 0x4a8be4
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x16c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4a8932
cmp eax, 2
jne 0x4a8be4
test esi, esi
je 0x4a8942
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x3c], 0
and dword [esp + 0x40], 0
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a8201
jmp 0x4a8bd0
mov dl, 0x5c
mov ecx, edi
call fcn.004a7a8a
test eax, eax
jne 0x4a8c0f
cmp dword [ebp + 0x10], eax
je 0x4a89eb
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push 0x2001f
push edi
push ebx
call fcn.004a82f6
test eax, eax
je 0x4a89ae
push 0x20019
push edi
push ebx
lea ecx, [esp + 0x2c]
call fcn.004a82f6
test eax, eax
je 0x4a89ae
sub esp, 0x14
lea ecx, [esp + 0x34]
push edi
push ebx
call fcn.004a7b25
test eax, eax
jne 0x4a8c00
mov ebx, dword [esp + 0x14]
mov ecx, ebx
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c09
cmp byte [edi], 0x3d
jne 0x4a89e2
push edi
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.004a7d52
mov esi, eax
test esi, esi
js 0x4a8c09
mov ebx, dword [esp + 0x20]
jmp 0x4a8b90
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4a8a0b
push 0x20019
push edi
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.004a82f6
mov ebx, dword [esp + 0x20]
jmp 0x4a8a0e
push 2
pop eax
push 1
test eax, eax
mov dword [esp + 0x20], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [esp + 0x68]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.004b730d
push eax
call fcn.004a81c9
mov ecx, dword [esp + 0x28]
add esp, 0x14
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a8201
mov esi, eax
test esi, esi
js 0x4a8c14
cmp byte [edi], 0x7b
jne 0x4a8aae
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8a6a
xor eax, eax
sub ecx, edx
inc eax
cmp ecx, eax
jne 0x4a8aae
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push ebx
push edi
call fcn.004a8699
mov esi, eax
test esi, esi
jns 0x4a8a9a
cmp dword [ebp + 0x14], 0
je 0x4a8c14
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x4a8bd6
test eax, eax
je 0x4a8adc
test ecx, ecx
jne 0x4a8bd6
mov ecx, eax
call fcn.004a857d
mov esi, eax
jmp 0x4a8c14
test ecx, ecx
je 0x4a8b1e
push ebx
call fcn.004a8460
test eax, eax
je 0x4a8b1e
lea eax, [esp + 0x64]
push eax
call fcn.004a8267
test eax, eax
je 0x4a8bd6
cmp dword [esp + 0x2c], 0
je 0x4a8bd6
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x24]
call fcn.004a8354
mov ebx, dword [esp + 0x20]
jmp 0x4a8bd6
push ebx
call fcn.004a8460
mov ecx, eax
xor eax, eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x4a8b41
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x20], ebx
and dword [esp + 0x24], 0
test eax, eax
jne 0x4a8ace
cmp dword [esp + 0x2c], eax
je 0x4a8bd6
test ecx, ecx
jne 0x4a8bd6
mov eax, dword [esp + 0x18]
and dword [esp + 0x4c], ecx
and dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x64]
push eax
call fcn.004a8505
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
test eax, eax
jne 0x4a8ace
mov dword [esp + 0x4c], ecx
cmp dword [ebp + 0x10], 0
je 0x4a8bd6
cmp byte [edi], 0x7b
jne 0x4a8bd6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8ba0
xor eax, eax
sub ecx, edx
inc eax
cmp ecx, eax
jne 0x4a8bd9
mov ecx, dword [esp + 0x14]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004a8699
mov esi, eax
test esi, esi
js 0x4a8c14
mov ecx, dword [esp + 0x14]
push edi
call fcn.004a858b
mov esi, eax
test esi, esi
js 0x4a8c14
xor eax, eax
inc eax
cmp byte [edi], 0x7d
jne 0x4a872a
jmp 0x4a8c14
mov ecx, eax
call fcn.004a857d
cmp dword [esp + 0x3c], 0
mov esi, eax
je 0x4a8c14
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a8c14
mov ecx, eax
call fcn.004a857d
mov esi, eax
mov ebx, dword [esp + 0x20]
jmp 0x4a8c14
mov esi, 0x80020009
test ebx, ebx
je 0x4a8c1f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x1178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1160]
xor ecx, esp
call fcn.004b5580
mov esp, ebp
pop ebp
ret 0x10