Function at 0x4095d3
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413093
mov eax, dword fs:[0]
push eax
mov eax, 0x2264
call fcn.00411ef0
mov eax, dword [0x41a00c]
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.00408b94
mov esi, eax
test esi, esi
js 0x409c56
jmp 0x409c07
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 0x409688
test esi, esi
je 0x409744
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x409746
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
call fcn.00408b10
test eax, eax
jne 0x409c46
push edi
call fcn.0040912f
test eax, eax
je 0x4096fb
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2254]
push edi
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], esi
call fcn.0040846d
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
cmp dword [ebp - 0x2228], esi
je 0x40973c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409193
mov esi, eax
test esi, esi
js 0x409c4b
xor eax, eax
mov dword [ebp - 0x2250], eax
jmp 0x4099db
mov dword [ebp - 0x2250], esi
jmp 0x409746
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409772
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2220], esi
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
push 0x414a90
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4098c9
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409c46
cmp dword [ebp + 0x10], 0
je 0x40982e
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.00408cdf
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 0x409c4b
mov byte [ebp - 4], al
mov dword [ebp - 0x225c], eax
jmp 0x4099db
cmp dword [ebp + 0x14], 0
jne 0x4098ae
cmp dword [ebp - 0x2220], 0
je 0x4098ae
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.004025d1
test eax, eax
jne 0x409c15
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x409891
cmp eax, 2
jne 0x409c15
test esi, esi
je 0x4098a6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2240], eax
jmp 0x4098a8
xor eax, eax
mov dword [ebp - 0x223c], eax
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409193
mov esi, eax
test esi, esi
js 0x409c4b
jmp 0x409c07
push 0x5c
pop edx
mov ecx, edi
call fcn.00408b10
test eax, eax
jne 0x409c46
cmp dword [ebp + 0x10], eax
je 0x409a36
mov ebx, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push ebx
call fcn.004025d1
test eax, eax
je 0x409991
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.004025d1
test eax, eax
je 0x409991
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 0x409946
sub esp, 0x14
push edi
push ebx
call fcn.004080f4
jmp 0x409957
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 0x409c35
mov eax, esi
cmp dword [ebp - 0x2234], eax
je 0x409975
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 0x409c3b
jmp 0x409997
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4099db
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x2234]
push eax
call fcn.00408cdf
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x409c4b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409c07
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x4099ec
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409c07
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004095d3
mov esi, eax
test esi, esi
js 0x409c4b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b94
jmp 0x4098ba
cmp dword [ebp + 0x14], 0
jne 0x409a5b
push 0x20019
push edi
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
call fcn.004025d1
mov ebx, dword [ebp - 0x2234]
jmp 0x409a5e
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.004023d7
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409193
mov esi, eax
test esi, esi
js 0x409c4b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409b21
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409aca
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409b21
push dword [ebp - 0x2248]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.004095d3
mov esi, eax
test esi, esi
jns 0x409b0b
cmp dword [ebp - 0x2248], 0
je 0x409c4b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b94
mov esi, eax
test esi, esi
js 0x409c4b
mov eax, dword [ebp - 0x2228]
cmp eax, 2
je 0x409c07
test eax, eax
je 0x409b43
cmp dword [ebp + 0x14], 0
je 0x409c3b
jmp 0x409c07
cmp dword [ebp + 0x14], 0
je 0x409b8e
push ebx
call fcn.0040915e
test eax, eax
je 0x409b8e
lea eax, [ebp - 0x218]
push eax
call fcn.0040912f
test eax, eax
je 0x409c07
cmp dword [ebp - 0x2220], 0
je 0x409c07
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.0040846d
mov ebx, dword [ebp - 0x2234]
jmp 0x409c07
push ebx
call fcn.0040915e
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x2228], ecx
mov eax, edx
test ebx, ebx
je 0x409bbb
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 0x409c3b
cmp dword [ebp - 0x2220], eax
je 0x409c07
test ecx, ecx
jne 0x409c07
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.00408388
xor ecx, ecx
mov dword [ebp - 0x2270], ecx
test eax, eax
jne 0x409c3b
push 0x7d
pop eax
cmp word [edi], ax
jne 0x40964f
jmp 0x409c4b
mov ecx, eax
call fcn.004080e6
cmp dword [ebp - 0x2240], 0
mov esi, eax
je 0x409c4b
push dword [ebp - 0x2240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409c4b
mov ebx, dword [ebp - 0x2234]
mov ecx, eax
call fcn.004080e6
mov esi, eax
jmp 0x409c4b
mov esi, 0x80020009
test ebx, ebx
je 0x409c56
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.00410bc0
leave
ret 0x10