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

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x7c133774]
and dword [ebp - 0x70], 0
push esi
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a4], eax
mov eax, dword [ebp + 0x3bc]
push edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], eax
call fcn.7c122326
mov esi, eax
test esi, esi
jge 0x7c122735
lea ecx, [ebp - 0x70]
call fcn.7c122ccf
mov eax, esi
jmp 0x7c122c45
push ebx
jmp 0x7c12287d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x78], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x7c12276b
test ebx, ebx
je 0x7c1228a1
mov ecx, dword [ebp - 0x74]
push edi
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
cmp dword [ebp + 0x3b8], 0
je 0x7c1228a1
and dword [ebp + 0x3b0], 0
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
jmp 0x7c1227ab
cmp cx, 0x5c
je 0x7c1227b2
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x7c12279b
jmp 0x7c1227ba
test eax, eax
jne 0x7c122c5c
mov esi, 0x7c12e13c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7c1227f6
add esi, 4
cmp esi, str.TypeLib
jl 0x7c1227bf
mov eax, dword [ebp + 0x3b4]
push edi
lea ecx, [ebp + 0x3b0]
mov dword [ebp + 0x3b0], eax
call fcn.7c122db1
and dword [ebp + 0x3b0], 0
test ebx, ebx
je 0x7c12288c
mov ecx, dword [ebp - 0x74]
push edi
call fcn.7c122326
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x7c122c9c
mov ecx, dword [ebp - 0x74]
push edi
call fcn.7c122d50
mov esi, eax
cmp esi, ebx
jl 0x7c122c9c
cmp dword [ebp + 0x3b0], ebx
je 0x7c12283a
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0x7b
jne 0x7c12287d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x7c12287d
mov ecx, dword [ebp - 0x74]
push 0
push dword [ebp + 0x3b8]
push dword [ebp - 0x70]
push edi
call fcn.7c1226e9
mov esi, eax
test esi, esi
jl 0x7c122c33
mov ecx, dword [ebp - 0x74]
push edi
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
cmp word [edi], 0x7d
jne 0x7c12273b
jmp 0x7c122c33
cmp dword [ebp + 0x3b0], 0
je 0x7c1228a1
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7c1228c7
mov ecx, dword [ebp - 0x74]
and dword [ebp - 0x78], eax
push edi
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
push 0x7c12e2a4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7c1229c2
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
mov ecx, dword [ebp - 0x74]
push edi
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
cmp word [edi], 0x3d
jne 0x7c122c8d
xor ebx, ebx
cmp dword [ebp + 0x3b8], ebx
je 0x7c12294d
mov eax, dword [ebp + 0x3b4]
mov ecx, dword [ebp - 0x74]
mov dword [ebp + 0x3b0], eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x3b0]
push eax
call fcn.7c122e5c
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x3b0], ebx
jl 0x7c122cbb
jmp 0x7c12283a
cmp dword [ebp + 0x3bc], ebx
jne 0x7c1229b0
cmp dword [ebp - 0x78], ebx
je 0x7c1229b0
push 0x20006
push ebx
push dword [ebp + 0x3b4]
lea ecx, [ebp + 0x3b0]
mov dword [ebp + 0x3b0], ebx
call fcn.7c122ce6
cmp eax, ebx
jne 0x7c122c93
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x7c12299c
cmp eax, 2
jne 0x7c122c93
cmp dword [ebp + 0x3b0], ebx
je 0x7c1229b0
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x74]
push edi
call fcn.7c122d50
mov esi, eax
cmp esi, ebx
jmp 0x7c122877
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
xor esi, esi
jmp 0x7c1229dd
cmp cx, 0x5c
je 0x7c1229e4
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x7c1229cd
jmp 0x7c1229ec
cmp eax, esi
jne 0x7c122c78
cmp dword [ebp + 0x3b8], esi
je 0x7c122aa9
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0x3b4]
lea ecx, [ebp - 0x70]
call fcn.7c122ce6
test eax, eax
je 0x7c122a6e
push 0x20019
push edi
push dword [ebp + 0x3b4]
lea ecx, [ebp - 0x70]
call fcn.7c122ce6
test eax, eax
je 0x7c122a6e
lea eax, [ebp - 0x80]
push eax
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x3b4]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x7c122cb2
xor eax, eax
cmp dword [ebp - 0x70], ebx
je 0x7c122a60
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x70], ecx
jne 0x7c122cb2
mov ecx, dword [ebp - 0x74]
push edi
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
cmp word [edi], 0x3d
jne 0x7c12283a
mov ecx, dword [ebp - 0x74]
push edi
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.7c122e5c
mov esi, eax
test esi, esi
jl 0x7c122c33
jmp 0x7c12283a
cmp dword [ebp + 0x3bc], esi
jne 0x7c122acd
push 0x20019
push edi
push dword [ebp + 0x3b4]
lea ecx, [ebp - 0x70]
call fcn.7c122ce6
mov dword [ebp + 0x3b0], eax
jmp 0x7c122ad7
mov dword [ebp + 0x3b0], 2
cmp dword [ebp + 0x3b0], esi
je 0x7c122ae9
mov dword [ebp + 0x3bc], 1
push 0x104
push edi
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [ebp - 0x74]
push edi
mov ecx, ebx
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
push edi
mov ecx, ebx
call fcn.7c122d50
mov esi, eax
test esi, esi
jl 0x7c122c33
cmp word [edi], 0x7b
jne 0x7c122b61
push dword [ebp + 0x3bc]
mov ecx, ebx
push 0
push dword [ebp - 0x70]
push edi
call fcn.7c1226e9
mov esi, eax
test esi, esi
jge 0x7c122b4f
cmp dword [ebp + 0x3bc], 0
je 0x7c122c33
push edi
mov ecx, ebx
call fcn.7c122326
mov esi, eax
test esi, esi
jl 0x7c122c33
cmp dword [ebp + 0x3b0], 2
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x3bc], eax
je 0x7c12287d
xor ebx, ebx
cmp dword [ebp + 0x3b0], ebx
je 0x7c122b94
cmp eax, ebx
jne 0x7c12287d
push dword [ebp + 0x3b0]
jmp 0x7c122c2b
cmp dword [ebp - 0x7c], ebx
je 0x7c122bed
push dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
call fcn.7c122d1b
test eax, eax
je 0x7c122bed
mov ebx, 0x7c12e13c
push dword [ebx]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7c12287d
add ebx, 4
cmp ebx, str.TypeLib
jl 0x7c122bad
cmp dword [ebp - 0x78], 0
je 0x7c12287d
lea eax, [ebp + 0x19c]
push eax
lea ecx, [ebp - 0x70]
call fcn.7c122db1
jmp 0x7c12287d
cmp dword [ebp - 0x70], ebx
je 0x7c122c06
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [ebp - 0x70], ebx
jne 0x7c122cc3
cmp dword [ebp - 0x78], ebx
je 0x7c12287d
lea eax, [ebp + 0x19c]
push eax
push dword [ebp + 0x3b4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x7c12287d
push eax
call fcn.7c1216d8
pop ecx
mov esi, eax
cmp dword [ebp - 0x70], 0
je 0x7c122c42
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x3a4]
pop edi
pop esi
call fcn.7c12c444
add ebp, 0x3a8
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 0x3b0], esi
je 0x7c122c78
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x3b0], esi
cmp dword [ebp - 0x70], esi
je 0x7c122c86
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x7c122c44
cmp dword [ebp - 0x70], 0
jmp 0x7c122c7b
push eax
call fcn.7c1216d8
pop ecx
mov esi, eax
cmp dword [ebp + 0x3b0], ebx
je 0x7c122c33
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7c122c33
push eax
call fcn.7c1216d8
pop ecx
mov esi, eax
cmp dword [ebp - 0x70], ebx
jmp 0x7c122c37
push eax
call fcn.7c1216d8
pop ecx
jmp 0x7c122c44