Function at 0x408d27
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d704
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0041cf10
mov eax, dword [0x429008]
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 dword [ebp - 0x2258], ecx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x2254]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x225c], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x2268], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
push ebx
mov dword [ebp - 4], eax
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
push 0x7d
pop eax
cmp word [ebx], ax
je 0x409323
xor eax, eax
inc eax
push str.Delete
push ebx
mov dword [ebp - 0x2260], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408de1
test edi, edi
je 0x408ea5
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x408ea7
push 0x5c
pop edx
mov ecx, ebx
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
call fcn.0040830e
test eax, eax
jne 0x409313
push ebx
call fcn.00408966
test eax, eax
je 0x408e5a
mov eax, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2224]
push ebx
mov dword [ebp - 0x2224], eax
call fcn.00408995
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
test edi, edi
je 0x408e98
mov edi, dword [ebp - 0x2258]
mov ecx, edi
push ebx
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x40930b
push ebx
mov ecx, edi
call fcn.00408901
lea ecx, [ebp - 0x2224]
mov esi, eax
call fcn.00401e25
test esi, esi
js 0x409323
jmp 0x4092a5
lea ecx, [ebp - 0x2224]
call fcn.00401e25
jmp 0x408ea7
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2258]
test eax, eax
jne 0x408ed5
push ebx
mov ecx, edi
mov dword [ebp - 0x2260], esi
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
push 0x42651c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409017
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
push ebx
mov ecx, edi
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x40931e
cmp dword [ebp + 0x10], 0
je 0x408f9d
xor eax, eax
lea edi, [ebp - 0x2230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x225c]
xor ecx, ecx
mov edi, dword [ebp - 0x2258]
inc ecx
mov byte [ebp - 4], cl
mov ecx, edi
mov dword [ebp - 0x2230], eax
xor eax, eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.00408414
mov esi, eax
lea ecx, [ebp - 0x2230]
xor eax, eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
test esi, esi
js 0x40935b
mov byte [ebp - 4], al
call fcn.00401e25
jmp 0x4092a5
cmp dword [ebp + 0x14], 0
jne 0x40900a
cmp dword [ebp - 0x2260], 0
je 0x40900a
xor eax, eax
lea ecx, [ebp - 0x223c]
push 0x20006
push eax
push dword [ebp - 0x225c]
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
call fcn.00401dae
test eax, eax
jne 0x40934c
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x223c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x408fff
cmp eax, 2
jne 0x40934c
lea ecx, [ebp - 0x223c]
call fcn.00401e25
push ebx
mov ecx, edi
call fcn.00408901
jmp 0x4092f4
push 0x5c
pop edx
mov ecx, ebx
call fcn.0040830e
test eax, eax
jne 0x40931e
cmp dword [ebp + 0x10], eax
je 0x4090b3
mov esi, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
push 0x2001f
push ebx
push esi
call fcn.00401dae
test eax, eax
je 0x40907c
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2254]
call fcn.00401dae
test eax, eax
je 0x40907c
sub esp, 0x14
lea ecx, [ebp - 0x2254]
push ebx
push esi
call fcn.00408348
test eax, eax
jne 0x409371
push ebx
mov ecx, edi
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x4092a5
push ebx
xor eax, eax
mov ecx, edi
push eax
lea eax, [ebp - 0x2254]
push eax
call fcn.00408414
mov esi, eax
jmp 0x408e8b
cmp dword [ebp + 0x14], 0
jne 0x4090d4
push 0x20019
push ebx
push dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
call fcn.00401dae
mov edi, eax
jmp 0x4090d7
push 2
pop edi
mov eax, dword [ebp + 0x14]
test edi, edi
push 1
pop ecx
push 0xffffffffffffffff
cmovne eax, ecx
push ebx
mov dword [ebp - 0x2264], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00410a0c
push eax
call fcn.0040219f
mov ecx, dword [ebp - 0x2258]
add esp, 0x14
push ebx
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00408901
mov esi, eax
test esi, esi
js 0x409323
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x40919c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x40913e
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40919c
push dword [ebp - 0x2264]
mov ecx, dword [ebp - 0x2258]
xor eax, eax
push eax
push dword [ebp - 0x2254]
push ebx
call fcn.00408d27
mov esi, eax
test esi, esi
jns 0x409186
cmp dword [ebp - 0x2264], 0
je 0x409323
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
cmp edi, 2
je 0x4092fa
test edi, edi
je 0x4091c1
cmp dword [ebp + 0x14], 0
jne 0x4092fa
mov ecx, edi
call fcn.00408bcf
mov esi, eax
jmp 0x409323
cmp dword [ebp + 0x14], 0
je 0x40920e
push dword [ebp - 0x2254]
call fcn.00408ab9
test eax, eax
je 0x40920e
lea eax, [ebp - 0x218]
push eax
call fcn.00408966
test eax, eax
je 0x4092fa
cmp dword [ebp - 0x2260], 0
je 0x4092fa
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2254]
call fcn.00408995
jmp 0x4092fa
push dword [ebp - 0x2254]
call fcn.00408ab9
mov ecx, dword [ebp - 0x2254]
mov edi, eax
xor eax, eax
test ecx, ecx
je 0x409236
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2254], ecx
xor ecx, ecx
mov dword [ebp - 0x2250], ecx
test eax, eax
jne 0x409371
cmp dword [ebp - 0x2260], ecx
je 0x4092fa
test edi, edi
jne 0x4092fa
mov eax, dword [ebp - 0x225c]
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x2240], ecx
lea ecx, [ebp - 0x2248]
push eax
call fcn.00408b56
xor ecx, ecx
mov dword [ebp - 0x2248], ecx
test eax, eax
jne 0x409362
lea ecx, [ebp - 0x2248]
call fcn.00401e25
mov edi, dword [ebp - 0x2258]
cmp dword [ebp + 0x10], 0
je 0x4092fa
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x4092fa
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x4092b8
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x4092fd
xor eax, eax
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x2254]
push ebx
call fcn.00408d27
mov esi, eax
test esi, esi
js 0x409323
push ebx
mov ecx, edi
call fcn.00408bdd
mov esi, eax
test esi, esi
js 0x409323
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [ebx], cx
jne 0x408db2
jmp 0x409323
lea ecx, [ebp - 0x2224]
jmp 0x40935b
lea ecx, [ebp - 0x2224]
call fcn.00401e25
mov esi, 0x80020009
lea ecx, [ebp - 0x2254]
call fcn.00401e25
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.0040a35c
leave
ret 0x10
mov ecx, eax
call fcn.00408bcf
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.00401e25
jmp 0x409323
mov ecx, eax
call fcn.00408bcf
lea ecx, [ebp - 0x2248]
jmp 0x409359
mov ecx, eax
jmp 0x4091b5