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

Disassembly:
push ebp
lea ebp, [esp - 0x3b0]
sub esp, 0x430
mov eax, dword [0x7c133774]
and dword [ebp - 0x6c], 0
xor eax, ebp
mov dword [ebp + 0x3ac], eax
mov eax, dword [ebp + 0x3bc]
push esi
push edi
mov edi, dword [ebp + 0x3b8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3c4]
push edi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], eax
call fcn.7c122332
mov esi, eax
test esi, esi
jge 0x7c122757
lea ecx, [ebp - 0x6c]
call fcn.7c122c84
mov eax, esi
jmp 0x7c122c0d
push ebx
jmp 0x7c12288a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x74], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x7c12278d
test ebx, ebx
je 0x7c1228a8
mov ecx, dword [ebp - 0x70]
push edi
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
cmp dword [ebp + 0x3c0], 0
je 0x7c1228a8
and dword [ebp - 0x68], 0
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
jmp 0x7c1227ca
cmp cx, 0x5c
je 0x7c1227d1
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x7c1227ba
jmp 0x7c1227d9
test eax, eax
jne 0x7c122c26
mov esi, 0x7c12e14c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7c122809
add esi, 4
cmp esi, str.TypeLib
jl 0x7c1227de
mov eax, dword [ebp - 0x78]
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], eax
call fcn.7c122d6a
and dword [ebp - 0x68], 0
test ebx, ebx
je 0x7c122899
mov ecx, dword [ebp - 0x70]
push edi
call fcn.7c122332
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x7c122c5d
mov ecx, dword [ebp - 0x70]
push edi
call fcn.7c122d05
mov esi, eax
cmp esi, ebx
jl 0x7c122c5d
cmp dword [ebp - 0x68], ebx
je 0x7c122847
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0x7b
jne 0x7c12288a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x7c12288a
mov ecx, dword [ebp - 0x70]
push 0
push dword [ebp + 0x3c0]
push dword [ebp - 0x6c]
push edi
call fcn.7c122700
mov esi, eax
test esi, esi
jl 0x7c122bfb
mov ecx, dword [ebp - 0x70]
push edi
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
cmp word [edi], 0x7d
jne 0x7c12275d
jmp 0x7c122bfb
cmp dword [ebp - 0x68], 0
je 0x7c1228a8
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7c1228ce
mov ecx, dword [ebp - 0x70]
and dword [ebp - 0x74], eax
push edi
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
push 0x7c12e2b4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7c1229ab
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
mov ecx, dword [ebp - 0x70]
push edi
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
cmp word [edi], 0x3d
jne 0x7c122c4e
xor ebx, ebx
cmp dword [ebp + 0x3c0], ebx
je 0x7c122948
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.7c122e1a
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x74], ebx
jl 0x7c122c76
jmp 0x7c122847
cmp dword [ebp + 0x3c4], ebx
jne 0x7c122999
cmp dword [ebp - 0x74], ebx
je 0x7c122999
push 0x20006
push ebx
push dword [ebp - 0x78]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
call fcn.7c122c9b
cmp eax, ebx
jne 0x7c122c54
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x7c12298b
cmp eax, 2
jne 0x7c122c54
cmp dword [ebp - 0x68], ebx
je 0x7c122999
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x70]
push edi
call fcn.7c122d05
mov esi, eax
cmp esi, ebx
jmp 0x7c122884
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
xor esi, esi
jmp 0x7c1229c6
cmp cx, 0x5c
je 0x7c1229cd
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x7c1229b6
jmp 0x7c1229d5
cmp eax, esi
jne 0x7c122c39
cmp dword [ebp + 0x3c0], esi
je 0x7c122a89
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
call fcn.7c122c9b
test eax, eax
je 0x7c122a4e
push 0x20019
push edi
push dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
call fcn.7c122c9b
test eax, eax
je 0x7c122a4e
lea eax, [ebp - 0x80]
push eax
xor ebx, ebx
lea eax, [ebp - 0x74]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x78]
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x7c122c6d
xor eax, eax
cmp dword [ebp - 0x6c], ebx
je 0x7c122a40
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x6c], ecx
jne 0x7c122c6d
mov ecx, dword [ebp - 0x70]
push edi
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
cmp word [edi], 0x3d
jne 0x7c122847
mov ecx, dword [ebp - 0x70]
push edi
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.7c122e1a
mov esi, eax
test esi, esi
jl 0x7c122bfb
jmp 0x7c122847
cmp dword [ebp + 0x3c4], esi
jne 0x7c122aa7
push 0x20019
push edi
push dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
call fcn.7c122c9b
mov dword [ebp - 0x68], eax
jmp 0x7c122aae
mov dword [ebp - 0x68], 2
cmp dword [ebp - 0x68], esi
je 0x7c122abd
mov dword [ebp + 0x3c4], 1
push 0x104
push edi
lea eax, [ebp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [ebp - 0x70]
push edi
mov ecx, ebx
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
push edi
mov ecx, ebx
call fcn.7c122d05
mov esi, eax
test esi, esi
jl 0x7c122bfb
cmp word [edi], 0x7b
jne 0x7c122b35
push dword [ebp + 0x3c4]
mov ecx, ebx
push 0
push dword [ebp - 0x6c]
push edi
call fcn.7c122700
mov esi, eax
test esi, esi
jge 0x7c122b23
cmp dword [ebp + 0x3c4], 0
je 0x7c122bfb
push edi
mov ecx, ebx
call fcn.7c122332
mov esi, eax
test esi, esi
jl 0x7c122bfb
cmp dword [ebp - 0x68], 2
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x3c4], eax
je 0x7c12288a
xor ebx, ebx
cmp dword [ebp - 0x68], ebx
je 0x7c122b5f
cmp eax, ebx
jne 0x7c12288a
push dword [ebp - 0x68]
jmp 0x7c122bf3
cmp dword [ebp - 0x7c], ebx
je 0x7c122bb8
push dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
call fcn.7c122cd0
test eax, eax
je 0x7c122bb8
mov ebx, 0x7c12e14c
push dword [ebx]
lea eax, [ebp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7c12288a
add ebx, 4
cmp ebx, str.TypeLib
jl 0x7c122b78
cmp dword [ebp - 0x74], 0
je 0x7c12288a
lea eax, [ebp + 0x1a4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.7c122d6a
jmp 0x7c12288a
cmp dword [ebp - 0x6c], ebx
je 0x7c122bd1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [ebp - 0x6c], ebx
jne 0x7c122c7b
cmp dword [ebp - 0x74], ebx
je 0x7c12288a
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x7c12288a
push eax
call fcn.7c1216e0
pop ecx
mov esi, eax
cmp dword [ebp - 0x6c], 0
je 0x7c122c0a
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x3ac]
pop edi
xor ecx, ebp
pop esi
call fcn.7c12c83f
add ebp, 0x3b0
leave
ret 0x10
xor esi, esi
cmp dword [ebp - 0x68], esi
je 0x7c122c39
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x6c], esi
je 0x7c122c47
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x7c122c0c
cmp dword [ebp - 0x6c], 0
jmp 0x7c122c3c
push eax
call fcn.7c1216e0
pop ecx
mov esi, eax
cmp dword [ebp - 0x68], ebx
je 0x7c122bfb
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7c122bfb
push eax
call fcn.7c1216e0
pop ecx
mov esi, eax
cmp dword [ebp - 0x6c], ebx
jmp 0x7c122bff
push eax
call fcn.7c1216e0
pop ecx
jmp 0x7c122c0c