Function at 0x40687d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c2fd
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0042ab0c
mov eax, dword [0x435a78]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x221c], eax
xor eax, eax
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2268], eax
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
push 0x7d
pop eax
cmp word [edi], ax
je 0x406e57
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x42e314
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2220], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406937
test esi, esi
je 0x406a01
push edi
mov ecx, ebx
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x406a03
push 0x5c
push edi
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.00407168
test eax, eax
jne 0x406e47
push edi
mov ecx, ebx
call fcn.00405a90
test eax, eax
je 0x4069b8
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.00406300
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
cmp dword [ebp - 0x2220], esi
je 0x4069f4
push edi
mov ecx, ebx
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e3f
push edi
mov ecx, ebx
call fcn.004070df
lea ecx, [ebp - 0x2230]
mov esi, eax
call fcn.00405b46
test esi, esi
js 0x406e57
jmp 0x406dd9
lea ecx, [ebp - 0x2230]
call fcn.00405b46
jmp 0x406a03
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406a2b
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
push 0x42e30c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406b57
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
push edi
mov ecx, ebx
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
push 0x3d
pop eax
cmp word [edi], ax
jne 0x406e52
cmp dword [ebp + 0x10], 0
je 0x406add
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x224c], eax
xor eax, eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x224c]
push eax
call fcn.004053b2
mov esi, eax
lea ecx, [ebp - 0x224c]
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
test esi, esi
js 0x406e90
mov byte [ebp - 4], al
jmp 0x406dd4
cmp dword [ebp + 0x14], 0
jne 0x406b4a
cmp dword [ebp - 0x2224], 0
je 0x406b4a
xor eax, eax
lea ecx, [ebp - 0x2264]
push 0x20006
push eax
push dword [ebp - 0x221c]
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
call fcn.00406031
test eax, eax
jne 0x406e82
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2264]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x406b3f
cmp eax, 2
jne 0x406e82
lea ecx, [ebp - 0x2264]
call fcn.00405b46
push edi
mov ecx, ebx
call fcn.004070df
jmp 0x406e28
push 0x5c
push edi
call fcn.00407168
test eax, eax
jne 0x406e52
cmp dword [ebp + 0x10], eax
je 0x406bf9
mov esi, dword [ebp - 0x221c]
lea ecx, [ebp - 0x223c]
push 0x2001f
push edi
push esi
call fcn.00406031
test eax, eax
je 0x406bc2
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x223c]
call fcn.00406031
test eax, eax
je 0x406bc2
xor eax, eax
lea ecx, [ebp - 0x223c]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.00405b60
test eax, eax
jne 0x406cf0
push edi
mov ecx, ebx
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
push 0x3d
pop eax
cmp word [edi], ax
jne 0x406dd9
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x223c]
push eax
call fcn.004053b2
mov esi, eax
jmp 0x4069e7
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x406c19
push 0x20019
push edi
push dword [ebp - 0x221c]
lea ecx, [ebp - 0x223c]
call fcn.00406031
jmp 0x406c1c
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x2220], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
push eax
call fcn.004059ef
push edi
mov ecx, ebx
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
push edi
mov ecx, ebx
call fcn.004070df
mov esi, eax
test esi, esi
js 0x406e57
push 0x7b
pop eax
cmp word [edi], ax
jne 0x406ccc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x406c7c
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x406ccc
push dword [ebp + 0x14]
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp - 0x223c]
push edi
call fcn.0040687d
mov esi, eax
test esi, esi
jns 0x406cba
cmp dword [ebp + 0x14], 0
je 0x406e57
push edi
mov ecx, ebx
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2268]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x406e2e
test eax, eax
je 0x406cfd
test ecx, ecx
jne 0x406e2e
push eax
call fcn.00405a61
mov esi, eax
jmp 0x406e57
test ecx, ecx
je 0x406d4c
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.00405dd0
test eax, eax
je 0x406d4c
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00405a90
test eax, eax
je 0x406e2e
cmp dword [ebp - 0x2224], 0
je 0x406e2e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x223c]
call fcn.00406300
jmp 0x406e2e
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.00405dd0
lea ecx, [ebp - 0x223c]
mov dword [ebp - 0x2220], eax
call fcn.00405b46
test eax, eax
jne 0x406cf0
cmp dword [ebp - 0x2224], eax
je 0x406e2e
cmp dword [ebp - 0x2220], eax
jne 0x406e2e
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2258]
mov dword [ebp - 0x2258], eax
xor eax, eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00405bd1
xor ecx, ecx
mov dword [ebp - 0x2258], ecx
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x2250], ecx
test eax, eax
jne 0x406e97
lea ecx, [ebp - 0x2258]
call fcn.00405b46
cmp dword [ebp + 0x10], 0
je 0x406e2e
push 0x7b
pop eax
cmp word [edi], ax
jne 0x406e2e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x406dec
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x406e31
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x223c]
push edi
call fcn.0040687d
mov esi, eax
test esi, esi
js 0x406e57
push edi
mov ecx, ebx
call fcn.00405ef2
mov esi, eax
test esi, esi
js 0x406e57
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x406902
jmp 0x406e57
lea ecx, [ebp - 0x2230]
jmp 0x406e90
lea ecx, [ebp - 0x2230]
call fcn.00405b46
mov esi, 0x80020009
lea ecx, [ebp - 0x223c]
call fcn.00405b46
mov eax, esi
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.004297cb
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.00405a61
lea ecx, [ebp - 0x2264]
mov esi, eax
call fcn.00405b46
jmp 0x406e57
push eax
call fcn.00405a61
lea ecx, [ebp - 0x2258]
jmp 0x406e8e