Function at 0x40c45c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2254
call fcn.0041b020
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x221c], 0
and dword [ebp - 0x2218], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x223c], eax
push edi
mov eax, ebx
mov dword [ebp - 0x2214], ecx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c914
cmp word [ebx], 0x7d
je 0x40c912
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x2228], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40c4ed
test esi, esi
je 0x40c5a7
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40c5a9
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2238], edi
mov dword [ebp - 0x2234], edi
call fcn.0040bcbb
pop ecx
test eax, eax
jne 0x40ca64
push ebx
call fcn.0040c134
test eax, eax
je 0x40c561
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2238]
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], edi
call fcn.0040c160
mov dword [ebp - 0x2238], edi
mov dword [ebp - 0x2234], edi
cmp esi, edi
je 0x40c59f
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
mov ecx, dword [ebp - 0x2214]
mov edi, ebx
call fcn.0040c0cf
mov edi, eax
test edi, edi
jl 0x40c8fd
and dword [ebp - 0x2234], 0
jmp 0x40ca05
mov dword [ebp - 0x2234], edi
jmp 0x40c5a9
xor edi, edi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c5d8
and dword [ebp - 0x2228], eax
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
xor edi, edi
push 0x43d708
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c709
mov ecx, dword [ebp - 0x2214]
lea eax, [ebp - 0x2210]
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
cmp word [ebx], 0x3d
jne 0x40ca82
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40c67b
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2214]
mov dword [ebp - 0x224c], eax
push ebx
lea eax, [ebp - 0x2210]
push eax
lea edx, [ebp - 0x224c]
mov dword [ebp - 0x2248], esi
call fcn.0040bddc
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
jl 0x40cad8
mov dword [ebp - 0x2248], esi
jmp 0x40ca05
cmp dword [ebp + 0x14], esi
jne 0x40c6f3
cmp dword [ebp - 0x2228], esi
je 0x40c6f3
push esi
push dword [ebp - 0x2220]
mov eax, 0x20006
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
call fcn.00403368
cmp eax, esi
jne 0x40ca8b
lea eax, [ebp - 0x2210]
push eax
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40c6d3
cmp eax, 2
jne 0x40ca8b
cmp dword [ebp - 0x2230], esi
je 0x40c6ed
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov ecx, dword [ebp - 0x2214]
mov edi, ebx
call fcn.0040c0cf
mov edi, eax
cmp edi, esi
jmp 0x40ca4f
push 0x5c
mov eax, ebx
call fcn.0040bcbb
pop ecx
test eax, eax
jne 0x40ca64
cmp dword [ebp + 0x10], edi
je 0x40c7fc
push ebx
push dword [ebp - 0x2220]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x221c]
call fcn.00403368
test eax, eax
je 0x40c7b8
push ebx
push dword [ebp - 0x2220]
lea eax, [esi - 6]
lea ecx, [ebp - 0x221c]
call fcn.00403368
test eax, eax
je 0x40c7b8
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2228]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x2220]
mov dword [ebp - 0x2228], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x40caaf
xor eax, eax
cmp dword [ebp - 0x221c], edi
je 0x40c79e
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2218], edi
cmp eax, edi
jne 0x40caaf
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
cmp word [ebx], 0x3d
jne 0x40ca05
mov ecx, dword [ebp - 0x2214]
push ebx
push 0
lea edx, [ebp - 0x221c]
call fcn.0040bddc
mov edi, eax
test edi, edi
jl 0x40c8fd
jmp 0x40ca05
cmp dword [ebp + 0x14], edi
jne 0x40c820
push ebx
push dword [ebp - 0x2220]
mov eax, 0x20019
lea ecx, [ebp - 0x221c]
call fcn.00403368
mov dword [ebp - 0x2224], eax
jmp 0x40c82a
mov dword [ebp - 0x2224], 2
cmp dword [ebp - 0x2224], edi
je 0x40c839
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00410bf9
push eax
call fcn.00401579
mov ecx, dword [ebp - 0x2214]
add esp, 0x14
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
mov ecx, dword [ebp - 0x2214]
mov edi, ebx
call fcn.0040c0cf
mov edi, eax
test edi, edi
jl 0x40c8fd
cmp word [ebx], 0x7b
jne 0x40c8c8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40c8c8
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2214]
push 0
push dword [ebp - 0x221c]
push ebx
call fcn.0040c45c
mov edi, eax
test edi, edi
jge 0x40c8b5
cmp dword [ebp + 0x14], 0
je 0x40c8fd
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
cmp dword [ebp - 0x2224], 2
mov eax, dword [ebp - 0x223c]
mov dword [ebp + 0x14], eax
je 0x40ca55
xor esi, esi
cmp dword [ebp - 0x2224], esi
je 0x40c925
cmp eax, esi
jne 0x40ca55
mov eax, dword [ebp - 0x2224]
call fcn.0040c317
mov edi, eax
cmp dword [ebp - 0x221c], 0
je 0x40c912
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f7ca
leave
ret 0x10
cmp eax, esi
je 0x40c970
push dword [ebp - 0x221c]
call fcn.0040c28b
test eax, eax
je 0x40c970
lea eax, [ebp - 0x210]
push eax
call fcn.0040c134
test eax, eax
je 0x40ca55
cmp dword [ebp - 0x2228], 0
je 0x40ca55
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x221c]
call fcn.0040c160
jmp 0x40ca55
push dword [ebp - 0x221c]
call fcn.0040c28b
mov dword [ebp - 0x2224], eax
xor eax, eax
cmp dword [ebp - 0x221c], esi
je 0x40c99d
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x221c], esi
mov dword [ebp - 0x2218], esi
cmp eax, esi
jne 0x40cad1
cmp dword [ebp - 0x2228], esi
je 0x40ca55
cmp dword [ebp - 0x2224], 0
jne 0x40ca55
mov eax, dword [ebp - 0x2220]
and dword [ebp - 0x2240], 0
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x2244]
call fcn.0040c2c0
and dword [ebp - 0x2244], 0
and dword [ebp - 0x2240], 0
test eax, eax
jne 0x40c8f6
and dword [ebp - 0x2240], eax
cmp dword [ebp + 0x10], 0
je 0x40ca55
cmp word [ebx], 0x7b
jne 0x40ca55
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40ca55
mov ecx, dword [ebp - 0x2214]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x221c]
push ebx
call fcn.0040c45c
mov edi, eax
test edi, edi
jl 0x40c8fd
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.0040c346
mov edi, eax
test edi, edi
jl 0x40c8fd
cmp word [ebx], 0x7d
jne 0x40c4ba
jmp 0x40c8fd
cmp dword [ebp - 0x221c], edi
je 0x40ca78
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40c914
cmp dword [ebp - 0x221c], 0
jmp 0x40ca6a
call fcn.0040c317
mov edi, eax
cmp dword [ebp - 0x2230], esi
je 0x40c8fd
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c8fd
call fcn.0040c317
mov esi, eax
cmp dword [ebp - 0x221c], edi
je 0x40caca
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40c914
call fcn.0040c317
mov edi, eax
cmp dword [ebp - 0x221c], esi
jmp 0x40c904