Function at 0x413960
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2258
call fcn.00414eb0
mov eax, dword [0x431618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, ecx
mov dword [ebp - 0x2220], 0
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2214], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x2210], eax
mov dword [ebp - 0x221c], 0
mov dword [ebp - 0x2218], 0
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41401e
cmp word [edi], 0x7d
push ebx
je 0x41400a
nop dword [eax + eax]
push str.Delete
push edi
mov dword [ebp - 0x2224], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x42745c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413a03
test ebx, ebx
je 0x413b1f
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
cmp dword [ebp + 0x10], 0
je 0x413b1f
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test cx, cx
je 0x413a71
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x413a69
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x413a50
jmp 0x413a71
test eax, eax
jne 0x413fc8
mov esi, 0x428e80
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413ad8
add esi, 4
cmp esi, 0x428eb0
jl 0x413a76
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.00413510
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test ebx, ebx
je 0x413b15
mov ebx, dword [ebp - 0x2210]
mov ecx, ebx
push edi
call fcn.00412940
mov esi, eax
test esi, esi
js 0x413fda
push edi
mov ecx, ebx
call fcn.00414030
mov esi, eax
test esi, esi
js 0x413fda
mov dword [ebp - 0x222c], 0
jmp 0x413d72
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 0x413b4d
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], eax
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
push 0x427454
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413cb1
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
push edi
mov ecx, ebx
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
cmp word [edi], 0x3d
jne 0x413fd3
cmp dword [ebp + 0x10], 0
je 0x413c09
mov eax, dword [ebp - 0x2214]
mov ecx, ebx
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x224c]
mov dword [ebp - 0x2248], 0
push eax
mov dword [ebp - 0x2244], 0
call fcn.00412000
mov esi, eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
test esi, esi
jns 0x413d72
lea ecx, [ebp - 0x224c]
call fcn.00411d80
jmp 0x41400a
cmp dword [ebp + 0x14], 0
jne 0x413c9a
cmp dword [ebp - 0x2224], 0
je 0x413c9a
push 0x20006
push 0
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.00412d50
test eax, eax
jne 0x413fe7
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x413c7b
cmp eax, 2
jne 0x413fe7
test esi, esi
je 0x413c90
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
push edi
mov ecx, ebx
call fcn.00414030
mov esi, eax
test esi, esi
js 0x41400a
jmp 0x413fbc
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x413ce1
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x413cd9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x413cc0
jmp 0x413ce1
test eax, eax
jne 0x413fd3
cmp dword [ebp + 0x10], 0
je 0x413dcd
mov esi, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
push 0x2001f
push edi
push esi
call fcn.00412d50
test eax, eax
je 0x413d3f
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.00412d50
test eax, eax
je 0x413d3f
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.00412720
test eax, eax
jne 0x413fff
push edi
mov ecx, ebx
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
cmp word [edi], 0x3d
jne 0x413d72
push edi
push 0
lea eax, [ebp - 0x2220]
mov ecx, ebx
push eax
call fcn.00412000
mov esi, eax
test esi, esi
js 0x41400a
cmp word [edi], 0x7b
jne 0x413fbc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413d81
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x413fbc
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2220]
push edi
call fcn.00413960
mov esi, eax
test esi, esi
js 0x41400a
push edi
mov ecx, ebx
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
jmp 0x413fbc
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x413def
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00412d50
mov ebx, eax
jmp 0x413df4
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00419a2f
push eax
call fcn.00408a20
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00414030
mov esi, eax
test esi, esi
js 0x41400a
cmp word [edi], 0x7b
jne 0x413eb7
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413e60
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x413eb7
push dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2220]
push edi
call fcn.00413960
mov esi, eax
test esi, esi
jns 0x413ea1
cmp dword [ebp - 0x2234], 0
je 0x41400a
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00412940
mov esi, eax
test esi, esi
js 0x41400a
cmp ebx, 2
je 0x413fbc
test ebx, ebx
je 0x413ed4
cmp dword [ebp + 0x14], 0
jne 0x413fbc
push ebx
jmp 0x414000
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2210]
je 0x413f2b
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.004128f0
test eax, eax
je 0x413f2b
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00412650
test eax, eax
je 0x413fbc
cmp dword [ebp - 0x2224], 0
je 0x413fbc
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2220]
call fcn.00413510
jmp 0x413fbc
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.004128f0
mov ecx, dword [ebp - 0x2220]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x413f55
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 0x413fff
cmp dword [ebp - 0x2224], eax
je 0x413fbc
test ebx, ebx
jne 0x413fbc
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2258]
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
call fcn.004127f0
lea ecx, [ebp - 0x2258]
mov dword [ebp - 0x2258], 0
mov ebx, eax
call fcn.00411d80
test ebx, ebx
jne 0x413ece
cmp word [edi], 0x7d
jne 0x4139d0
jmp 0x41400a
lea ecx, [ebp - 0x2230]
call fcn.00411d80
mov esi, 0x80020009
jmp 0x41400a
lea ecx, [ebp - 0x2230]
call fcn.00411d80
jmp 0x41400a
push eax
call fcn.00412630
add esp, 4
lea ecx, [ebp - 0x2240]
mov esi, eax
call fcn.00411d80
jmp 0x41400a
push eax
call fcn.00412630
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2220]
pop ebx
test eax, eax
je 0x41401c
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.00414e7e
mov esp, ebp
pop ebp
ret 0x10