Function at 0x40969f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412e65
mov eax, dword fs:[0]
push eax
mov eax, 0x2264
call fcn.00411f80
mov eax, dword [0x41b00c]
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 - 0x2224], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d22
jmp 0x409cd3
push str.Delete
push edi
mov dword [ebp - 0x2220], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x414a98
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2228], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409754
test esi, esi
je 0x409810
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x409812
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
call fcn.00408c10
test eax, eax
jne 0x409d12
push edi
call fcn.004091fb
test eax, eax
je 0x4097c7
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2254]
push edi
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], esi
call fcn.004084ed
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
cmp dword [ebp - 0x2228], esi
je 0x409808
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040925f
mov esi, eax
test esi, esi
js 0x409d17
xor eax, eax
mov dword [ebp - 0x2250], eax
jmp 0x409aa7
mov dword [ebp - 0x2250], esi
jmp 0x409812
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40983e
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2220], esi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
push 0x414a90
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409995
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409d12
cmp dword [ebp + 0x10], 0
je 0x4098fa
mov eax, dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2260], eax
xor eax, eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2260]
push eax
call fcn.00408dcf
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
test esi, esi
js 0x409d17
mov byte [ebp - 4], al
mov dword [ebp - 0x225c], eax
jmp 0x409aa7
cmp dword [ebp + 0x14], 0
jne 0x40997a
cmp dword [ebp - 0x2220], 0
je 0x40997a
xor eax, eax
lea ecx, [ebp - 0x2240]
push 0x20006
push eax
push dword [ebp - 0x2224]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
call fcn.004025f1
test eax, eax
jne 0x409ce1
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40995d
cmp eax, 2
jne 0x409ce1
test esi, esi
je 0x409972
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2240], eax
jmp 0x409974
xor eax, eax
mov dword [ebp - 0x223c], eax
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040925f
mov esi, eax
test esi, esi
js 0x409d17
jmp 0x409cd3
push 0x5c
pop edx
mov ecx, edi
call fcn.00408c10
test eax, eax
jne 0x409d12
cmp dword [ebp + 0x10], eax
je 0x409b02
mov ebx, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push ebx
call fcn.004025f1
test eax, eax
je 0x409a5d
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.004025f1
test eax, eax
je 0x409a5d
mov ecx, dword [ebp - 0x222c]
lea eax, [ebp - 0x2264]
push eax
xor esi, esi
lea eax, [ebp - 0x2220]
mov dword [ebp - 0x2220], esi
push eax
test ecx, ecx
je 0x409a12
sub esp, 0x14
push edi
push ebx
call fcn.0040816d
jmp 0x409a23
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409d01
mov eax, esi
cmp dword [ebp - 0x2234], eax
je 0x409a41
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2220]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], esi
test eax, eax
jne 0x409d07
jmp 0x409a63
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409aa7
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x2234]
push eax
call fcn.00408dcf
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x409d17
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409cd3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409ab8
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409cd3
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.0040969f
mov esi, eax
test esi, esi
js 0x409d17
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408c73
jmp 0x409986
cmp dword [ebp + 0x14], 0
jne 0x409b27
push 0x20019
push edi
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
call fcn.004025f1
mov ebx, dword [ebp - 0x2234]
jmp 0x409b2a
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x2228], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x2248], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.004023f7
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040925f
mov esi, eax
test esi, esi
js 0x409d17
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409bed
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409b96
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409bed
push dword [ebp - 0x2248]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.0040969f
mov esi, eax
test esi, esi
jns 0x409bd7
cmp dword [ebp - 0x2248], 0
je 0x409d17
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408c73
mov esi, eax
test esi, esi
js 0x409d17
mov eax, dword [ebp - 0x2228]
cmp eax, 2
je 0x409cd3
test eax, eax
je 0x409c0f
cmp dword [ebp + 0x14], 0
je 0x409d07
jmp 0x409cd3
cmp dword [ebp + 0x14], 0
je 0x409c5a
push ebx
call fcn.0040922a
test eax, eax
je 0x409c5a
lea eax, [ebp - 0x218]
push eax
call fcn.004091fb
test eax, eax
je 0x409cd3
cmp dword [ebp - 0x2220], 0
je 0x409cd3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.004084ed
mov ebx, dword [ebp - 0x2234]
jmp 0x409cd3
push ebx
call fcn.0040922a
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x2228], ecx
mov eax, edx
test ebx, ebx
je 0x409c87
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2228]
xor edx, edx
mov ebx, edx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], edx
test eax, eax
jne 0x409d07
cmp dword [ebp - 0x2220], eax
je 0x409cd3
test ecx, ecx
jne 0x409cd3
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2270]
mov dword [ebp - 0x2270], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x226c], edx
mov dword [ebp - 0x2268], edx
call fcn.00408408
xor ecx, ecx
mov dword [ebp - 0x2270], ecx
test eax, eax
jne 0x409d07
push 0x7d
pop eax
cmp word [edi], ax
jne 0x40971b
jmp 0x409d17
mov ecx, eax
call fcn.0040815f
cmp dword [ebp - 0x2240], 0
mov esi, eax
je 0x409d17
push dword [ebp - 0x2240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409d17
mov ebx, dword [ebp - 0x2234]
mov ecx, eax
call fcn.0040815f
mov esi, eax
jmp 0x409d17
mov esi, 0x80020009
test ebx, ebx
je 0x409d22
push ebx
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.00410c70
leave
ret 0x10