Function at 0x40c150
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425747
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.00422e90
mov eax, dword [0x4351b0]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x4351b0]
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.0040bfa0
mov edi, eax
cmp edi, ebx
jge 0x40c1e2
mov dword [esp + 0x2280], 0xffffffff
jmp 0x40c8e9
cmp word [esi], 0x7d
je 0x40c8c9
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 0x40c225
cmp edi, ebx
je 0x40c364
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
cmp dword [ebp + 0x10], ebx
je 0x40c364
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 0x40c280
cmp cx, 0x5c
je 0x40c278
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x40c261
jmp 0x40c280
cmp eax, ebx
jne 0x40c87a
mov edi, 0x42945c
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c2c4
add edi, 4
cmp edi, 0x42948c
jl 0x40c285
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.0040bc40
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x24], ebx
je 0x40c359
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8a5
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040bac0
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x40c8b7
mov byte [esp + 0x2280], al
mov dword [esp + 0x30], eax
xor ebx, ebx
cmp word [esi], 0x7b
jne 0x40c793
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40c793
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.0040c150
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
jmp 0x40c793
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 0x40c38d
mov edi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x20], ebx
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
push 0x429078
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c4d3
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x26c]
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
cmp word [esi], 0x3d
jne 0x40c88a
cmp dword [ebp + 0x10], ebx
je 0x40c441
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.0040b550
mov edi, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
cmp edi, ebx
jl 0x40c913
mov byte [esp + 0x2280], bl
mov dword [esp + 0x4c], ebx
jmp 0x40c307
cmp dword [ebp + 0x14], ebx
jne 0x40c4b7
cmp dword [esp + 0x20], ebx
je 0x40c4b7
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.0040bbd0
cmp eax, ebx
jne 0x40c93b
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x26c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40c49d
cmp eax, 2
jne 0x40c93b
mov byte [esp + 0x2280], bl
cmp edi, ebx
je 0x40c4b3
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.0040bac0
mov edi, eax
xor ebx, ebx
test edi, edi
js 0x40c8c9
jmp 0x40c793
movzx ecx, word [esi]
mov eax, esi
cmp cx, bx
je 0x40c4ff
lea ecx, [ecx]
cmp cx, 0x5c
je 0x40c4f7
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x40c4e0
jmp 0x40c4ff
cmp eax, ebx
jne 0x40c88a
cmp dword [ebp + 0x10], ebx
je 0x40c641
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x1c], ebx
je 0x40c532
mov ecx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x20]
push ecx
lea edi, [esp + 0x28]
mov ebx, 0x2001f
call fcn.0040bb60
mov esi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x40c549
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 0x40c57a
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40c562
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 0x40c600
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x1c], ebx
je 0x40c5a4
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x20]
push edx
lea edi, [esp + 0x28]
mov ebx, 0x20019
call fcn.0040bb60
mov esi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x40c5bb
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 0x40c5e8
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40c5d4
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 0x40c600
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.0040b340
cmp eax, ebx
jne 0x40c957
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
cmp word [esi], 0x3d
jne 0x40c307
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, esi
xor ecx, ecx
call fcn.0040b550
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
jmp 0x40c307
cmp dword [ebp + 0x14], ebx
jne 0x40c6f0
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x1c], ebx
je 0x40c674
mov eax, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x20]
push eax
lea edi, [esp + 0x2c]
mov ebx, 0x20019
call fcn.0040bb60
mov esi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x40c68b
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 0x40c6b4
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40c6a4
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 0x40c6c3
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.0x40c6e9.1
movzx eax, byte [eax + 0x40c9b4]
jmp dword [eax*4 + 0x40c9a4]
mov dword [esp + 0x24], 2
jmp 0x40c6bc
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040bfa0
mov edi, eax
cmp edi, ebx
jl 0x40c8c9
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040bac0
mov edi, eax
test edi, edi
js 0x40c8c7
cmp word [esi], 0x7b
jne 0x40c770
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40c770
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.0040c150
mov edi, eax
test edi, edi
jns 0x40c75d
cmp dword [ebp + 0x14], 0
je 0x40c8c7
mov eax, esi
mov edi, ebx
call fcn.0040bfa0
mov edi, eax
test edi, edi
js 0x40c8c7
cmp dword [esp + 0x24], 2
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x14], eax
je 0x40c791
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40c7a2
cmp dword [esp + 0x54], 0
je 0x40c974
xor ebx, ebx
cmp word [esi], 0x7d
jne 0x40c1f0
jmp 0x40c8c9
cmp dword [esp + 0x54], 0
mov ebx, dword [esp + 0x14]
je 0x40c7da
mov ecx, ebx
call fcn.0040be40
test eax, eax
je 0x40c7da
lea ebx, [esp + 0x64]
call fcn.0040bb20
test eax, eax
je 0x40c791
cmp dword [esp + 0x20], 0
je 0x40c791
mov ecx, ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bc40
jmp 0x40c791
mov ecx, ebx
call fcn.0040be40
mov dword [esp + 0x24], eax
xor eax, eax
test ebx, ebx
je 0x40c7fa
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test eax, eax
jne 0x40c957
cmp dword [esp + 0x20], eax
je 0x40c791
cmp dword [esp + 0x24], eax
jne 0x40c791
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.0040beb0
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
jne 0x40c980
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x3c]
call fcn.0040be90
mov esi, dword [esp + 0x38]
jmp 0x40c791
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x2c]
call fcn.0040be90
mov dword [esp + 0x2280], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040be90
mov eax, 0x80020009
jmp 0x40c8ed
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x2c]
call fcn.0040be90
jmp 0x40c8c9
mov byte [esp + 0x2280], al
lea esi, [esp + 0x2c]
call fcn.0040be90
xor ebx, ebx
mov dword [esp + 0x2280], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c8e7
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.004223ce
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x48]
call fcn.0040be90
mov dword [esp + 0x2280], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040be90
mov eax, edi
jmp 0x40c8ed
call fcn.0040bf60
mov edi, eax
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x58]
call fcn.0040be90
jmp 0x40c8c9
call fcn.0040bf60
mov edi, eax
jmp 0x40c923
push 0x8007000e
call fcn.0040d710
push 0x80070057
call fcn.0040d710
call fcn.0040bf60
mov edi, eax
jmp 0x40c8c7
call fcn.0040bf60
mov edi, eax
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x3c]
jmp 0x40c8c2
push 0x80004005
call fcn.0040d710
lea ecx, [ecx]
cli
mov byte [eax], 96
leave
inc eax
add byte [edx - 0x37], ch
inc eax
add byte [edi + 0x40c9], dl
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3