Function at 0x40a7d3
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b058
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0045fdc0
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.0040a6c1
mov edi, eax
cmp edi, esi
jmp 0x40ad56
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 0x40a874
test esi, esi
je 0x40a936
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
test edi, edi
jl 0x40adc4
cmp dword [ebp + 0x10], 0
je 0x40a936
xor edi, edi
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
call fcn.00409ded
pop ecx
test eax, eax
jne 0x40ad64
push ebx
call fcn.0040a46d
test eax, eax
je 0x40a8e9
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2234]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], edi
call fcn.0040a4d7
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
cmp esi, edi
je 0x40a92b
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
test edi, edi
jl 0x40ad76
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a408
lea esi, [ebp - 0x2234]
mov edi, eax
call fcn.0040a5f9
test edi, edi
jl 0x40adc4
jmp 0x40ad10
lea esi, [ebp - 0x2234]
call fcn.0040a5f9
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a963
and dword [ebp - 0x2238], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
test edi, edi
jl 0x40adc4
push 0x4755d8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40aa83
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.0040a6c1
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x40adc4
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
cmp edi, esi
jl 0x40adc4
cmp word [ebx], 0x3d
jne 0x40ad6f
cmp dword [ebp + 0x10], esi
je 0x40aa0e
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.0040a10a
mov edi, eax
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x2240], esi
cmp edi, esi
lea esi, [ebp - 0x2244]
jl 0x40adbf
mov byte [ebp - 4], 0
jmp 0x40ad0b
cmp dword [ebp + 0x14], esi
jne 0x40aa71
cmp dword [ebp - 0x2238], esi
je 0x40aa71
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.0040a499
cmp eax, esi
jne 0x40ad7e
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40aa66
cmp eax, 2
jne 0x40ad7e
lea esi, [ebp - 0x224c]
call fcn.0040a5f9
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a408
jmp 0x40ad52
push 0x5c
mov eax, ebx
call fcn.00409ded
pop ecx
test eax, eax
jne 0x40ad6f
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40ab30
push ebx
push dword [ebp - 0x2220]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x2228]
call fcn.0040a499
test eax, eax
je 0x40aaf4
push ebx
push dword [ebp - 0x2220]
lea eax, [esi - 6]
lea ecx, [ebp - 0x2228]
call fcn.0040a499
test eax, eax
je 0x40aaf4
push ebx
push dword [ebp - 0x2220]
mov eax, esi
lea ecx, [ebp - 0x2228]
call fcn.00409e14
mov edi, eax
test edi, edi
jne 0x40ad8b
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
test edi, edi
jl 0x40adc4
cmp word [ebx], 0x3d
jne 0x40ad10
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2228]
call fcn.0040a10a
mov edi, eax
jmp 0x40a91e
cmp dword [ebp + 0x14], esi
jne 0x40ab54
push ebx
push dword [ebp - 0x2220]
mov eax, 0x20019
lea ecx, [ebp - 0x2228]
call fcn.0040a499
mov dword [ebp - 0x222c], eax
jmp 0x40ab5e
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], esi
je 0x40ab6d
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043fd11
push eax
call fcn.00402f30
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
test edi, edi
jl 0x40adc4
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a408
mov edi, eax
test edi, edi
jl 0x40adc4
cmp word [ebx], 0x7b
jne 0x40ac08
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40ac08
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2228]
push ebx
call fcn.0040a7d3
mov edi, eax
test edi, edi
jge 0x40abf1
cmp dword [ebp + 0x14], 0
je 0x40adc4
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
test edi, edi
jl 0x40adc4
mov eax, dword [ebp - 0x223c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x222c]
cmp eax, 2
je 0x40ad58
test eax, eax
je 0x40ac3d
cmp dword [ebp - 0x223c], 0
jne 0x40ad58
call fcn.0040a68c
mov edi, eax
jmp 0x40adc4
cmp dword [ebp - 0x223c], 0
je 0x40ac8d
push dword [ebp - 0x2228]
call fcn.0040a5b9
test eax, eax
je 0x40ac8d
lea eax, [ebp - 0x218]
push eax
call fcn.0040a46d
test eax, eax
je 0x40ad58
cmp dword [ebp - 0x2238], 0
je 0x40ad58
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.0040a4d7
jmp 0x40ad58
push dword [ebp - 0x2228]
call fcn.0040a5b9
lea esi, [ebp - 0x2228]
mov dword [ebp - 0x2258], eax
call fcn.0040a5f9
xor ecx, ecx
mov dword [ebp - 0x222c], eax
cmp eax, ecx
jne 0x40ad9f
cmp dword [ebp - 0x2238], ecx
je 0x40ad58
cmp dword [ebp - 0x2258], ecx
jne 0x40ad58
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.0040a61c
and dword [ebp - 0x2254], 0
and dword [ebp - 0x2250], 0
test eax, eax
jne 0x40adb2
call fcn.0040a5f9
cmp dword [ebp + 0x10], 0
je 0x40ad58
cmp word [ebx], 0x7b
jne 0x40ad58
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40ad58
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2228]
push ebx
call fcn.0040a7d3
mov edi, eax
test edi, edi
jl 0x40adc4
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a6c1
mov edi, eax
test edi, edi
jl 0x40adc4
cmp word [ebx], 0x7d
jne 0x40a841
jmp 0x40adc4
lea esi, [ebp - 0x2234]
call fcn.0040a5f9
mov edi, 0x80020009
jmp 0x40adc4
lea esi, [ebp - 0x2234]
jmp 0x40adbf
call fcn.0040a68c
lea esi, [ebp - 0x224c]
jmp 0x40adbd
lea esi, [ebp - 0x2228]
call fcn.0040a5f9
mov eax, edi
call fcn.0040a68c
jmp 0x40add1
lea esi, [ebp - 0x2228]
call fcn.0040a5f9
mov eax, dword [ebp - 0x222c]
jmp 0x40ad98
call fcn.0040a68c
lea esi, [ebp - 0x2254]
mov edi, eax
call fcn.0040a5f9
lea esi, [ebp - 0x2228]
call fcn.0040a5f9
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.0043b155
leave
ret 0x10