Function at 0x40a793
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b008
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0045fd70
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x223c], eax
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.0040a681
mov edi, eax
cmp edi, esi
jmp 0x40ad16
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x2238], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40a834
test esi, esi
je 0x40a8f6
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a681
mov edi, eax
test edi, edi
jl 0x40ad84
cmp dword [ebp + 0x10], 0
je 0x40a8f6
xor edi, edi
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
call fcn.00409dad
pop ecx
test eax, eax
jne 0x40ad24
push ebx
call fcn.0040a42d
test eax, eax
je 0x40a8a9
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2234]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], edi
call fcn.0040a497
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
cmp esi, edi
je 0x40a8eb
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a681
mov edi, eax
test edi, edi
jl 0x40ad36
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a3c8
lea esi, [ebp - 0x2234]
mov edi, eax
call fcn.0040a5b9
test edi, edi
jl 0x40ad84
jmp 0x40acd0
lea esi, [ebp - 0x2234]
call fcn.0040a5b9
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a923
and dword [ebp - 0x2238], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a681
mov edi, eax
test edi, edi
jl 0x40ad84
push 0x4755d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40aa43
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.0040a681
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x40ad84
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a681
mov edi, eax
cmp edi, esi
jl 0x40ad84
cmp word [ebx], 0x3d
jne 0x40ad2f
cmp dword [ebp + 0x10], esi
je 0x40a9ce
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2244], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x2244]
mov dword [ebp - 0x2240], esi
call fcn.0040a0ca
mov edi, eax
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x2240], esi
cmp edi, esi
lea esi, [ebp - 0x2244]
jl 0x40ad7f
mov byte [ebp - 4], 0
jmp 0x40accb
cmp dword [ebp + 0x14], esi
jne 0x40aa31
cmp dword [ebp - 0x2238], esi
je 0x40aa31
push esi
push dword [ebp - 0x2220]
mov eax, 0x20006
lea ecx, [ebp - 0x224c]
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
call fcn.0040a459
cmp eax, esi
jne 0x40ad3e
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40aa26
cmp eax, 2
jne 0x40ad3e
lea esi, [ebp - 0x224c]
call fcn.0040a5b9
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a3c8
jmp 0x40ad12
push 0x5c
mov eax, ebx
call fcn.00409dad
pop ecx
test eax, eax
jne 0x40ad2f
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40aaf0
push ebx
push dword [ebp - 0x2220]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x2228]
call fcn.0040a459
test eax, eax
je 0x40aab4
push ebx
push dword [ebp - 0x2220]
lea eax, [esi - 6]
lea ecx, [ebp - 0x2228]
call fcn.0040a459
test eax, eax
je 0x40aab4
push ebx
push dword [ebp - 0x2220]
mov eax, esi
lea ecx, [ebp - 0x2228]
call fcn.00409dd4
mov edi, eax
test edi, edi
jne 0x40ad4b
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a681
mov edi, eax
test edi, edi
jl 0x40ad84
cmp word [ebx], 0x3d
jne 0x40acd0
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2228]
call fcn.0040a0ca
mov edi, eax
jmp 0x40a8de
cmp dword [ebp + 0x14], esi
jne 0x40ab14
push ebx
push dword [ebp - 0x2220]
mov eax, 0x20019
lea ecx, [ebp - 0x2228]
call fcn.0040a459
mov dword [ebp - 0x222c], eax
jmp 0x40ab1e
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], esi
je 0x40ab2d
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043fcc1
push eax
call fcn.00402f30
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.0040a681
mov edi, eax
test edi, edi
jl 0x40ad84
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a3c8
mov edi, eax
test edi, edi
jl 0x40ad84
cmp word [ebx], 0x7b
jne 0x40abc8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40abc8
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2228]
push ebx
call fcn.0040a793
mov edi, eax
test edi, edi
jge 0x40abb1
cmp dword [ebp + 0x14], 0
je 0x40ad84
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a681
mov edi, eax
test edi, edi
jl 0x40ad84
mov eax, dword [ebp - 0x223c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x222c]
cmp eax, 2
je 0x40ad18
test eax, eax
je 0x40abfd
cmp dword [ebp - 0x223c], 0
jne 0x40ad18
call fcn.0040a64c
mov edi, eax
jmp 0x40ad84
cmp dword [ebp - 0x223c], 0
je 0x40ac4d
push dword [ebp - 0x2228]
call fcn.0040a579
test eax, eax
je 0x40ac4d
lea eax, [ebp - 0x218]
push eax
call fcn.0040a42d
test eax, eax
je 0x40ad18
cmp dword [ebp - 0x2238], 0
je 0x40ad18
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.0040a497
jmp 0x40ad18
push dword [ebp - 0x2228]
call fcn.0040a579
lea esi, [ebp - 0x2228]
mov dword [ebp - 0x2258], eax
call fcn.0040a5b9
xor ecx, ecx
mov dword [ebp - 0x222c], eax
cmp eax, ecx
jne 0x40ad5f
cmp dword [ebp - 0x2238], ecx
je 0x40ad18
cmp dword [ebp - 0x2258], ecx
jne 0x40ad18
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x2254]
mov dword [ebp - 0x2250], ecx
call fcn.0040a5dc
and dword [ebp - 0x2254], 0
and dword [ebp - 0x2250], 0
test eax, eax
jne 0x40ad72
call fcn.0040a5b9
cmp dword [ebp + 0x10], 0
je 0x40ad18
cmp word [ebx], 0x7b
jne 0x40ad18
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40ad18
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2228]
push ebx
call fcn.0040a793
mov edi, eax
test edi, edi
jl 0x40ad84
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a681
mov edi, eax
test edi, edi
jl 0x40ad84
cmp word [ebx], 0x7d
jne 0x40a801
jmp 0x40ad84
lea esi, [ebp - 0x2234]
call fcn.0040a5b9
mov edi, 0x80020009
jmp 0x40ad84
lea esi, [ebp - 0x2234]
jmp 0x40ad7f
call fcn.0040a64c
lea esi, [ebp - 0x224c]
jmp 0x40ad7d
lea esi, [ebp - 0x2228]
call fcn.0040a5b9
mov eax, edi
call fcn.0040a64c
jmp 0x40ad91
lea esi, [ebp - 0x2228]
call fcn.0040a5b9
mov eax, dword [ebp - 0x222c]
jmp 0x40ad58
call fcn.0040a64c
lea esi, [ebp - 0x2254]
mov edi, eax
call fcn.0040a5b9
lea esi, [ebp - 0x2228]
call fcn.0040a5b9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b103
leave
ret 0x10