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

Disassembly:
push 0x224
mov eax, 0x1200e913
call fcn.1200dbed
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov dword [ebp - 0x230], eax
jmp 0x12007f15
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiA]
push 0x120013cc
push edi
mov dword [ebp - 0x228], 1
call esi
mov ebx, eax
neg ebx
push 0x120013e0
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x12007a8a
test ebx, ebx
je 0x12007b3d
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f8b
cmp dword [ebp + 0x10], 0
je 0x12007b3d
and dword [ebp - 0x220], 0
push 0x5c
push edi
call fcn.12006556
test eax, eax
pop ecx
pop ecx
jne 0x12007f2c
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
test eax, eax
je 0x12007af2
mov eax, dword [ebp - 0x22c]
push edi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], eax
call fcn.12006556
and dword [ebp - 0x220], 0
test ebx, ebx
je 0x12007b32
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f3e
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.12005098
test esi, esi
jl 0x12007f8b
jmp 0x12007edb
lea ecx, [ebp - 0x220]
call fcn.12005098
push 0x120013d4
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x12007b69
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x228], eax
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f8b
push 0x120013ec
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x12007c79
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.12006556
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x12007f8b
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
cmp esi, ebx
jl 0x12007f8b
cmp byte [edi], 0x3d
jne 0x12007f37
cmp dword [ebp + 0x10], ebx
je 0x12007c07
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 1
call fcn.12006556
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x228], ebx
lea ecx, [ebp - 0x228]
jl 0x12007f86
mov byte [ebp - 4], bl
jmp 0x12007ed6
cmp dword [ebp + 0x14], ebx
jne 0x12007c64
cmp dword [ebp - 0x228], ebx
je 0x12007c64
push 0x20006
push ebx
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
call fcn.12006556
cmp eax, ebx
jne 0x12007f46
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x12007c59
cmp eax, 2
jne 0x12007f46
lea ecx, [ebp - 0x220]
call fcn.12005098
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
cmp esi, ebx
jmp 0x12007f1f
push 0x5c
push edi
call fcn.12006556
test eax, eax
pop ecx
pop ecx
jne 0x12007f37
cmp dword [ebp + 0x10], eax
je 0x12007d29
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
call fcn.12006556
test eax, eax
je 0x12007cee
push 0x20019
push edi
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
call fcn.12006556
test eax, eax
je 0x12007cee
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
call fcn.12006556
mov esi, eax
cmp esi, ebx
jne 0x12007f55
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f8b
cmp byte [edi], 0x3d
jne 0x12007edb
mov ecx, dword [ebp - 0x21c]
push edi
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.12006556
mov esi, eax
jmp 0x12007b25
cmp dword [ebp + 0x14], 0
jne 0x12007d4a
push 0x20019
push edi
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
call fcn.12006556
mov ebx, eax
jmp 0x12007d4d
push 2
pop ebx
test ebx, ebx
je 0x12007d58
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.msvcr80.dll_strncpy_s]
push eax
call fcn.12006556
mov ecx, dword [ebp - 0x21c]
add esp, 0x14
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f8b
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f8b
cmp byte [edi], 0x7b
jne 0x12007df0
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp eax, 1
jne 0x12007df0
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x21c]
push 0
push dword [ebp - 0x224]
push edi
call fcn.12007a1d
mov esi, eax
test esi, esi
jge 0x12007dda
cmp dword [ebp + 0x14], 0
je 0x12007f8b
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f8b
cmp ebx, 2
mov eax, dword [ebp - 0x230]
mov dword [ebp + 0x14], eax
je 0x12007f21
test ebx, ebx
je 0x12007e1c
test eax, eax
jne 0x12007f21
push ebx
call fcn.12006556
pop ecx
mov esi, eax
jmp 0x12007f8b
test eax, eax
je 0x12007e73
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
call fcn.12006556
test eax, eax
je 0x12007e73
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x114]
push eax
call fcn.12006556
test eax, eax
je 0x12007f21
cmp dword [ebp - 0x228], 0
je 0x12007f21
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x224]
call fcn.12006556
jmp 0x12007f21
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
call fcn.12006556
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], eax
call fcn.12005098
mov ebx, eax
test ebx, ebx
jne 0x12007f69
cmp dword [ebp - 0x228], eax
je 0x12007f21
cmp dword [ebp - 0x220], eax
jne 0x12007f21
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
and dword [ebp - 0x228], ebx
test eax, eax
jne 0x12007f77
lea ecx, [ebp - 0x228]
call fcn.12005098
cmp dword [ebp + 0x10], 0
je 0x12007f21
cmp byte [edi], 0x7b
jne 0x12007f21
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp eax, 1
jne 0x12007f21
mov ecx, dword [ebp - 0x21c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x224]
push edi
call fcn.12007a1d
mov esi, eax
test esi, esi
jl 0x12007f8b
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.12006556
mov esi, eax
test esi, esi
jl 0x12007f8b
cmp byte [edi], 0x7d
jne 0x12007a57
jmp 0x12007f8b
lea ecx, [ebp - 0x220]
call fcn.12005098
mov esi, 0x80020009
jmp 0x12007f8b
lea ecx, [ebp - 0x220]
jmp 0x12007f86
push eax
call fcn.12006556
pop ecx
lea ecx, [ebp - 0x220]
jmp 0x12007f84
lea ecx, [ebp - 0x224]
call fcn.12005098
push esi
call fcn.12006556
pop ecx
jmp 0x12007f98
lea ecx, [ebp - 0x224]
call fcn.12005098
push ebx
jmp 0x12007f61
push eax
call fcn.12006556
pop ecx
lea ecx, [ebp - 0x228]
mov esi, eax
call fcn.12005098
lea ecx, [ebp - 0x224]
call fcn.12005098
mov eax, esi
call fcn.1200dc70
ret 0x10