Function at 0x40471c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ae2e
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0041a280
mov eax, dword [0x42500c]
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 - 0x223c], ecx
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2268], ecx
mov ecx, eax
push edi
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
push 0x7d
pop eax
cmp word [edi], ax
je 0x404d01
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 0x421a74
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4047d8
test ebx, ebx
je 0x4048a8
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4048aa
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.00403b84
test eax, eax
jne 0x404cf1
push edi
call fcn.004042e3
test eax, eax
je 0x40485d
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.004043d3
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
test ebx, ebx
je 0x40489b
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404ce9
push edi
mov ecx, ebx
call fcn.0040427c
lea ecx, [ebp - 0x2230]
mov esi, eax
call fcn.004044ce
test esi, esi
js 0x404d01
jmp 0x404c83
lea ecx, [ebp - 0x2230]
call fcn.004044ce
jmp 0x4048aa
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x4048d8
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
push 0x421a6c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404a09
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
push edi
mov ecx, ebx
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
push 0x3d
pop eax
cmp word [edi], ax
jne 0x404cfc
cmp dword [ebp + 0x10], 0
je 0x40498f
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
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.00403d9d
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 0x404d3b
mov byte [ebp - 4], al
call fcn.004044ce
jmp 0x404c83
cmp dword [ebp + 0x14], 0
jne 0x4049fc
cmp dword [ebp - 0x2224], 0
je 0x4049fc
xor eax, eax
lea ecx, [ebp - 0x2264]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
call fcn.00404375
test eax, eax
jne 0x404d2c
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2264]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4049f1
cmp eax, 2
jne 0x404d2c
lea ecx, [ebp - 0x2264]
call fcn.004044ce
push edi
mov ecx, ebx
call fcn.0040427c
jmp 0x404cd2
push 0x5c
pop edx
mov ecx, edi
call fcn.00403b84
test eax, eax
jne 0x404cfc
cmp dword [ebp + 0x10], eax
je 0x404aa5
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
push 0x2001f
push edi
push esi
call fcn.00404375
test eax, eax
je 0x404a6e
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x223c]
call fcn.00404375
test eax, eax
je 0x404a6e
sub esp, 0x14
lea ecx, [ebp - 0x223c]
push edi
push esi
call fcn.00403c23
test eax, eax
jne 0x404d51
push edi
mov ecx, ebx
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
push 0x3d
pop eax
cmp word [edi], ax
jne 0x404c83
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x223c]
push eax
call fcn.00403d9d
mov esi, eax
jmp 0x40488e
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x404ac7
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
call fcn.00404375
mov ebx, eax
jmp 0x404aca
push 2
pop ebx
push 1
pop eax
push 0xffffffffffffffff
test ebx, ebx
push edi
cmovne esi, eax
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.0040d0e9
push eax
call fcn.00404241
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040427c
mov esi, eax
test esi, esi
js 0x404d01
push 0x7b
pop eax
cmp word [edi], ax
jne 0x404b83
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x404b2b
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x404b83
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp - 0x223c]
push edi
call fcn.0040471c
mov esi, eax
test esi, esi
jns 0x404b6d
cmp dword [ebp + 0x14], 0
je 0x404d01
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
mov eax, dword [ebp - 0x2268]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x404cd8
test ebx, ebx
je 0x404baf
test eax, eax
jne 0x404cd8
mov ecx, ebx
call fcn.004045b8
mov esi, eax
jmp 0x404d01
test eax, eax
je 0x404bfa
push dword [ebp - 0x223c]
call fcn.00404497
test eax, eax
je 0x404bfa
lea eax, [ebp - 0x218]
push eax
call fcn.004042e3
test eax, eax
je 0x404cd8
cmp dword [ebp - 0x2224], 0
je 0x404cd8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x223c]
call fcn.004043d3
jmp 0x404cd8
push dword [ebp - 0x223c]
call fcn.00404497
lea ecx, [ebp - 0x223c]
mov ebx, eax
call fcn.004044ce
test eax, eax
jne 0x404d51
cmp dword [ebp - 0x2224], eax
je 0x404cd8
test ebx, ebx
jne 0x404cd8
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2258]
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
call fcn.0040453f
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
test eax, eax
jne 0x404d42
lea ecx, [ebp - 0x2258]
call fcn.004044ce
mov ebx, dword [ebp - 0x221c]
cmp dword [ebp + 0x10], 0
je 0x404cd8
push 0x7b
pop eax
cmp word [edi], ax
jne 0x404cd8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x404c96
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x404cdb
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x223c]
push edi
call fcn.0040471c
mov esi, eax
test esi, esi
js 0x404d01
push edi
mov ecx, ebx
call fcn.004045c6
mov esi, eax
test esi, esi
js 0x404d01
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x4047a9
jmp 0x404d01
lea ecx, [ebp - 0x2230]
jmp 0x404d3b
lea ecx, [ebp - 0x2230]
call fcn.004044ce
mov esi, 0x80020009
lea ecx, [ebp - 0x223c]
call fcn.004044ce
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.004095f3
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.004045b8
lea ecx, [ebp - 0x2264]
mov esi, eax
call fcn.004044ce
jmp 0x404d01
mov ecx, eax
call fcn.004045b8
lea ecx, [ebp - 0x2258]
jmp 0x404d39
mov ecx, eax
jmp 0x404ba3