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

Disassembly:
push 0xffffffffffffffff
push 0x4360a6
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.004350b0
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x2248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x2260]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2274]
mov edi, dword [esp + 0x2270]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x227c]
mov dword [esp + 0x44], ecx
push edi
mov ecx, ebx
mov dword [esp + 0x226c], ebp
call fcn.0040b9b0
mov esi, eax
cmp esi, ebp
jl 0x40d2c6
cmp word [edi], 0x7d
je 0x40d2c4
jmp 0x40ccd5
mov ebx, dword [esp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x34], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x40cd06
test ebp, ebp
je 0x40ce13
push edi
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
xor esi, esi
cmp dword [esp + 0x2278], esi
je 0x40ce15
movzx ecx, word [edi]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov eax, edi
cmp cx, si
je 0x40cd5b
movzx ecx, cx
cmp cx, 0x5c
je 0x40cd53
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, si
jne 0x40cd3c
jmp 0x40cd5b
cmp eax, esi
jne 0x40d23a
push edi
mov ecx, ebx
call fcn.0040bb20
test eax, eax
je 0x40cd85
mov edx, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
call fcn.0040bd00
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
cmp ebp, esi
je 0x40ce0d
push edi
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d253
push edi
mov ecx, ebx
call fcn.0040bbb0
mov esi, eax
test esi, esi
jl 0x40d253
mov dword [esp + 0x28], 0
cmp word [edi], 0x7b
jne 0x40cdfe
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40cdfe
mov ecx, dword [esp + 0x2278]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.0040cc40
mov esi, eax
test esi, esi
jl 0x40d2b5
push edi
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
cmp word [edi], 0x7d
jne 0x40ccd1
jmp 0x40d2b5
mov dword [esp + 0x28], esi
jmp 0x40ce15
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ce3d
push edi
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
xor esi, esi
push 0x4397c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cf54
lea eax, [esp + 0x25c]
push eax
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
push edi
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
cmp word [edi], 0x3d
jne 0x40d243
xor ebp, ebp
cmp dword [esp + 0x2278], ebp
je 0x40cedd
mov ecx, dword [esp + 0x20]
push edi
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
push eax
mov ecx, ebx
mov byte [esp + 0x2274], 1
mov dword [esp + 0x48], ebp
call fcn.0040c910
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
jl 0x40d259
mov byte [esp + 0x2268], 0
mov dword [esp + 0x3c], ebp
jmp 0x40cdb9
cmp dword [esp + 0x227c], ebp
jne 0x40cf43
cmp dword [esp + 0x2c], ebp
je 0x40cf43
mov ecx, dword [esp + 0x20]
push 0x20006
push ebp
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.0040b590
cmp eax, ebp
jne 0x40d26d
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x25c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebp
je 0x40cf30
cmp eax, 2
jne 0x40d26d
cmp esi, ebp
je 0x40cf3f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
push edi
mov ecx, ebx
call fcn.0040bbb0
mov esi, eax
cmp esi, ebp
jmp 0x40cdf8
movzx ecx, word [edi]
mov eax, edi
cmp cx, si
je 0x40cf80
movzx ecx, cx
cmp cx, 0x5c
je 0x40cf78
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, si
jne 0x40cf61
jmp 0x40cf80
cmp eax, esi
jne 0x40d243
cmp dword [esp + 0x2278], esi
je 0x40d075
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push esi
push edi
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40cfcd
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40cfbd
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
cmp eax, esi
je 0x40d03b
mov eax, dword [esp + 0x20]
push 0x20019
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0040b590
test eax, eax
je 0x40d03b
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x50]
push ecx
xor ebp, ebp
lea edx, [esp + 0x20]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push edi
push eax
mov dword [esp + 0x40], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebp
jne 0x40d279
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebp
je 0x40d025
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, ebp
jne 0x40d279
push edi
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
cmp word [edi], 0x3d
jne 0x40cdb9
push edi
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.0040c910
mov esi, eax
test esi, esi
jl 0x40d2b5
jmp 0x40cdb9
cmp dword [esp + 0x227c], esi
jne 0x40d168
mov eax, dword [esp + 0x20]
push 0x20019
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0040b590
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, esi
je 0x40d0ab
mov dword [esp + 0x227c], 1
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x5c]
push 0x104
push ecx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
push eax
call fcn.00407f40
add esp, 0x14
push edi
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
push edi
mov ecx, ebx
call fcn.0040bbb0
mov esi, eax
test esi, esi
jl 0x40d2b5
cmp word [edi], 0x7b
jne 0x40d138
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40d138
mov ebp, dword [esp + 0x227c]
mov edx, dword [esp + 0x14]
push ebp
push 0
push edx
push edi
mov ecx, ebx
call fcn.0040cc40
mov esi, eax
test esi, esi
jge 0x40d122
test ebp, ebp
je 0x40d2b5
push edi
mov ecx, ebx
call fcn.0040b9b0
mov esi, eax
test esi, esi
jl 0x40d2b5
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x227c], eax
cmp ebp, 2
je 0x40cdfe
test ebp, ebp
je 0x40d179
test eax, eax
jne 0x40cdfe
push ebp
call fcn.0040b490
add esp, 4
mov esi, eax
jmp 0x40d2b5
mov dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x1c]
jmp 0x40d0a0
test eax, eax
je 0x40d1bf
mov eax, dword [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0040bb60
test eax, eax
je 0x40d1bf
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call fcn.0040bb20
test eax, eax
je 0x40cdfe
cmp dword [esp + 0x2c], 0
je 0x40cdfe
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x18]
call fcn.0040bd00
jmp 0x40cdfe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
push eax
call fcn.0040bb60
xor ebp, ebp
mov ebx, eax
cmp dword [esp + 0x14], ebp
je 0x40d1ec
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test ebp, ebp
jne 0x40d28d
cmp dword [esp + 0x2c], ebp
je 0x40cdfe
test ebx, ebx
jne 0x40cdfe
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
cmp eax, ecx
jne 0x40d2a1
lea ecx, [esp + 0x48]
call fcn.0040bce0
jmp 0x40cdfe
lea ecx, [esp + 0x24]
call fcn.0040bce0
lea ecx, [esp + 0x14]
call fcn.0040bce0
mov eax, 0x80020009
jmp 0x40d2c6
lea ecx, [esp + 0x24]
jmp 0x40d2b0
lea ecx, [esp + 0x38]
call fcn.0040bce0
lea ecx, [esp + 0x14]
call fcn.0040bce0
jmp 0x40d2c4
push eax
call fcn.0040b490
lea ecx, [esp + 0x34]
jmp 0x40d2ab
lea ecx, [esp + 0x14]
call fcn.0040bce0
push esi
call fcn.0040b490
add esp, 4
jmp 0x40d2c6
lea ecx, [esp + 0x14]
call fcn.0040bce0
push ebp
call fcn.0040b490
add esp, 4
jmp 0x40d2c6
push eax
call fcn.0040b490
lea ecx, [esp + 0x4c]
add esp, 4
mov esi, eax
call fcn.0040bce0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d2c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2248]
xor ecx, esp
call fcn.00434fc4
add esp, 0x2258
ret 0x10