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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433db7
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4431e0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x4431e0]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x460], ebx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp + 0x38], edx
call fcn.0040c8e0
mov esi, eax
cmp esi, ebx
jl 0x40d137
cmp word [edi], 0x7d
je 0x40cbf6
lea ecx, [ecx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x2c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
add ebx, 1
call esi
test eax, eax
je 0x40cae3
test ebx, ebx
je 0x40cc48
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c8e0
mov esi, eax
test esi, esi
jl 0x40cbf6
cmp dword [ebp + 0x10], 0
je 0x40cc48
mov dword [esp + 0x30], 0
mov byte [esp + 0x460], 1
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x40cb3e
movzx ecx, cx
cmp cx, 0x5c
je 0x40cb36
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x40cb1f
jmp 0x40cb3e
test eax, eax
jne 0x40d06e
mov esi, 0x43b40c
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cb76
add esi, 4
cmp esi, 0x43b43c
jl 0x40cb43
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x34]
call fcn.0040d850
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x40cc40
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.0040c8e0
mov esi, eax
test esi, esi
jl 0x40d09a
mov ecx, ebx
call fcn.0040d7a0
mov esi, eax
test esi, esi
jl 0x40d09a
mov byte [esp + 0x460], 0
cmp word [edi], 0x7b
jne 0x40cbec
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40cbec
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push 0
push edx
push eax
push edi
mov ecx, ebx
call fcn.0040ca30
mov esi, eax
test esi, esi
jl 0x40cbf6
mov eax, edi
mov ecx, ebx
call fcn.0040c8e0
mov esi, eax
test esi, esi
jl 0x40cbf6
cmp word [edi], 0x7d
jne 0x40cab0
xor ebx, ebx
mov dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x40cc18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, esi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0041f01a
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x460], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
jne 0x40cc6f
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x24], ebx
call fcn.0040c8e0
mov esi, eax
cmp esi, ebx
jl 0x40cbf6
push 0x43b1c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cd93
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x244]
call fcn.0040c8e0
mov esi, eax
cmp esi, ebx
jl 0x40cbf6
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c8e0
mov esi, eax
cmp esi, ebx
jl 0x40cbf6
cmp word [edi], 0x3d
jne 0x40d0a7
cmp dword [ebp + 0x10], ebx
je 0x40cd00
mov dword [esp + 0x28], ebx
mov byte [esp + 0x460], 2
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0040d1a0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], ebx
jl 0x40d115
jmp 0x40cba6
cmp dword [ebp + 0x14], ebx
jne 0x40cd7b
cmp dword [esp + 0x24], ebx
je 0x40cd7b
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x460], 3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebx
push ebx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40d0fa
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x244]
push ecx
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40cd5e
cmp eax, 2
jne 0x40d0cf
mov byte [esp + 0x460], 0
test ebx, ebx
je 0x40cd79
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
call fcn.0040d7a0
mov esi, eax
cmp esi, ebx
jl 0x40cbf8
jmp 0x40cbec
movzx ecx, word [edi]
cmp cx, bx
mov eax, edi
je 0x40cdbf
movzx ecx, cx
cmp cx, 0x5c
je 0x40cdb7
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x40cda0
jmp 0x40cdbf
cmp eax, ebx
jne 0x40d0a7
cmp dword [ebp + 0x10], ebx
je 0x40ce9d
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push edi
push eax
mov dword [esp + 0x2c], ebx
call esi
cmp eax, ebx
jne 0x40ce0a
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40cdfe
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x40ce5e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push edi
push eax
mov dword [esp + 0x2c], ebx
call esi
cmp eax, ebx
jne 0x40ce46
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40ce3a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x40ce5e
mov edx, dword [esp + 0x20]
push edx
mov edx, edi
lea esi, [esp + 0x18]
call fcn.0040d150
cmp eax, ebx
jne 0x40d10e
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c8e0
mov esi, eax
cmp esi, ebx
jl 0x40cbf8
cmp word [edi], 0x3d
jne 0x40cbae
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0040d1a0
mov esi, eax
cmp esi, ebx
jl 0x40cbf8
jmp 0x40cbae
cmp dword [ebp + 0x14], ebx
jne 0x40cfac
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edi
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40cee2
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40ceda
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40cef1
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x44]
push 0x104
push edx
call fcn.0042220e
push eax
call fcn.0040bfe0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.0040c8e0
mov esi, eax
cmp esi, ebx
jl 0x40cbf8
mov ecx, dword [esp + 0x1c]
call fcn.0040d7a0
mov esi, eax
cmp esi, ebx
jl 0x40cbf8
cmp word [edi], 0x7b
jne 0x40cf7e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40cf7e
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0040ca30
mov esi, eax
cmp esi, ebx
jge 0x40cf69
cmp dword [ebp + 0x14], ebx
je 0x40cbf8
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040c8e0
mov esi, eax
cmp esi, ebx
jl 0x40cbf8
mov ecx, dword [esp + 0x18]
cmp ecx, 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x40cbec
cmp ecx, ebx
je 0x40cfb9
cmp eax, ebx
jne 0x40cbec
mov eax, ecx
call fcn.0040da50
mov esi, eax
jmp 0x40cbf8
mov dword [esp + 0x18], 2
jmp 0x40ceea
cmp eax, ebx
je 0x40cff7
mov ecx, dword [esp + 0x14]
call fcn.0040d9f0
test eax, eax
je 0x40cff7
lea ebx, [esp + 0x3c]
call fcn.0040d810
test eax, eax
je 0x40cbec
cmp dword [esp + 0x24], 0
je 0x40cbec
mov edx, ebx
push edx
lea ecx, [esp + 0x18]
call fcn.0040d850
jmp 0x40cbec
mov ecx, dword [esp + 0x14]
call fcn.0040d9f0
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
je 0x40d021
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x40d132
cmp dword [esp + 0x24], ebx
je 0x40cbec
cmp dword [esp + 0x18], ebx
jne 0x40cbec
mov dword [esp + 0x34], ebx
mov byte [esp + 0x460], 4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
mov dword [esp + 0x34], ebx
jne 0x40d0fa
mov byte [esp + 0x460], 0
jmp 0x40cbec
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d090
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov eax, 0x80020009
jmp 0x40cc1a
mov byte [esp + 0x460], 0
jmp 0x40cbf6
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40d0c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, 0x80020009
jmp 0x40cc1a
call fcn.0040da50
mov esi, eax
mov byte [esp + 0x460], 0
test ebx, ebx
je 0x40cbf6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0
jmp 0x40cbf6
call fcn.0040da50
mov esi, eax
mov byte [esp + 0x460], 0
jmp 0x40cbf8
call fcn.0040da50
mov esi, eax
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40cc18
push eax
jmp 0x40cc0e
call fcn.0040da50
mov dword [esp + 0x460], 0xffffffff
jmp 0x40cc1a