Function at 0x40a5c3
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x21c8]
mov eax, 0x2248
call fcn.0042ddf0
mov eax, dword [0x451fbc]
xor eax, ebp
mov dword [ebp + 0x21c4], eax
mov eax, dword [ebp + 0x21d4]
and dword [ebp - 0x54], 0
and dword [ebp - 0x50], 0
push ebx
push esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x21dc]
push edi
mov edi, dword [ebp + 0x21d0]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x7c], eax
jmp 0x40aa3a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x60], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40a63d
test ebx, ebx
je 0x40a6d7
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409218
mov esi, eax
test esi, esi
jl 0x40aa9f
cmp dword [ebp + 0x21d8], 0
je 0x40a6d7
xor esi, esi
push 0x5c
push edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.004091a8
pop ecx
pop ecx
test eax, eax
jne 0x40aa52
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409326
test eax, eax
je 0x40a698
mov eax, dword [ebp - 0x4c]
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
call fcn.0040951d
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
cmp ebx, esi
je 0x40a6cf
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409218
mov esi, eax
test esi, esi
jl 0x40aa61
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409387
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00408e7b
test esi, esi
jl 0x40aa9f
jmp 0x40aa02
lea ecx, [ebp - 0x5c]
call fcn.00408e7b
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a6fd
mov ecx, dword [ebp - 0x48]
and dword [ebp - 0x60], eax
push edi
call fcn.00409218
mov esi, eax
test esi, esi
jl 0x40aa9f
push 0x4435c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a7df
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call fcn.00409218
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40aa9f
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409218
mov esi, eax
cmp esi, ebx
jl 0x40aa9f
cmp word [edi], 0x3d
jne 0x40aa5a
cmp dword [ebp + 0x21d8], ebx
je 0x40a77f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x74], ebx
call fcn.0040a331
lea ecx, [ebp - 0x78]
mov esi, eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call fcn.00408e7b
cmp esi, ebx
jmp 0x40a6c4
cmp dword [ebp + 0x21dc], ebx
jne 0x40a7cd
cmp dword [ebp - 0x60], ebx
je 0x40a7cd
push 0x20006
push ebx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.00408ef0
cmp eax, ebx
jne 0x40aa66
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40a7c5
cmp eax, 2
jne 0x40aa66
lea ecx, [ebp - 0x68]
call fcn.00408e7b
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409387
mov esi, eax
cmp esi, ebx
jmp 0x40aa44
push 0x5c
push edi
call fcn.004091a8
pop ecx
pop ecx
test eax, eax
jne 0x40aa5a
cmp dword [ebp + 0x21d8], eax
je 0x40a874
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.00408ef0
test eax, eax
je 0x40a841
push 0x20019
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.00408ef0
test eax, eax
je 0x40a841
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.00408e96
mov esi, eax
cmp esi, ebx
jne 0x40aa72
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409218
mov esi, eax
test esi, esi
jl 0x40aa9f
cmp word [edi], 0x3d
jne 0x40aa02
mov ecx, dword [ebp - 0x48]
push edi
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.0040a331
mov esi, eax
jmp 0x40a6c2
cmp dword [ebp + 0x21dc], 0
jne 0x40a892
push 0x20019
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.00408ef0
mov ebx, eax
jmp 0x40a895
push 2
pop ebx
test ebx, ebx
je 0x40a8a3
mov dword [ebp + 0x21dc], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x1fbc]
push 0x104
push eax
call fcn.0042dd1d
push eax
call fcn.00407673
mov ecx, dword [ebp - 0x48]
add esp, 0x14
push edi
call fcn.00409218
mov esi, eax
test esi, esi
jl 0x40aa9f
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409387
mov esi, eax
test esi, esi
jl 0x40aa9f
cmp word [edi], 0x7b
jne 0x40a932
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a932
push dword [ebp + 0x21dc]
mov ecx, dword [ebp - 0x48]
push 0
push dword [ebp - 0x54]
push edi
call fcn.0040a5c3
mov esi, eax
test esi, esi
jge 0x40a91f
cmp dword [ebp + 0x21dc], 0
je 0x40aa9f
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409218
mov esi, eax
test esi, esi
jl 0x40aa9f
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x21dc], eax
cmp ebx, 2
je 0x40aa46
test ebx, ebx
je 0x40a95e
test eax, eax
jne 0x40aa46
push ebx
call fcn.00408d58
pop ecx
mov esi, eax
jmp 0x40aa9f
test eax, eax
je 0x40a9a6
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
call fcn.00409352
test eax, eax
je 0x40a9a6
mov ecx, dword [ebp - 0x48]
lea eax, [ebp + 0x1fbc]
push eax
call fcn.00409326
test eax, eax
je 0x40aa46
cmp dword [ebp - 0x60], 0
je 0x40aa46
lea eax, [ebp + 0x1fbc]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040951d
jmp 0x40aa46
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
call fcn.00409352
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x80], eax
call fcn.00408e7b
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x40aa83
cmp dword [ebp - 0x60], eax
je 0x40aa46
cmp dword [ebp - 0x80], eax
jne 0x40aa46
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x1fbc]
mov dword [ebp - 0x70], ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00408e20
and dword [ebp - 0x70], 0
and dword [ebp - 0x6c], 0
test eax, eax
jne 0x40aa8e
lea ecx, [ebp - 0x70]
call fcn.00408e7b
cmp dword [ebp + 0x21d8], 0
je 0x40aa46
cmp word [edi], 0x7b
jne 0x40aa46
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40aa46
mov ecx, dword [ebp - 0x48]
push 0
push dword [ebp + 0x21d8]
push dword [ebp - 0x54]
push edi
call fcn.0040a5c3
mov esi, eax
test esi, esi
jl 0x40aa9f
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00409218
mov esi, eax
test esi, esi
jl 0x40aa9f
cmp word [edi], 0x7d
jne 0x40a60d
jmp 0x40aa9f
lea ecx, [ebp - 0x5c]
call fcn.00408e7b
mov esi, 0x80020009
jmp 0x40aa9f
lea ecx, [ebp - 0x5c]
jmp 0x40aa9a
push eax
call fcn.00408d58
pop ecx
lea ecx, [ebp - 0x68]
jmp 0x40aa98
lea ecx, [ebp - 0x54]
call fcn.00408e7b
push esi
call fcn.00408d58
pop ecx
jmp 0x40aaa9
lea ecx, [ebp - 0x54]
call fcn.00408e7b
push ebx
jmp 0x40aa7b
push eax
call fcn.00408d58
pop ecx
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00408e7b
lea ecx, [ebp - 0x54]
call fcn.00408e7b
mov eax, esi
mov ecx, dword [ebp + 0x21c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bb9b
add ebp, 0x21c8
leave
ret 0x10