Function at 0x408048
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49aaed
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.0042a2f0
mov eax, dword [0x4cf094]
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 - 0x226c], ecx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x4086ac
push 0x7d
pop eax
cmp word [edi], ax
je 0x40869b
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2234], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408103
test esi, esi
je 0x4081cf
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4081d1
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.00407504
test eax, eax
jne 0x408696
push edi
call fcn.00407bfe
test eax, eax
je 0x408188
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push edi
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.00407cee
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
cmp dword [ebp - 0x2224], esi
je 0x4081c7
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
push edi
mov ecx, ebx
call fcn.00407b97
mov esi, eax
test esi, esi
js 0x40869b
xor ebx, ebx
mov dword [ebp - 0x223c], ebx
jmp 0x4085f5
mov dword [ebp - 0x223c], esi
jmp 0x4081d1
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4081fd
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2234], esi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
push 0x4b9a3c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408354
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x408696
cmp dword [ebp + 0x10], 0
je 0x4082b9
mov ecx, dword [ebp - 0x221c]
xor eax, eax
inc eax
xor ebx, ebx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x225c]
mov dword [ebp - 0x2258], ebx
push eax
mov dword [ebp - 0x2254], ebx
call fcn.00407713
mov esi, eax
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
test esi, esi
js 0x40869b
mov byte [ebp - 4], bl
mov dword [ebp - 0x2258], ebx
jmp 0x4085f5
cmp dword [ebp + 0x14], 0
jne 0x408339
cmp dword [ebp - 0x2234], 0
je 0x408339
xor esi, esi
lea ecx, [ebp - 0x2250]
push 0x20006
push esi
push dword [ebp - 0x2220]
mov dword [ebp - 0x2250], esi
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
call fcn.00407c90
test eax, eax
jne 0x408676
mov ebx, dword [ebp - 0x2250]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40831c
cmp eax, 2
jne 0x408666
test ebx, ebx
je 0x40832d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2250], esi
mov ebx, dword [ebp - 0x2230]
mov dword [ebp - 0x224c], esi
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407b97
mov esi, eax
test esi, esi
js 0x40869b
jmp 0x40854e
push 0x5c
pop edx
mov ecx, edi
call fcn.00407504
test eax, eax
jne 0x408696
cmp dword [ebp + 0x10], eax
je 0x4083fc
mov ebx, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push ebx
call fcn.00407c90
test eax, eax
je 0x4083b9
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2230]
call fcn.00407c90
test eax, eax
je 0x4083b9
sub esp, 0x14
lea ecx, [ebp - 0x2230]
push edi
push ebx
call fcn.004075a3
test eax, eax
jne 0x4084ff
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4083f5
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.00407713
mov esi, eax
test esi, esi
js 0x40869b
xor ebx, ebx
jmp 0x4085f5
cmp dword [ebp + 0x14], 0
jne 0x408421
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.00407c90
mov ebx, dword [ebp - 0x2230]
jmp 0x408424
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 fcn.0044bdd1
push eax
call fcn.00407b5c
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407b97
mov esi, eax
test esi, esi
js 0x40869b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4084ea
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x226c]
jne 0x408491
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x4084ea
push dword [ebp - 0x2244]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.00408048
mov esi, eax
test esi, esi
jns 0x4084d4
cmp dword [ebp - 0x2244], 0
je 0x40869b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
js 0x40869b
mov eax, dword [ebp - 0x2224]
cmp eax, 2
je 0x40854e
test eax, eax
je 0x40850d
cmp dword [ebp + 0x14], 0
jne 0x40854e
mov ecx, eax
call fcn.00407ee4
mov esi, eax
jmp 0x40869b
cmp dword [ebp + 0x14], 0
je 0x408562
push ebx
call fcn.00407dc3
test eax, eax
je 0x408562
lea eax, [ebp - 0x218]
push eax
call fcn.00407bfe
test eax, eax
je 0x40854e
cmp dword [ebp - 0x2234], 0
je 0x40854e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00407cee
mov ebx, dword [ebp - 0x2230]
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x4080ce
jmp 0x40869b
push ebx
call fcn.00407dc3
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x40858d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov ecx, dword [ebp - 0x2224]
mov dword [ebp - 0x2230], ebx
xor edx, edx
mov dword [ebp - 0x222c], edx
test eax, eax
jne 0x4084ff
cmp dword [ebp - 0x2234], edx
je 0x40854e
test ecx, ecx
jne 0x40854e
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2268], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2264], ebx
push eax
mov dword [ebp - 0x2260], ebx
call fcn.00407e6b
mov dword [ebp - 0x2268], ebx
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
test eax, eax
jne 0x4084ff
mov dword [ebp - 0x2264], ebx
cmp dword [ebp + 0x10], 0
je 0x408548
push 0x7b
pop eax
cmp word [edi], ax
jne 0x408548
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408610
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40865b
mov ecx, dword [ebp - 0x221c]
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x2230]
push ebx
push edi
call fcn.00408048
mov esi, eax
test esi, esi
js 0x40869b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407ef2
mov esi, eax
test esi, esi
jns 0x40854e
jmp 0x40869b
mov ebx, dword [ebp - 0x2230]
jmp 0x408551
mov ecx, eax
call fcn.00407ee4
mov esi, eax
test ebx, ebx
je 0x40869b
push ebx
jmp 0x40868e
mov ecx, eax
call fcn.00407ee4
cmp dword [ebp - 0x2250], 0
mov esi, eax
je 0x40869b
push dword [ebp - 0x2250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40869b
mov esi, 0x80020009
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x4086ac
push ecx
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.00428f9c
mov esp, ebp
pop ebp
ret 0x10