Function at 0x10005ee2
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x100081f3
call fcn.10007c20
sub esp, 0x218
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jmp 0x100062da
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x18], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x10005f3e
test ebx, ebx
je 0x10005fc4
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10003fcd
mov esi, eax
test esi, esi
jl 0x1000632d
cmp dword [ebp + 0x10], 0
je 0x10005fc4
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.10003f65
test eax, eax
pop ecx
pop ecx
jne 0x100062f1
mov ecx, dword [ebp - 0x10]
push edi
call fcn.100040b6
test eax, eax
je 0x10005f8d
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.10004cd8
and dword [ebp + 8], 0
test ebx, ebx
je 0x10005fbc
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10003fcd
mov esi, eax
test esi, esi
jl 0x10006325
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10004117
lea ecx, [ebp + 8]
mov esi, eax
call fcn.10003c87
jmp 0x1000615d
lea ecx, [ebp + 8]
call fcn.10003c87
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10005fea
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x18], eax
push edi
call fcn.10003fcd
mov esi, eax
test esi, esi
jl 0x1000632d
push 0x100093d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100060cd
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x224]
push eax
call fcn.10003fcd
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x1000632d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10003fcd
mov esi, eax
cmp esi, ebx
jl 0x1000632d
cmp byte [edi], 0x3d
jne 0x100062f9
cmp dword [ebp + 0x10], ebx
je 0x10006070
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.10005ba1
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
lea ecx, [ebp + 8]
jl 0x10006328
mov byte [ebp - 4], bl
jmp 0x100062a4
cmp dword [ebp + 0x14], ebx
jne 0x100060bb
cmp dword [ebp - 0x18], ebx
je 0x100060bb
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.10003cec
cmp eax, ebx
jne 0x1000631c
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x100060b3
cmp eax, 2
jne 0x1000631c
lea ecx, [ebp + 8]
call fcn.10003c87
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10004117
mov esi, eax
cmp esi, ebx
jmp 0x100062e4
push 0x5c
push edi
call fcn.10003f65
test eax, eax
pop ecx
pop ecx
jne 0x100062f9
cmp dword [ebp + 0x10], eax
je 0x1000616a
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.10003cec
test eax, eax
je 0x10006130
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.10003cec
test eax, eax
je 0x10006130
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.10003c9e
mov esi, eax
cmp esi, ebx
jne 0x10006300
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10003fcd
mov esi, eax
test esi, esi
jl 0x1000632d
cmp byte [edi], 0x3d
jne 0x100062a9
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.10005ba1
mov esi, eax
test esi, esi
jl 0x1000632d
jmp 0x100062a9
cmp dword [ebp + 0x14], 0
jne 0x10006185
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.10003cec
mov ebx, eax
jmp 0x10006188
push 2
pop ebx
test ebx, ebx
je 0x10006193
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10003fcd
mov esi, eax
test esi, esi
jl 0x1000632d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10004117
mov esi, eax
test esi, esi
jl 0x1000632d
cmp byte [edi], 0x7b
jne 0x10006205
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x14]
push edi
call fcn.10005ee2
mov esi, eax
test esi, esi
jge 0x100061f2
cmp dword [ebp + 0x14], 0
je 0x1000632d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10003fcd
mov esi, eax
test esi, esi
jl 0x1000632d
cmp ebx, 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], eax
je 0x100062e6
test ebx, ebx
je 0x1000622e
test eax, eax
jne 0x100062e6
push ebx
call fcn.10003c45
pop ecx
mov esi, eax
jmp 0x1000632d
test eax, eax
je 0x10006273
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.100040e2
test eax, eax
je 0x10006273
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x120]
push eax
call fcn.100040b6
test eax, eax
je 0x100062e6
cmp dword [ebp - 0x18], 0
je 0x100062e6
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14]
call fcn.10004cd8
jmp 0x100062e6
lea ecx, [ebp - 0x14]
call fcn.10003c87
mov ebx, eax
test ebx, ebx
jne 0x1000630b
cmp dword [ebp - 0x18], eax
je 0x100062e6
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], ebx
test eax, eax
jne 0x1000631c
lea ecx, [ebp + 8]
call fcn.10003c87
cmp dword [ebp + 0x10], 0
je 0x100062e6
cmp byte [edi], 0x7b
jne 0x100062e6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x100062e6
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.10005ee2
mov esi, eax
test esi, esi
jl 0x1000632d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10003fcd
mov esi, eax
test esi, esi
jl 0x1000632d
cmp byte [edi], 0x7d
jne 0x10005f0e
jmp 0x1000632d
lea ecx, [ebp + 8]
call fcn.10003c87
mov esi, 0x80020009
jmp 0x1000632d
lea ecx, [ebp - 0x14]
call fcn.10003c87
push esi
jmp 0x10006314
lea ecx, [ebp - 0x14]
call fcn.10003c87
push ebx
call fcn.10003c45
pop ecx
jmp 0x10006337
push eax
call fcn.10003c45
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.10003c87
lea ecx, [ebp - 0x14]
call fcn.10003c87
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10