Function at 0x40c1e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426c27
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.004243d0
mov eax, dword [0x4361b0]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x4361b0]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2280], ebx
mov edx, dword [ebp + 0x14]
mov eax, esi
mov edi, ecx
mov dword [esp + 0x54], edx
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jge 0x40c272
mov dword [esp + 0x2280], 0xffffffff
jmp 0x40c979
cmp word [esi], 0x7d
je 0x40c959
lea esp, [esp]
push str.Delete
push esi
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb edi, edi
push str.ForceRemove
inc edi
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c2b5
cmp edi, ebx
je 0x40c3f4
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c959
cmp dword [ebp + 0x10], ebx
je 0x40c3f4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x2280], 1
movzx ecx, word [esi]
mov eax, esi
cmp cx, bx
je 0x40c310
cmp cx, 0x5c
je 0x40c308
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x40c2f1
jmp 0x40c310
cmp eax, ebx
jne 0x40c90a
mov edi, 0x42a4e4
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c354
add edi, 4
cmp edi, 0x42a514
jl 0x40c315
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0040bcd0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x24], ebx
je 0x40c3e9
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c935
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040bb50
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x40c947
mov byte [esp + 0x2280], al
mov dword [esp + 0x30], eax
xor ebx, ebx
cmp word [esi], 0x7b
jne 0x40c823
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40c823
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0040c1e0
mov edi, eax
cmp edi, ebx
jl 0x40c959
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c959
jmp 0x40c823
mov byte [esp + 0x2280], bl
mov dword [esp + 0x30], ebx
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c41d
mov edi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x20], ebx
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c959
push 0x42a0c4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c563
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x26c]
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c959
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c959
cmp word [esi], 0x3d
jne 0x40c91a
cmp dword [ebp + 0x10], ebx
je 0x40c4d1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x2280], 2
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], edx
push ecx
mov edx, esi
lea ecx, [esp + 0x274]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.0040b5e0
mov edi, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
cmp edi, ebx
jl 0x40c9a3
mov byte [esp + 0x2280], bl
mov dword [esp + 0x4c], ebx
jmp 0x40c397
cmp dword [ebp + 0x14], ebx
jne 0x40c547
cmp dword [esp + 0x20], ebx
je 0x40c547
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x2280], 3
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x58]
push edx
mov edx, 0x20006
xor eax, eax
call fcn.0040bc60
cmp eax, ebx
jne 0x40c9cb
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x26c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40c52d
cmp eax, 2
jne 0x40c9cb
mov byte [esp + 0x2280], bl
cmp edi, ebx
je 0x40c543
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040bb50
mov edi, eax
xor ebx, ebx
test edi, edi
js 0x40c959
jmp 0x40c823
movzx ecx, word [esi]
mov eax, esi
cmp cx, bx
je 0x40c58f
lea ecx, [ecx]
cmp cx, 0x5c
je 0x40c587
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x40c570
jmp 0x40c58f
cmp eax, ebx
jne 0x40c91a
cmp dword [ebp + 0x10], ebx
je 0x40c6d1
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x1c], ebx
je 0x40c5c2
mov ecx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x20]
push ecx
lea edi, [esp + 0x28]
mov ebx, 0x2001f
call fcn.0040bbf0
mov esi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x40c5d9
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push 0x2001f
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40c60a
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40c5f2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x40c690
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x1c], ebx
je 0x40c634
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x20]
push edx
lea edi, [esp + 0x28]
mov ebx, 0x20019
call fcn.0040bbf0
mov esi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x40c64b
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
push 0x20019
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40c678
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40c664
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x40c690
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.0040b3a0
cmp eax, ebx
jne 0x40c9e7
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c959
cmp word [esi], 0x3d
jne 0x40c397
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, esi
xor ecx, ecx
call fcn.0040b5e0
mov edi, eax
cmp edi, ebx
jl 0x40c959
jmp 0x40c397
cmp dword [ebp + 0x14], ebx
jne 0x40c780
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x1c], ebx
je 0x40c704
mov eax, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x20]
push eax
lea edi, [esp + 0x2c]
mov ebx, 0x20019
call fcn.0040bbf0
mov esi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x40c71b
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40c744
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40c734
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x40c753
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x6c]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x40c779.1
movzx eax, byte [eax + 0x40ca44]
jmp dword [eax*4 + 0x40ca34]
mov dword [esp + 0x24], 2
jmp 0x40c74c
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040c030
mov edi, eax
cmp edi, ebx
jl 0x40c959
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040bb50
mov edi, eax
test edi, edi
js 0x40c957
cmp word [esi], 0x7b
jne 0x40c800
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40c800
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push ecx
push 0
push edx
push esi
mov ecx, ebx
call fcn.0040c1e0
mov edi, eax
test edi, edi
jns 0x40c7ed
cmp dword [ebp + 0x14], 0
je 0x40c957
mov eax, esi
mov edi, ebx
call fcn.0040c030
mov edi, eax
test edi, edi
js 0x40c957
cmp dword [esp + 0x24], 2
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x14], eax
je 0x40c821
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40c832
cmp dword [esp + 0x54], 0
je 0x40ca04
xor ebx, ebx
cmp word [esi], 0x7d
jne 0x40c280
jmp 0x40c959
cmp dword [esp + 0x54], 0
mov ebx, dword [esp + 0x14]
je 0x40c86a
mov ecx, ebx
call fcn.0040bed0
test eax, eax
je 0x40c86a
lea ebx, [esp + 0x64]
call fcn.0040bbb0
test eax, eax
je 0x40c821
cmp dword [esp + 0x20], 0
je 0x40c821
mov ecx, ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bcd0
jmp 0x40c821
mov ecx, ebx
call fcn.0040bed0
mov dword [esp + 0x24], eax
xor eax, eax
test ebx, ebx
je 0x40c88a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test eax, eax
jne 0x40c9e7
cmp dword [esp + 0x20], eax
je 0x40c821
cmp dword [esp + 0x24], eax
jne 0x40c821
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x2280], 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea ebx, [esp + 0x64]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edx
call fcn.0040bf40
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
jne 0x40ca10
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x3c]
call fcn.0040bf20
mov esi, dword [esp + 0x38]
jmp 0x40c821
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x2c]
call fcn.0040bf20
mov dword [esp + 0x2280], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040bf20
mov eax, 0x80020009
jmp 0x40c97d
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x2c]
call fcn.0040bf20
jmp 0x40c959
mov byte [esp + 0x2280], al
lea esi, [esp + 0x2c]
call fcn.0040bf20
xor ebx, ebx
mov dword [esp + 0x2280], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c977
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.0042391e
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x48]
call fcn.0040bf20
mov dword [esp + 0x2280], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040bf20
mov eax, edi
jmp 0x40c97d
call fcn.0040bff0
mov edi, eax
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x58]
call fcn.0040bf20
jmp 0x40c959
call fcn.0040bff0
mov edi, eax
jmp 0x40c9b3
push 0x8007000e
call fcn.0040d7b0
push 0x80070057
call fcn.0040d7b0
call fcn.0040bff0
mov edi, eax
jmp 0x40c957
call fcn.0040bff0
mov edi, eax
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x3c]
jmp 0x40c952
push 0x80004005
call fcn.0040d7b0
lea ecx, [ecx]
mov al, bh
inc eax
add al, dh
leave
inc eax
add dl, bh
leave
inc eax
add byte [edi], ah
retf 0x40