Function at 0x40f210
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00439890
push 0xffffffffffffffff
push 0x4516ad
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2218]
mov ebx, dword [ebp + 0x2214]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov ecx, eax
push ebx
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
cmp word [ebx], 0x7d
je 0x40f9b1
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x18], 1
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 0x40f2d0
test edi, edi
je 0x40f3d0
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
cmp dword [ebp + 0x221c], 0
je 0x40f3d0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov ecx, ebx
movzx eax, word [ebx]
test ax, ax
je 0x40f338
mov edx, eax
cmp dx, 0x5c
je 0x40f330
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40f315
jmp 0x40f338
test ecx, ecx
jne 0x40f924
mov esi, 0x46613c
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40f38a
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x40f340
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.0040ed70
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x40f3c5
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f936
push ebx
mov ecx, edi
call fcn.0040ec00
mov esi, eax
test esi, esi
js 0x40f936
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x40f6a2
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x40f3f8
push ebx
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
push 0x466044
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f546
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
push ebx
mov ecx, edi
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
cmp word [ebx], 0x3d
jne 0x40f92f
cmp dword [ebp + 0x221c], 0
je 0x40f4b2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov ecx, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp]
push ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.0040e6f0
mov esi, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test esi, esi
js 0x40f943
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x40f6a2
cmp dword [ebp + 0x2220], 0
jne 0x40f52f
cmp dword [ebp - 0x18], 0
je 0x40f52f
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
push 0x20006
push 0
push dword [ebp - 0x14]
call fcn.0040ec80
test eax, eax
jne 0x40f978
mov edi, dword [ebp - 0x4c]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40f50f
cmp eax, 2
jne 0x40f950
mov byte [ebp - 4], 0
test edi, edi
je 0x40f525
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x48], 0
push ebx
mov ecx, edi
call fcn.0040ec00
mov esi, eax
test esi, esi
js 0x40f9b1
jmp 0x40f915
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x40f575
mov edx, eax
cmp dx, 0x5c
je 0x40f56d
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40f552
jmp 0x40f575
test ecx, ecx
jne 0x40f92f
cmp dword [ebp + 0x221c], 0
je 0x40f6fd
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push 0x2001f
push ebx
push esi
call fcn.0040ec80
test eax, eax
je 0x40f672
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040ec80
test eax, eax
je 0x40f672
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x40f617
cmp dword [esi], 0
je 0x40f60a
push 0x4659f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f9a3
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f610
push 0
push dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x40f636
cmp dword [esi + 4], 0
jne 0x40f617
mov eax, 1
jmp 0x40f636
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f9a8
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40f653
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
test eax, eax
jne 0x40f9a8
mov edi, dword [ebp - 0x10]
push ebx
mov ecx, edi
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
cmp word [ebx], 0x3d
jne 0x40f6a2
push ebx
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040e6f0
mov esi, eax
test esi, esi
js 0x40f9b1
cmp word [ebx], 0x7b
jne 0x40f915
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f6b1
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40f915
push 0
push dword [ebp + 0x221c]
mov ecx, edi
push dword [ebp - 0x28]
push ebx
call fcn.0040f210
mov esi, eax
test esi, esi
js 0x40f9b1
push ebx
mov ecx, edi
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
jmp 0x40f915
mov esi, dword [ebp + 0x2220]
test esi, esi
jne 0x40f71c
push 0x20019
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
call fcn.0040ec80
mov edi, eax
jmp 0x40f721
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.0044176a
push eax
call fcn.00403c00
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push ebx
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.0040ec00
mov esi, eax
test esi, esi
js 0x40f9b1
cmp word [ebx], 0x7b
jne 0x40f7c8
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f780
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40f7c8
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x28]
push ebx
call fcn.0040f210
mov esi, eax
test esi, esi
jns 0x40f7b5
cmp dword [ebp - 0x1c], 0
je 0x40f9b1
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.0040f060
mov esi, eax
test esi, esi
js 0x40f9b1
cmp edi, 2
je 0x40f915
test edi, edi
je 0x40f7e9
cmp dword [ebp + 0x2220], 0
jne 0x40f915
mov ecx, edi
jmp 0x40f9aa
cmp dword [ebp + 0x2220], 0
je 0x40f870
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40f870
cmp dword [ebp - 0x1c], eax
jbe 0x40f870
mov edi, 0x46613c
nop dword [eax + eax]
push dword [edi]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40f915
add edi, 4
cmp edi, str.RegOpenKeyTransactedW
jl 0x40f830
cmp dword [ebp - 0x18], 0
je 0x40f915
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ed70
jmp 0x40f915
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40f8a0
xor edi, edi
jmp 0x40f8a9
xor eax, eax
cmp eax, dword [ebp - 0x1c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x28]
xor eax, eax
test ecx, ecx
je 0x40f8be
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
test eax, eax
jne 0x40f9a8
cmp dword [ebp - 0x18], eax
je 0x40f915
test edi, edi
jne 0x40f915
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x2000]
push eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
call fcn.0040ef20
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
test eax, eax
jne 0x40f9fb
mov byte [ebp - 4], al
mov dword [ebp - 0x54], eax
cmp word [ebx], 0x7d
jne 0x40f2a0
jmp 0x40f9b1
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov esi, 0x80020009
jmp 0x40f9b1
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x40f9b1
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x40f9b1
mov ecx, eax
call fcn.0040f050
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x40f99a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x40f9b1
mov ecx, eax
call fcn.0040f050
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40f99a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x40f9b1
mov eax, 1
mov ecx, eax
call fcn.0040f050
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40f9cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov eax, esi
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x220c]
pop ebp
ret 0x10
mov ecx, eax
call fcn.0040f050
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x54], 0
jmp 0x40f9b1