Function at 0x408d78
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e204
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0041da10
mov eax, dword [0x42a008]
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.00408c2e
mov esi, eax
test esi, esi
js 0x409374
push 0x7d
pop eax
cmp word [ebx], ax
je 0x409374
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 0x408e32
test edi, edi
je 0x408ef6
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x408ef8
push 0x5c
pop edx
mov ecx, ebx
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
call fcn.0040835f
test eax, eax
jne 0x409364
push ebx
call fcn.004089b7
test eax, eax
je 0x408eab
mov eax, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2224]
push ebx
mov dword [ebp - 0x2224], eax
call fcn.004089e6
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
test edi, edi
je 0x408ee9
mov edi, dword [ebp - 0x2258]
mov ecx, edi
push ebx
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x40935c
push ebx
mov ecx, edi
call fcn.00408952
lea ecx, [ebp - 0x2224]
mov esi, eax
call fcn.00401e76
test esi, esi
js 0x409374
jmp 0x4092f6
lea ecx, [ebp - 0x2224]
call fcn.00401e76
jmp 0x408ef8
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2258]
test eax, eax
jne 0x408f26
push ebx
mov ecx, edi
mov dword [ebp - 0x2260], esi
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
push 0x427554
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409068
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
push ebx
mov ecx, edi
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x40936f
cmp dword [ebp + 0x10], 0
je 0x408fee
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.00408465
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 0x4093ac
mov byte [ebp - 4], al
call fcn.00401e76
jmp 0x4092f6
cmp dword [ebp + 0x14], 0
jne 0x40905b
cmp dword [ebp - 0x2260], 0
je 0x40905b
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.00401dff
test eax, eax
jne 0x40939d
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x223c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x409050
cmp eax, 2
jne 0x40939d
lea ecx, [ebp - 0x223c]
call fcn.00401e76
push ebx
mov ecx, edi
call fcn.00408952
jmp 0x409345
push 0x5c
pop edx
mov ecx, ebx
call fcn.0040835f
test eax, eax
jne 0x40936f
cmp dword [ebp + 0x10], eax
je 0x409104
mov esi, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
push 0x2001f
push ebx
push esi
call fcn.00401dff
test eax, eax
je 0x4090cd
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2254]
call fcn.00401dff
test eax, eax
je 0x4090cd
sub esp, 0x14
lea ecx, [ebp - 0x2254]
push ebx
push esi
call fcn.00408399
test eax, eax
jne 0x4093c2
push ebx
mov ecx, edi
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x4092f6
push ebx
xor eax, eax
mov ecx, edi
push eax
lea eax, [ebp - 0x2254]
push eax
call fcn.00408465
mov esi, eax
jmp 0x408edc
cmp dword [ebp + 0x14], 0
jne 0x409125
push 0x20019
push ebx
push dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
call fcn.00401dff
mov edi, eax
jmp 0x409128
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.00410d96
push eax
call fcn.004021f0
mov ecx, dword [ebp - 0x2258]
add esp, 0x14
push ebx
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00408952
mov esi, eax
test esi, esi
js 0x409374
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x4091ed
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x40918f
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x4091ed
push dword [ebp - 0x2264]
mov ecx, dword [ebp - 0x2258]
xor eax, eax
push eax
push dword [ebp - 0x2254]
push ebx
call fcn.00408d78
mov esi, eax
test esi, esi
jns 0x4091d7
cmp dword [ebp - 0x2264], 0
je 0x409374
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
cmp edi, 2
je 0x40934b
test edi, edi
je 0x409212
cmp dword [ebp + 0x14], 0
jne 0x40934b
mov ecx, edi
call fcn.00408c20
mov esi, eax
jmp 0x409374
cmp dword [ebp + 0x14], 0
je 0x40925f
push dword [ebp - 0x2254]
call fcn.00408b0a
test eax, eax
je 0x40925f
lea eax, [ebp - 0x218]
push eax
call fcn.004089b7
test eax, eax
je 0x40934b
cmp dword [ebp - 0x2260], 0
je 0x40934b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2254]
call fcn.004089e6
jmp 0x40934b
push dword [ebp - 0x2254]
call fcn.00408b0a
mov ecx, dword [ebp - 0x2254]
mov edi, eax
xor eax, eax
test ecx, ecx
je 0x409287
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 0x4093c2
cmp dword [ebp - 0x2260], ecx
je 0x40934b
test edi, edi
jne 0x40934b
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.00408ba7
xor ecx, ecx
mov dword [ebp - 0x2248], ecx
test eax, eax
jne 0x4093b3
lea ecx, [ebp - 0x2248]
call fcn.00401e76
mov edi, dword [ebp - 0x2258]
cmp dword [ebp + 0x10], 0
je 0x40934b
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x40934b
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x409309
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40934e
xor eax, eax
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x2254]
push ebx
call fcn.00408d78
mov esi, eax
test esi, esi
js 0x409374
push ebx
mov ecx, edi
call fcn.00408c2e
mov esi, eax
test esi, esi
js 0x409374
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [ebx], cx
jne 0x408e03
jmp 0x409374
lea ecx, [ebp - 0x2224]
jmp 0x4093ac
lea ecx, [ebp - 0x2224]
call fcn.00401e76
mov esi, 0x80020009
lea ecx, [ebp - 0x2254]
call fcn.00401e76
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.0040a3ad
leave
ret 0x10
mov ecx, eax
call fcn.00408c20
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.00401e76
jmp 0x409374
mov ecx, eax
call fcn.00408c20
lea ecx, [ebp - 0x2248]
jmp 0x4093aa
mov ecx, eax
jmp 0x409206