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

Disassembly:
push 0x42c
mov eax, 0x1006abfd
call fcn.10043a69
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [ebp - 0x42c], 0
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov dword [ebp - 0x438], eax
jmp 0x10007e79
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x430], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x100079eb
test ebx, ebx
je 0x10007a9e
mov ecx, dword [ebp - 0x424]
push edi
call fcn.1000511c
mov esi, eax
test esi, esi
jl 0x10007ef0
cmp dword [ebp + 0x10], 0
je 0x10007a9e
and dword [ebp - 0x428], 0
push 0x5c
push edi
call fcn.10005095
test eax, eax
pop ecx
pop ecx
jne 0x10007e91
mov ecx, dword [ebp - 0x424]
push edi
call fcn.1000521f
test eax, eax
je 0x10007a53
mov eax, dword [ebp - 0x434]
push edi
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x428], eax
call fcn.100054d0
and dword [ebp - 0x428], 0
test ebx, ebx
je 0x10007a93
mov ecx, dword [ebp - 0x424]
push edi
call fcn.1000511c
mov esi, eax
test esi, esi
jl 0x10007ea3
mov ecx, dword [ebp - 0x424]
push edi
call fcn.10005283
lea ecx, [ebp - 0x428]
mov esi, eax
call fcn.100020a9
test esi, esi
jl 0x10007ef0
jmp 0x10007e3e
lea ecx, [ebp - 0x428]
call fcn.100020a9
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10007aca
mov ecx, dword [ebp - 0x424]
and dword [ebp - 0x430], eax
push edi
call fcn.1000511c
mov esi, eax
test esi, esi
jl 0x10007ef0
push 0x100706f4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10007bdb
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
call fcn.1000511c
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x10007ef0
mov ecx, dword [ebp - 0x424]
push edi
call fcn.1000511c
mov esi, eax
cmp esi, ebx
jl 0x10007ef0
cmp word [edi], 0x3d
jne 0x10007e9c
cmp dword [ebp + 0x10], ebx
je 0x10007b69
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x430], eax
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 4], 1
call fcn.10007639
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x430], ebx
lea ecx, [ebp - 0x430]
jl 0x10007eeb
mov byte [ebp - 4], bl
jmp 0x10007e39
cmp dword [ebp + 0x14], ebx
jne 0x10007bc6
cmp dword [ebp - 0x430], ebx
je 0x10007bc6
push 0x20006
push ebx
push dword [ebp - 0x434]
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x428], ebx
call fcn.100020c0
cmp eax, ebx
jne 0x10007eab
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x10007bbb
cmp eax, 2
jne 0x10007eab
lea ecx, [ebp - 0x428]
call fcn.100020a9
mov ecx, dword [ebp - 0x424]
push edi
call fcn.10005283
mov esi, eax
cmp esi, ebx
jmp 0x10007e83
push 0x5c
push edi
call fcn.10005095
test eax, eax
pop ecx
pop ecx
jne 0x10007e9c
cmp dword [ebp + 0x10], eax
je 0x10007c8c
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x434]
lea ecx, [ebp - 0x42c]
call fcn.100020c0
test eax, eax
je 0x10007c50
push 0x20019
push edi
push dword [ebp - 0x434]
lea ecx, [ebp - 0x42c]
call fcn.100020c0
test eax, eax
je 0x10007c50
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x434]
lea ecx, [ebp - 0x42c]
call fcn.10004d61
mov esi, eax
cmp esi, ebx
jne 0x10007eba
mov ecx, dword [ebp - 0x424]
push edi
call fcn.1000511c
mov esi, eax
test esi, esi
jl 0x10007ef0
cmp word [edi], 0x3d
jne 0x10007e3e
mov ecx, dword [ebp - 0x424]
push edi
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.10007639
mov esi, eax
jmp 0x10007a86
cmp dword [ebp + 0x14], 0
jne 0x10007cad
push 0x20019
push edi
push dword [ebp - 0x434]
lea ecx, [ebp - 0x42c]
call fcn.100020c0
mov ebx, eax
jmp 0x10007cb0
push 2
pop ebx
test ebx, ebx
je 0x10007cbb
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100421ff
push eax
call fcn.100011f7
mov ecx, dword [ebp - 0x424]
add esp, 0x14
push edi
call fcn.1000511c
mov esi, eax
test esi, esi
jl 0x10007ef0
mov ecx, dword [ebp - 0x424]
push edi
call fcn.10005283
mov esi, eax
test esi, esi
jl 0x10007ef0
cmp word [edi], 0x7b
jne 0x10007d53
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10007d53
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x424]
push 0
push dword [ebp - 0x42c]
push edi
call fcn.1000797e
mov esi, eax
test esi, esi
jge 0x10007d3d
cmp dword [ebp + 0x14], 0
je 0x10007ef0
mov ecx, dword [ebp - 0x424]
push edi
call fcn.1000511c
mov esi, eax
test esi, esi
jl 0x10007ef0
cmp ebx, 2
mov eax, dword [ebp - 0x438]
mov dword [ebp + 0x14], eax
je 0x10007e85
test ebx, ebx
je 0x10007d7f
test eax, eax
jne 0x10007e85
push ebx
call fcn.10004c64
pop ecx
mov esi, eax
jmp 0x10007ef0
test eax, eax
je 0x10007dd6
push dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x424]
call fcn.1000524e
test eax, eax
je 0x10007dd6
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
call fcn.1000521f
test eax, eax
je 0x10007e85
cmp dword [ebp - 0x430], 0
je 0x10007e85
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x42c]
call fcn.100054d0
jmp 0x10007e85
push dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x424]
call fcn.1000524e
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x428], eax
call fcn.100020a9
mov ebx, eax
test ebx, ebx
jne 0x10007ece
cmp dword [ebp - 0x430], eax
je 0x10007e85
cmp dword [ebp - 0x428], eax
jne 0x10007e85
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x430], ebx
test eax, eax
jne 0x10007edc
lea ecx, [ebp - 0x430]
call fcn.100020a9
cmp dword [ebp + 0x10], 0
je 0x10007e85
cmp word [edi], 0x7b
jne 0x10007e85
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10007e85
mov ecx, dword [ebp - 0x424]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x42c]
push edi
call fcn.1000797e
mov esi, eax
test esi, esi
jl 0x10007ef0
mov ecx, dword [ebp - 0x424]
push edi
call fcn.1000511c
mov esi, eax
test esi, esi
jl 0x10007ef0
cmp word [edi], 0x7d
jne 0x100079b8
jmp 0x10007ef0
lea ecx, [ebp - 0x428]
call fcn.100020a9
mov esi, 0x80020009
jmp 0x10007ef0
lea ecx, [ebp - 0x428]
jmp 0x10007eeb
push eax
call fcn.10004c64
pop ecx
lea ecx, [ebp - 0x428]
jmp 0x10007ee9
lea ecx, [ebp - 0x42c]
call fcn.100020a9
push esi
call fcn.10004c64
pop ecx
jmp 0x10007efd
lea ecx, [ebp - 0x42c]
call fcn.100020a9
push ebx
jmp 0x10007ec6
push eax
call fcn.10004c64
pop ecx
lea ecx, [ebp - 0x430]
mov esi, eax
call fcn.100020a9
lea ecx, [ebp - 0x42c]
call fcn.100020a9
mov eax, esi
call fcn.10043aec
ret 0x10