Function at 0x40f128
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c201
mov eax, dword fs:[0]
push eax
mov eax, 0x2258
call fcn.00423f50
mov eax, dword [0x46b880]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
xor eax, eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
mov dword [ebp - 4], eax
push edi
mov ecx, ebx
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
push 0x7d
pop eax
cmp word [edi], ax
je 0x40f6e0
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x44db70
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x221c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40f1d5
test esi, esi
je 0x40f2a5
push edi
mov ecx, ebx
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
cmp dword [ebp + 0x10], 0
je 0x40f2a5
xor eax, eax
push 0x5c
push edi
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
call fcn.0040f945
pop ecx
pop ecx
test eax, eax
jne 0x40f6d0
push edi
mov ecx, ebx
call fcn.0040df62
test eax, eax
je 0x40f25d
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
and dword [ebp - 0x2238], 0
and dword [ebp - 0x2234], 0
push edi
mov dword [ebp - 0x223c], eax
call fcn.0040ebec
xor eax, eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
cmp dword [ebp - 0x221c], 0
je 0x40f29a
push edi
mov ecx, ebx
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6c8
push edi
mov ecx, ebx
call fcn.0040f8b3
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.0040e001
test esi, esi
js 0x40f6e0
jmp 0x40f684
lea ecx, [ebp - 0x223c]
call fcn.0040e001
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f2cd
and dword [ebp - 0x2224], eax
mov ecx, ebx
push edi
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
push 0x44db68
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f3ff
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
push edi
mov ecx, ebx
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40f6db
cmp dword [ebp + 0x10], 0
je 0x40f385
and dword [ebp - 0x2248], 0
xor eax, eax
and dword [ebp - 0x2244], 0
inc eax
mov byte [ebp - 4], al
mov ecx, ebx
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x224c]
push eax
call fcn.0040d9ae
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
call fcn.0040e001
test esi, esi
js 0x40f6e0
mov byte [ebp - 4], 0
jmp 0x40f684
cmp dword [ebp + 0x14], 0
jne 0x40f3f2
cmp dword [ebp - 0x2224], 0
je 0x40f3f2
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.0040e940
test eax, eax
jne 0x40f70b
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2264]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40f3e7
cmp eax, 2
jne 0x40f70b
lea ecx, [ebp - 0x2264]
call fcn.0040e001
push edi
mov ecx, ebx
call fcn.0040f8b3
jmp 0x40f187
push 0x5c
push edi
call fcn.0040f945
pop ecx
pop ecx
test eax, eax
jne 0x40f6db
cmp dword [ebp + 0x10], eax
je 0x40f4a2
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push esi
call fcn.0040e940
test eax, eax
je 0x40f46c
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.0040e940
test eax, eax
je 0x40f46c
xor eax, eax
lea ecx, [ebp - 0x2230]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.0040e01b
test eax, eax
jne 0x40f588
push edi
mov ecx, ebx
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40f684
push edi
push 0
lea eax, [ebp - 0x2230]
mov ecx, ebx
push eax
call fcn.0040d9ae
mov esi, eax
jmp 0x40f28d
cmp dword [ebp + 0x14], 0
jne 0x40f4c1
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.0040e940
jmp 0x40f4c4
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [ebp - 0x221c], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp - 0x2240], ecx
call fcn.0042dfd8
push eax
call fcn.0040defb
add esp, 0x14
mov ecx, ebx
push edi
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
push edi
mov ecx, ebx
call fcn.0040f8b3
mov esi, eax
test esi, esi
js 0x40f6e0
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40f56b
push edi
call fcn.0042d325
pop ecx
cmp eax, 1
jne 0x40f56b
push dword [ebp - 0x2240]
mov ecx, ebx
push 0
push dword [ebp - 0x2230]
push edi
call fcn.0040f128
mov esi, eax
test esi, esi
jns 0x40f559
cmp dword [ebp - 0x2240], 0
je 0x40f6e0
push edi
mov ecx, ebx
call fcn.0040e7f0
mov esi, eax
test esi, esi
js 0x40f6e0
mov eax, dword [ebp - 0x221c]
cmp eax, 2
je 0x40f191
test eax, eax
je 0x40f596
cmp dword [ebp + 0x14], 0
jne 0x40f191
push eax
call fcn.0040df4d
pop ecx
mov esi, eax
jmp 0x40f6e0
cmp dword [ebp + 0x14], 0
je 0x40f5e7
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.0040e6d3
test eax, eax
je 0x40f5e7
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040df62
test eax, eax
je 0x40f191
cmp dword [ebp - 0x2224], 0
je 0x40f191
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0040ebec
jmp 0x40f191
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.0040e6d3
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x221c], eax
call fcn.0040e001
test eax, eax
jne 0x40f588
cmp dword [ebp - 0x2224], eax
je 0x40f191
cmp dword [ebp - 0x221c], eax
jne 0x40f191
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2258]
and dword [ebp - 0x2254], 0
and dword [ebp - 0x2250], 0
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040e1d6
mov dword [ebp - 0x221c], eax
lea ecx, [ebp - 0x2258]
xor eax, eax
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
call fcn.0040e001
mov eax, dword [ebp - 0x221c]
test eax, eax
jne 0x40f588
cmp dword [ebp + 0x10], 0
je 0x40f191
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40f191
push edi
call fcn.0042d325
pop ecx
cmp eax, 1
jne 0x40f191
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2230]
push edi
call fcn.0040f128
mov esi, eax
test esi, esi
js 0x40f6e0
jmp 0x40f17f
lea ecx, [ebp - 0x223c]
jmp 0x40f71a
lea ecx, [ebp - 0x223c]
call fcn.0040e001
mov esi, 0x80020009
lea ecx, [ebp - 0x2230]
call fcn.0040e001
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.00423dc5
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.0040df4d
pop ecx
mov esi, eax
lea ecx, [ebp - 0x2264]
call fcn.0040e001
jmp 0x40f6e0