Function at 0x40a7f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2258
call fcn.0040c190
mov eax, dword [0x42b054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2220], 0
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x2214], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2258], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x2210], eax
mov dword [ebp - 0x221c], 0
mov dword [ebp - 0x2218], 0
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aed6
cmp word [edi], 0x7d
push ebx
je 0x40aec2
nop dword [eax]
nop word [eax + eax]
push str.Delete
push edi
mov dword [ebp - 0x2224], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a8a3
test ebx, ebx
je 0x40a9bf
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
cmp dword [ebp + 0x10], 0
je 0x40a9bf
movzx eax, word [edi]
mov ecx, edi
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test ax, ax
je 0x40a911
nop dword [eax + eax]
cmp ax, 0x5c
je 0x40a909
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40a8f0
jmp 0x40a911
test ecx, ecx
jne 0x40ae5b
mov esi, 0x422e9c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a978
add esi, 4
cmp esi, 0x422ecc
jl 0x40a916
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
call fcn.0040a3e0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test ebx, ebx
je 0x40a9b5
mov ebx, dword [ebp - 0x2210]
mov ecx, ebx
push edi
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40ae6d
push edi
mov ecx, ebx
call fcn.0040b030
mov esi, eax
test esi, esi
js 0x40ae6d
mov dword [ebp - 0x222c], 0
jmp 0x40ac12
mov dword [ebp - 0x222c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2210]
test eax, eax
jne 0x40a9ed
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], eax
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
push 0x422cfc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ab50
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
push edi
mov ecx, ebx
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
cmp word [edi], 0x3d
jne 0x40ae66
cmp dword [ebp + 0x10], 0
je 0x40aaa8
mov eax, dword [ebp - 0x2214]
mov ecx, ebx
mov dword [ebp - 0x223c], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x223c]
mov dword [ebp - 0x2238], 0
push eax
mov dword [ebp - 0x2234], 0
call fcn.00409260
mov esi, eax
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2234], 0
test esi, esi
js 0x40ae7a
mov dword [ebp - 0x2238], 0
jmp 0x40ac12
cmp dword [ebp + 0x14], 0
jne 0x40ab39
cmp dword [ebp - 0x2224], 0
je 0x40ab39
push 0x20006
push 0
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2248]
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
call fcn.00409fe0
test eax, eax
jne 0x40ae87
mov esi, dword [ebp - 0x2248]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ab1a
cmp eax, 2
jne 0x40ae87
test esi, esi
je 0x40ab2f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
push edi
mov ecx, ebx
call fcn.0040b030
mov esi, eax
test esi, esi
js 0x40aec2
jmp 0x40ae4f
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x40ab81
nop word [eax + eax]
cmp ax, 0x5c
je 0x40ab79
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40ab60
jmp 0x40ab81
test ecx, ecx
jne 0x40ae66
cmp dword [ebp + 0x10], 0
je 0x40ac6d
mov esi, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
push 0x2001f
push edi
push esi
call fcn.00409fe0
test eax, eax
je 0x40abdf
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.00409fe0
test eax, eax
je 0x40abdf
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.004099b0
test eax, eax
jne 0x40aeb7
push edi
mov ecx, ebx
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
cmp word [edi], 0x3d
jne 0x40ac12
push edi
push 0
lea eax, [ebp - 0x2220]
mov ecx, ebx
push eax
call fcn.00409260
mov esi, eax
test esi, esi
js 0x40aec2
cmp word [edi], 0x7b
jne 0x40ae4f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac21
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40ae4f
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2220]
push edi
call fcn.0040a7f0
mov esi, eax
test esi, esi
js 0x40aec2
push edi
mov ecx, ebx
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
jmp 0x40ae4f
cmp dword [ebp + 0x14], 0
jne 0x40ac92
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00409fe0
mov ebx, eax
test ebx, ebx
jne 0x40ac97
jmp 0x40ac9e
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00414840
push eax
call fcn.00401630
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0040b030
mov esi, eax
test esi, esi
js 0x40aec2
cmp word [edi], 0x7b
jne 0x40ad43
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40acf2
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40ad43
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2220]
push edi
call fcn.0040a7f0
mov esi, eax
test esi, esi
jns 0x40ad2d
cmp dword [ebp + 0x14], 0
je 0x40aec2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00409e40
mov esi, eax
test esi, esi
js 0x40aec2
mov eax, dword [ebp - 0x2258]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40ae4f
test ebx, ebx
je 0x40ad67
test eax, eax
jne 0x40ae4f
push ebx
jmp 0x40aeb8
mov ebx, dword [ebp - 0x2210]
test eax, eax
je 0x40adbc
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.00409c80
test eax, eax
je 0x40adbc
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00409830
test eax, eax
je 0x40ae4f
cmp dword [ebp - 0x2224], 0
je 0x40ae4f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2220]
call fcn.0040a3e0
jmp 0x40ae4f
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.00409c80
mov ecx, dword [ebp - 0x2220]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x40ade6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2220], ecx
mov dword [ebp - 0x221c], 0
test eax, eax
jne 0x40aeb7
cmp dword [ebp - 0x2224], eax
je 0x40ae4f
test ebx, ebx
jne 0x40ae4f
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2254]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x2250], ebx
mov dword [ebp - 0x224c], ebx
call fcn.00409a90
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
mov dword [ebp - 0x224c], ebx
test eax, eax
jne 0x40ae9f
lea ecx, [ebp - 0x2254]
call fcn.00408df0
cmp word [edi], 0x7d
jne 0x40a870
jmp 0x40aec2
lea ecx, [ebp - 0x2230]
call fcn.00408df0
mov esi, 0x80020009
jmp 0x40aec2
lea ecx, [ebp - 0x2230]
call fcn.00408df0
jmp 0x40aec2
lea ecx, [ebp - 0x223c]
call fcn.00408df0
jmp 0x40aec2
push eax
call fcn.00409810
add esp, 4
lea ecx, [ebp - 0x2248]
mov esi, eax
call fcn.00408df0
jmp 0x40aec2
push eax
call fcn.00409810
add esp, 4
lea ecx, [ebp - 0x2254]
mov esi, eax
call fcn.00408df0
jmp 0x40aec2
push eax
call fcn.00409810
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2220]
pop ebx
test eax, eax
je 0x40aed4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c175
mov esp, ebp
pop ebp
ret 0x10