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

Disassembly:
push 0xffffffffffffffff
push 0x4469a6
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.004367c0
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x1150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x1168]
mov dword fs:[0], eax
mov eax, dword [esp + 0x117c]
mov edi, dword [esp + 0x1178]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x1184]
mov eax, edi
mov dword [esp + 0x1170], ebx
mov dword [esp + 0x38], edx
call fcn.0040c880
mov esi, eax
cmp esi, ebx
jl 0x40cb89
cmp byte [edi], 0x7d
je 0x40cb87
jmp 0x40ca30
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x3c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
xor ebp, ebp
test eax, eax
je 0x40ca63
cmp ebx, ebp
je 0x40cbb7
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb78
cmp dword [esp + 0x1180], ebp
je 0x40cbb7
mov cl, byte [edi]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov eax, edi
test cl, cl
je 0x40cab8
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40caa0
cmp cl, 0x5c
je 0x40cab0
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40caa0
jmp 0x40cab8
cmp eax, ebp
jne 0x40d038
mov esi, 0x44e0a0
lea ecx, [ecx]
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40caf7
add esi, 4
cmp esi, 0x44e0d0
jl 0x40cac0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebp
call fcn.0040c690
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
cmp ebx, ebp
je 0x40cbb3
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40d054
mov ecx, ebx
call fcn.0040c590
mov esi, eax
cmp esi, ebp
jl 0x40d054
mov dword [esp + 0x30], ebp
cmp byte [edi], 0x7b
jne 0x40cb6d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40cb6d
mov eax, dword [esp + 0x1180]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
push ebp
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0040c9a0
mov esi, eax
cmp esi, ebp
jl 0x40cb78
mov eax, edi
mov ecx, ebx
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb76
cmp byte [edi], 0x7d
jne 0x40ca30
xor ebp, ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40cb87
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x1168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1150]
xor ecx, esp
call fcn.00430bec
add esp, 0x1160
ret 0x10
mov dword [esp + 0x30], ebp
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40cbdc
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x34], ebp
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb78
push 0x44e07c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40cd0d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x164]
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb78
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb78
cmp byte [edi], 0x3d
jne 0x40d041
cmp dword [esp + 0x1180], ebp
je 0x40cc80
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x164]
mov byte [esp + 0x1170], 1
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x50], ebp
call fcn.0040c0b0
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
jl 0x40d062
mov byte [esp + 0x1170], 0
mov dword [esp + 0x48], ebp
jmp 0x40cb2b
cmp dword [esp + 0x1184], ebp
jne 0x40ccf5
cmp dword [esp + 0x34], ebp
je 0x40ccf5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebp
push ebp
push eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40d079
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x164]
push ecx
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x40cce2
cmp eax, 2
jne 0x40d079
cmp esi, ebp
je 0x40ccf1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov ecx, dword [esp + 0x1c]
call fcn.0040c590
mov esi, eax
cmp esi, ebp
jl 0x40cb78
jmp 0x40cb6d
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x40cd38
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40cd20
cmp cl, 0x5c
je 0x40cd30
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40cd20
jmp 0x40cd38
cmp eax, ebp
jne 0x40d041
cmp dword [esp + 0x1180], ebp
je 0x40ce51
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebp
push edi
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40cd8b
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40cd75
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
cmp eax, ebp
je 0x40ce13
jmp 0x40cd8f
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push edi
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40cdc7
xor eax, eax
cmp ebx, ebp
je 0x40cdb7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
cmp eax, ebp
je 0x40ce13
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push edi
push esi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebp
jne 0x40d08e
xor eax, eax
cmp ebx, ebp
je 0x40cdfd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov esi, eax
mov dword [esp + 0x20], ecx
cmp eax, ebp
jne 0x40d08e
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb78
cmp byte [edi], 0x3d
jne 0x40cb2b
push ebp
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.0040c0b0
mov esi, eax
cmp esi, ebp
jl 0x40cb78
jmp 0x40cb2b
cmp dword [esp + 0x1184], ebp
jne 0x40cf72
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push edi
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40ce9a
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40ce8e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edx
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40ceaf
mov dword [esp + 0x1184], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.0043244d
push eax
call fcn.00401cd0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb78
mov ecx, dword [esp + 0x1c]
call fcn.0040c590
mov esi, eax
cmp esi, ebp
jl 0x40cb78
cmp byte [edi], 0x7b
jne 0x40cf42
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40cf42
mov ebx, dword [esp + 0x1184]
mov ecx, dword [esp + 0x20]
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0040c9a0
mov esi, eax
cmp esi, ebp
jge 0x40cf29
cmp ebx, ebp
je 0x40cb78
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c880
mov esi, eax
cmp esi, ebp
jl 0x40cb78
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1184], edx
cmp ebx, 2
je 0x40cb6d
xor ebp, ebp
cmp ebx, ebp
je 0x40cf83
cmp edx, ebp
jne 0x40cb6d
mov eax, ebx
call fcn.0040c870
mov esi, eax
jmp 0x40cb78
mov dword [esp + 0x18], 2
mov ebx, dword [esp + 0x18]
jmp 0x40cea4
mov ebx, dword [esp + 0x20]
cmp edx, ebp
je 0x40cfc3
mov ecx, ebx
call fcn.0040c7e0
test eax, eax
je 0x40cfc3
lea ebx, [esp + 0x5c]
call fcn.0040c600
test eax, eax
je 0x40cb6d
cmp dword [esp + 0x34], 0
je 0x40cb6d
mov eax, ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0040c690
jmp 0x40cb6d
mov ecx, ebx
call fcn.0040c7e0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], ebp
cmp ebx, ebp
je 0x40cfe5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
cmp dword [esp + 0x18], ebp
jne 0x40d0a3
cmp dword [esp + 0x34], ebp
je 0x40cb6d
cmp dword [esp + 0x4c], 0
jne 0x40cb6d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ebp, ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
cmp eax, ebp
jne 0x40d0ba
lea ecx, [esp + 0x50]
call fcn.0040c850
jmp 0x40cb6d
lea ecx, [esp + 0x2c]
call fcn.0040c850
lea ecx, [esp + 0x20]
call fcn.0040c850
mov eax, 0x80020009
jmp 0x40cb89
lea ecx, [esp + 0x2c]
call fcn.0040c850
jmp 0x40cb78
lea ecx, [esp + 0x44]
call fcn.0040c850
lea ecx, [esp + 0x20]
call fcn.0040c850
jmp 0x40cb87
call fcn.0040c870
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0040c850
jmp 0x40cb78
lea ecx, [esp + 0x20]
call fcn.0040c850
mov eax, esi
call fcn.0040c870
jmp 0x40cb89
lea ecx, [esp + 0x20]
call fcn.0040c850
mov eax, dword [esp + 0x18]
call fcn.0040c870
jmp 0x40cb89
call fcn.0040c870
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0040c850
jmp 0x40cb78