Function at 0x40f70b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b130
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.00419f40
mov eax, dword [0x429014]
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, ecx
mov dword [ebp - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd10
push 0x7d
pop eax
cmp word [edi], ax
je 0x40fd05
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x2234], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x420eb4
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40f7c0
test esi, esi
je 0x40f87b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40f87d
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2250], esi
mov dword [ebp - 0x2248], esi
call fcn.0040ef7c
test eax, eax
jne 0x40fd00
push edi
call fcn.0040f53e
test eax, eax
je 0x40f833
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2250]
push edi
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], esi
call fcn.00408e42
mov dword [ebp - 0x2250], esi
mov dword [ebp - 0x2248], esi
cmp dword [ebp - 0x2224], esi
je 0x40f873
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f4d9
mov esi, eax
test esi, esi
js 0x40fd05
and dword [ebp - 0x224c], 0
jmp 0x40fc79
mov dword [ebp - 0x224c], esi
jmp 0x40f87d
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f8a9
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2234], esi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
push 0x420eac
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f9f4
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40fd00
cmp dword [ebp + 0x10], 0
je 0x40f967
mov ecx, dword [ebp - 0x221c]
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
and dword [ebp - 0x2258], 0
and dword [ebp - 0x2254], 0
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x225c]
push eax
call fcn.0040f018
mov esi, eax
xor eax, eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
test esi, esi
js 0x40fd05
mov byte [ebp - 4], al
mov dword [ebp - 0x2258], eax
jmp 0x40fc79
cmp dword [ebp + 0x14], 0
jne 0x40f9e3
cmp dword [ebp - 0x2234], 0
je 0x40f9e3
xor eax, eax
lea ecx, [ebp - 0x2240]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
call fcn.00408fbb
test eax, eax
jne 0x40fccf
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40f9ca
cmp eax, 2
jne 0x40fccf
test esi, esi
je 0x40f9dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x2240], 0
and dword [ebp - 0x223c], 0
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f4d9
jmp 0x40fcc4
push 0x5c
pop edx
mov ecx, edi
call fcn.0040ef7c
test eax, eax
jne 0x40fd00
cmp dword [ebp + 0x10], eax
je 0x40fa9f
mov ebx, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push ebx
call fcn.00408fbb
test eax, eax
je 0x40fa59
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2230]
call fcn.00408fbb
test eax, eax
je 0x40fa59
sub esp, 0x14
lea ecx, [ebp - 0x2230]
push edi
push ebx
call fcn.00408cc2
test eax, eax
jne 0x40fcef
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fcf8
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40fa94
push edi
push 0
lea eax, [ebp - 0x2230]
mov ecx, ebx
push eax
call fcn.0040f018
mov esi, eax
test esi, esi
js 0x40fcf8
mov ebx, dword [ebp - 0x2230]
jmp 0x40fc79
cmp dword [ebp + 0x14], 0
jne 0x40fac4
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.00408fbb
mov ebx, dword [ebp - 0x2230]
jmp 0x40fac7
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [ebp - 0x2224], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp - 0x2244], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.0040f49e
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f4d9
mov esi, eax
test esi, esi
js 0x40fd05
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40fb7b
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x40fb7b
push dword [ebp - 0x2244]
mov ecx, dword [ebp - 0x221c]
push 0
push ebx
push edi
call fcn.0040f70b
mov esi, eax
test esi, esi
jns 0x40fb65
cmp dword [ebp - 0x2244], 0
je 0x40fd05
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
mov eax, dword [ebp - 0x2224]
cmp eax, 2
je 0x40f77c
test eax, eax
je 0x40fba6
cmp dword [ebp + 0x14], 0
jne 0x40f77c
mov ecx, eax
call fcn.0040f5a2
mov esi, eax
jmp 0x40fd05
cmp dword [ebp + 0x14], 0
je 0x40fbf4
push ebx
call fcn.0040f56d
test eax, eax
je 0x40fbf4
lea eax, [ebp - 0x218]
push eax
call fcn.0040f53e
test eax, eax
je 0x40f77c
cmp dword [ebp - 0x2234], 0
je 0x40f77c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00408e42
mov ebx, dword [ebp - 0x2230]
jmp 0x40f77c
push ebx
call fcn.0040f56d
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x40fc1d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
xor ebx, ebx
mov dword [ebp - 0x2230], ebx
and dword [ebp - 0x222c], 0
test eax, eax
jne 0x40fb98
cmp dword [ebp - 0x2234], eax
je 0x40f77c
test ecx, ecx
jne 0x40f77c
mov eax, dword [ebp - 0x2220]
and dword [ebp - 0x2264], ecx
and dword [ebp - 0x2260], ecx
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00408d9f
and dword [ebp - 0x2268], 0
test eax, eax
jne 0x40fb98
cmp dword [ebp + 0x10], 0
je 0x40f77c
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40f77c
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x40f77c
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.0040f70b
mov esi, eax
test esi, esi
js 0x40fd05
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f5b0
mov esi, eax
test esi, esi
js 0x40fd05
jmp 0x40f77c
mov ecx, eax
call fcn.0040f5a2
cmp dword [ebp - 0x2240], 0
mov esi, eax
je 0x40fd05
push dword [ebp - 0x2240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fd05
mov ecx, eax
call fcn.0040f5a2
mov esi, eax
mov ebx, dword [ebp - 0x2230]
jmp 0x40fd05
mov esi, 0x80020009
test ebx, ebx
je 0x40fd10
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004188ed
leave
ret 0x10