Function at 0x406f41
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40be1b
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0040b3f0
mov eax, dword [0x414008]
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 dword [ebp - 0x2240], ecx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
jmp 0x4072eb
push str.Delete
push edi
mov dword [ebp - 0x2230], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x40db38
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406fde
test ebx, ebx
je 0x40709a
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074f9
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40709c
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.0040635b
test eax, eax
jne 0x4074e9
push edi
call fcn.00406a43
test eax, eax
je 0x407057
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
push edi
mov dword [ebp - 0x223c], eax
call fcn.00405cff
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
test ebx, ebx
je 0x40708d
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074e1
push edi
mov ecx, ebx
call fcn.00406aa7
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.00405ba1
jmp 0x407296
lea ecx, [ebp - 0x223c]
call fcn.00405ba1
jmp 0x40709c
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x4070ca
push edi
mov ecx, ebx
mov dword [ebp - 0x2230], esi
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074f9
push 0x40db30
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407203
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074f9
push edi
mov ecx, ebx
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074f9
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4074f4
cmp dword [ebp + 0x10], 0
je 0x40717f
mov eax, dword [ebp - 0x2220]
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x2250], eax
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2250]
push eax
call fcn.00406530
mov esi, eax
lea ecx, [ebp - 0x2250]
xor eax, eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
test esi, esi
js 0x407531
mov byte [ebp - 4], al
call fcn.00405ba1
jmp 0x40729e
cmp dword [ebp + 0x14], 0
jne 0x4071ec
cmp dword [ebp - 0x2230], 0
je 0x4071ec
xor eax, eax
lea ecx, [ebp - 0x225c]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
call fcn.00405c63
test eax, eax
jne 0x407522
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x225c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4071e1
cmp eax, 2
jne 0x407522
lea ecx, [ebp - 0x225c]
call fcn.00405ba1
push edi
mov ecx, ebx
call fcn.00406aa7
mov esi, eax
test esi, esi
js 0x4074f9
jmp 0x4074d3
push 0x5c
pop edx
mov ecx, edi
call fcn.0040635b
test eax, eax
jne 0x4074f4
cmp dword [ebp + 0x10], eax
je 0x4072f6
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
push 0x2001f
push edi
push esi
call fcn.00405c63
test eax, eax
je 0x407268
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x222c]
call fcn.00405c63
test eax, eax
je 0x407268
sub esp, 0x14
lea ecx, [ebp - 0x222c]
push edi
push esi
call fcn.00405bbb
test eax, eax
jne 0x407547
push edi
mov ecx, ebx
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074f9
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40729e
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x222c]
push eax
call fcn.00406530
mov esi, eax
test esi, esi
js 0x4074f9
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4074d3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x4072af
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4074d3
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x222c]
push edi
call fcn.00406f41
mov esi, eax
test esi, esi
js 0x4074f9
mov ecx, ebx
push edi
call fcn.004063df
jmp 0x4071f4
cmp dword [ebp + 0x14], 0
jne 0x407317
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
call fcn.00405c63
mov ebx, eax
jmp 0x40731a
push 2
pop ebx
xor eax, eax
inc eax
test ebx, ebx
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.004058d7
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074f9
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00406aa7
mov esi, eax
test esi, esi
js 0x4074f9
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4073dc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x407380
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4073dc
push dword [ebp - 0x2244]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp - 0x222c]
push edi
call fcn.00406f41
mov esi, eax
test esi, esi
jns 0x4073c6
cmp dword [ebp - 0x2244], 0
je 0x4074f9
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004063df
mov esi, eax
test esi, esi
js 0x4074f9
cmp ebx, 2
je 0x4074d3
test ebx, ebx
je 0x407401
cmp dword [ebp + 0x14], 0
jne 0x4074d3
mov ecx, ebx
call fcn.00405929
mov esi, eax
jmp 0x4074f9
cmp dword [ebp + 0x14], 0
je 0x40744e
push dword [ebp - 0x222c]
call fcn.00406a72
test eax, eax
je 0x40744e
lea eax, [ebp - 0x218]
push eax
call fcn.00406a43
test eax, eax
je 0x4074d3
cmp dword [ebp - 0x2230], 0
je 0x4074d3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x222c]
call fcn.00405cff
jmp 0x4074d3
push dword [ebp - 0x222c]
call fcn.00406a72
mov ecx, dword [ebp - 0x222c]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x407476
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x222c], ecx
xor ecx, ecx
mov dword [ebp - 0x2228], ecx
test eax, eax
jne 0x407547
cmp dword [ebp - 0x2230], ecx
je 0x4074d3
test ebx, ebx
jne 0x4074d3
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2260], ecx
lea ecx, [ebp - 0x2268]
push eax
call fcn.00405acd
xor ecx, ecx
mov dword [ebp - 0x2268], ecx
test eax, eax
jne 0x407538
lea ecx, [ebp - 0x2268]
call fcn.00405ba1
push 0x7d
pop eax
cmp word [edi], ax
jne 0x406fab
jmp 0x4074f9
lea ecx, [ebp - 0x223c]
jmp 0x407531
lea ecx, [ebp - 0x223c]
call fcn.00405ba1
mov esi, 0x80020009
lea ecx, [ebp - 0x222c]
call fcn.00405ba1
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.0040a270
leave
ret 0x10
mov ecx, eax
call fcn.00405929
lea ecx, [ebp - 0x225c]
mov esi, eax
call fcn.00405ba1
jmp 0x4074f9
mov ecx, eax
call fcn.00405929
lea ecx, [ebp - 0x2268]
jmp 0x40752f
mov ecx, eax
jmp 0x4073f5