Function at 0x40a167
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.00430920
mov eax, dword [0x44465c]
xor eax, esp
mov dword [esp + 0x2260], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0040987d
mov ebx, eax
cmp ebx, edi
jl 0x40a56a
cmp word [esi], 0x7d
je 0x40a568
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push esi
mov dword [esp + 0x30], 1
call ebx
neg eax
push str.ForceRemove
sbb edi, edi
push esi
inc edi
call ebx
test eax, eax
je 0x40a1f5
test edi, edi
je 0x40a2a1
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0040987d
mov ebx, eax
test ebx, ebx
js 0x40a557
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40a2a3
push 0x5c
mov eax, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00409831
pop ecx
test eax, eax
jne 0x40a697
push esi
call fcn.00409cdd
test eax, eax
je 0x40a263
mov eax, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004091f0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp edi, ebx
je 0x40a29b
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0040987d
mov ebx, eax
test ebx, ebx
js 0x40a557
mov ecx, dword [esp + 0x10]
mov edi, esi
call fcn.00409d3e
mov ebx, eax
test ebx, ebx
js 0x40a557
and dword [esp + 0x40], 0
jmp 0x40a63e
mov dword [esp + 0x40], ebx
jmp 0x40a2a3
xor ebx, ebx
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a2ce
and dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0040987d
mov ebx, eax
test ebx, ebx
js 0x40a557
xor ebx, ebx
push 0x43dfd4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a3e0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x268]
call fcn.0040987d
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x40a557
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0040987d
mov ebx, eax
cmp ebx, edi
jl 0x40a557
cmp word [esi], 0x3d
jne 0x40a6b1
cmp dword [ebp + 0x10], edi
je 0x40a367
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
push esi
lea eax, [esp + 0x26c]
push eax
lea edx, [esp + 0x50]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.004099a3
mov ebx, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
cmp ebx, edi
jl 0x40a6b7
mov dword [esp + 0x4c], edi
jmp 0x40a63e
cmp dword [ebp + 0x14], edi
jne 0x40a3d0
cmp dword [esp + 0x28], edi
je 0x40a3d0
push edi
push dword [esp + 0x24]
mov eax, 0x20006
lea ebx, [esp + 0x34]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.0040919e
cmp eax, edi
jne 0x40a6c0
lea eax, [esp + 0x268]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x40a3b8
cmp eax, 2
jne 0x40a6c0
cmp dword [esp + 0x2c], edi
je 0x40a3cc
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov edi, esi
call fcn.00409d3e
jmp 0x40a67e
push 0x5c
mov eax, esi
call fcn.00409831
pop ecx
test eax, eax
jne 0x40a697
cmp dword [ebp + 0x10], ebx
je 0x40a473
push esi
push dword [esp + 0x24]
mov eax, 0x2001f
lea ebx, [esp + 0x1c]
call fcn.0040919e
test eax, eax
je 0x40a435
push esi
push dword [esp + 0x24]
mov eax, 0x20019
call fcn.0040919e
test eax, eax
je 0x40a435
push esi
push dword [esp + 0x24]
mov eax, ebx
call fcn.00409147
test eax, eax
jne 0x40a6e0
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0040987d
mov ebx, eax
test ebx, ebx
js 0x40a557
cmp word [esi], 0x3d
jne 0x40a63e
mov ecx, dword [esp + 0x10]
push esi
push 0
lea edx, [esp + 0x1c]
call fcn.004099a3
mov ebx, eax
test ebx, ebx
js 0x40a557
jmp 0x40a63e
cmp dword [ebp + 0x14], ebx
jne 0x40a491
push esi
push dword [esp + 0x24]
mov eax, 0x20019
lea ebx, [esp + 0x1c]
call fcn.0040919e
mov dword [esp + 0x24], eax
jmp 0x40a499
mov dword [esp + 0x24], 2
cmp dword [esp + 0x24], 0
je 0x40a4a7
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x68]
push 0x104
push eax
call fcn.004242f6
push eax
call fcn.00408a17
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, esi
call fcn.0040987d
mov ebx, eax
test ebx, ebx
js 0x40a557
mov ecx, dword [esp + 0x10]
mov edi, esi
call fcn.00409d3e
mov ebx, eax
test ebx, ebx
js 0x40a557
cmp word [esi], 0x7b
jne 0x40a52a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a52a
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
push esi
call fcn.0040a167
mov ebx, eax
test ebx, ebx
jns 0x40a519
cmp dword [ebp + 0x14], 0
je 0x40a557
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0040987d
mov ebx, eax
test ebx, ebx
js 0x40a557
cmp dword [esp + 0x24], 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x40a688
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
je 0x40a581
cmp dword [esp + 0x38], edi
jne 0x40a688
call fcn.00408aa9
mov ebx, eax
cmp dword [esp + 0x14], 0
je 0x40a568
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x226c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042396b
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x38], edi
je 0x40a5c3
push dword [esp + 0x14]
call fcn.00409d09
test eax, eax
je 0x40a5c3
lea eax, [esp + 0x60]
push eax
call fcn.00409cdd
test eax, eax
je 0x40a688
cmp dword [esp + 0x28], edi
je 0x40a688
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x18]
call fcn.004091f0
jmp 0x40a688
push dword [esp + 0x14]
call fcn.00409d09
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esp + 0x14], edi
je 0x40a5e6
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x40a6ec
cmp dword [esp + 0x28], edi
je 0x40a688
cmp dword [esp + 0x24], edi
jne 0x40a688
mov eax, dword [esp + 0x20]
and dword [esp + 0x58], edi
and dword [esp + 0x5c], edi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
push eax
lea edi, [esp + 0x58]
call fcn.004090c3
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
cmp eax, ecx
jne 0x40a550
and dword [esp + 0x58], ecx
cmp dword [ebp + 0x10], 0
je 0x40a688
cmp word [esi], 0x7b
jne 0x40a688
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a688
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push esi
call fcn.0040a167
mov ebx, eax
test ebx, ebx
js 0x40a557
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0040987d
mov ebx, eax
test ebx, ebx
js 0x40a557
cmp word [esi], 0x7d
jne 0x40a1c6
jmp 0x40a557
cmp dword [esp + 0x14], ebx
je 0x40a6a7
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40a56a
cmp dword [esp + 0x14], edi
jmp 0x40a69b
cmp dword [esp + 0x14], edi
jmp 0x40a55c
call fcn.00408aa9
mov ebx, eax
cmp dword [esp + 0x2c], edi
je 0x40a557
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a557
call fcn.00408aa9
cmp dword [esp + 0x14], 0
jmp 0x40a6f5
call fcn.00408aa9
cmp dword [esp + 0x14], edi
mov esi, eax
je 0x40a703
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40a56a