Function at 0x40fa20
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.004d2ca0
push 0xffffffffffffffff
push 0x4fba10
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x54e414]
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 edi, dword [ebp + 0x2214]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x4100a4
cmp word [edi], 0x7d
je 0x410094
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x528d30
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40fae0
test ebx, ebx
je 0x40fbc8
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
cmp dword [ebp + 0x221c], 0
je 0x40fbc8
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test cx, cx
je 0x40fb42
mov edx, ecx
cmp dx, 0x5c
je 0x40fb3a
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40fb21
jmp 0x40fb42
test eax, eax
jne 0x410084
mov esi, 0x5279c0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40fb8a
add esi, 4
cmp esi, 0x5279f0
jl 0x40fb47
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.0040e4d0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
test ebx, ebx
je 0x40fbc1
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
push edi
mov ecx, ebx
call fcn.0040f4b0
mov esi, eax
test esi, esi
js 0x410094
mov dword [ebp - 0x2c], 0
jmp 0x40fe73
mov dword [ebp - 0x2c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x10]
test eax, eax
jne 0x40fbf0
push edi
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
push 0x528d28
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40fd21
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
push edi
mov ecx, ebx
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
cmp word [edi], 0x3d
jne 0x410084
cmp dword [ebp + 0x221c], 0
je 0x40fc95
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 0x3c], 0
call fcn.0040ef70
mov esi, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
test esi, esi
js 0x410094
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], 0
jmp 0x40fe73
cmp dword [ebp + 0x2220], 0
jne 0x40fd0a
cmp dword [ebp - 0x18], 0
je 0x40fd0a
push 0x20006
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0040e420
test eax, eax
jne 0x41006b
mov ebx, dword [ebp - 0x50]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40fcee
cmp eax, 2
jne 0x410055
test ebx, ebx
je 0x40fd00
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x50], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], 0
push edi
mov ecx, ebx
call fcn.0040f4b0
mov esi, eax
test esi, esi
js 0x410094
jmp 0x410049
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x40fd51
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x40fd49
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40fd30
jmp 0x40fd51
test eax, eax
jne 0x410084
cmp dword [ebp + 0x221c], 0
je 0x40fece
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push 0x2001f
push edi
push esi
call fcn.0040e420
test eax, eax
je 0x40fe43
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x24]
call fcn.0040e420
test eax, eax
je 0x40fe43
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x40fdf6
cmp dword [esi], 0
je 0x40fde9
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40fdb8
mov eax, 1
jmp 0x40fe15
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fdef
push 0
push dword [esi]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x14]
call eax
jmp 0x40fe15
cmp dword [esi + 4], 0
jne 0x40fdf6
mov eax, 1
jmp 0x40fe15
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41008b
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40fe2b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x41008b
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
cmp word [edi], 0x3d
jne 0x40fe73
push edi
push 0
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.0040ef70
mov esi, eax
test esi, esi
js 0x410094
cmp word [edi], 0x7b
jne 0x410049
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe82
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x410049
push 0
push dword [ebp + 0x221c]
mov ecx, ebx
push dword [ebp - 0x24]
push edi
call fcn.0040fa20
mov esi, eax
test esi, esi
js 0x410094
push edi
mov ecx, ebx
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
jmp 0x410049
mov esi, dword [ebp + 0x2220]
test esi, esi
jne 0x40feed
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0040e420
mov ebx, eax
jmp 0x40fef2
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.004df888
push eax
call fcn.0040e050
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040f4b0
mov esi, eax
test esi, esi
js 0x410094
cmp word [edi], 0x7b
jne 0x40ff98
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ff50
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40ff98
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x24]
push edi
call fcn.0040fa20
mov esi, eax
test esi, esi
jns 0x40ff85
cmp dword [ebp - 0x38], 0
je 0x410094
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040edc0
mov esi, eax
test esi, esi
js 0x410094
cmp ebx, 2
je 0x410049
test ebx, ebx
je 0x40ffb9
cmp dword [ebp + 0x2220], 0
jne 0x410049
mov ecx, ebx
jmp 0x41008d
cmp dword [ebp + 0x2220], 0
mov ebx, dword [ebp - 0x24]
je 0x40fff6
push ebx
call fcn.0040f460
test eax, eax
je 0x40fff6
lea eax, [ebp + 0x2000]
push eax
call fcn.0040f420
test eax, eax
je 0x410049
cmp dword [ebp - 0x18], 0
je 0x410049
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e4d0
jmp 0x410049
push ebx
call fcn.0040f460
mov ecx, dword [ebp - 0x24]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x410013
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x41008b
cmp dword [ebp - 0x18], eax
je 0x410049
test ebx, ebx
jne 0x410049
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x2000]
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.0040e340
mov dword [ebp - 0x5c], ebx
test eax, eax
jne 0x41008b
cmp word [edi], 0x7d
jne 0x40fab0
jmp 0x410094
mov ecx, eax
call fcn.0040e140
mov esi, eax
test ebx, ebx
je 0x410094
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410094
mov ecx, eax
call fcn.0040e140
mov esi, eax
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x410094
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410094
mov esi, 0x80020009
jmp 0x410094
mov ecx, eax
call fcn.0040e140
mov esi, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4100a2
push eax
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 + 0x2208]
xor ecx, ebp
call fcn.004d1486
lea esp, [ebp + 0x220c]
pop ebp
ret 0x10