Function at 0x40957f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4147ec
mov eax, dword fs:[0]
push eax
mov eax, 0x2264
call fcn.004138f0
mov eax, dword [0x41d00c]
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.00408b53
mov esi, eax
test esi, esi
js 0x409c02
jmp 0x409bb3
push str.Delete
push edi
mov dword [ebp - 0x2220], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x416ad4
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2228], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409634
test esi, esi
je 0x4096f0
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4096f2
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
call fcn.00408af0
test eax, eax
jne 0x409bf2
push edi
call fcn.004090db
test eax, eax
je 0x4096a7
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2254]
push edi
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], esi
call fcn.004083cd
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
cmp dword [ebp - 0x2228], esi
je 0x4096e8
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040913f
mov esi, eax
test esi, esi
js 0x409bf7
xor eax, eax
mov dword [ebp - 0x2250], eax
jmp 0x409987
mov dword [ebp - 0x2250], esi
jmp 0x4096f2
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40971e
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2220], esi
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
push 0x416acc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409875
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409bf2
cmp dword [ebp + 0x10], 0
je 0x4097da
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.00408caf
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 0x409bf7
mov byte [ebp - 4], al
mov dword [ebp - 0x225c], eax
jmp 0x409987
cmp dword [ebp + 0x14], 0
jne 0x40985a
cmp dword [ebp - 0x2220], 0
je 0x40985a
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.00402601
test eax, eax
jne 0x409bc1
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40983d
cmp eax, 2
jne 0x409bc1
test esi, esi
je 0x409852
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2240], eax
jmp 0x409854
xor eax, eax
mov dword [ebp - 0x223c], eax
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040913f
mov esi, eax
test esi, esi
js 0x409bf7
jmp 0x409bb3
push 0x5c
pop edx
mov ecx, edi
call fcn.00408af0
test eax, eax
jne 0x409bf2
cmp dword [ebp + 0x10], eax
je 0x4099e2
mov ebx, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push ebx
call fcn.00402601
test eax, eax
je 0x40993d
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.00402601
test eax, eax
je 0x40993d
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 0x4098f2
sub esp, 0x14
push edi
push ebx
call fcn.00408050
jmp 0x409903
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 0x409be1
mov eax, esi
cmp dword [ebp - 0x2234], eax
je 0x409921
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 0x409be7
jmp 0x409943
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409987
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x2234]
push eax
call fcn.00408caf
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x409bf7
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409bb3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409998
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409bb3
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.0040957f
mov esi, eax
test esi, esi
js 0x409bf7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b53
jmp 0x409866
cmp dword [ebp + 0x14], 0
jne 0x409a07
push 0x20019
push edi
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
call fcn.00402601
mov ebx, dword [ebp - 0x2234]
jmp 0x409a0a
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.00402407
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040913f
mov esi, eax
test esi, esi
js 0x409bf7
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409acd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409a76
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409acd
push dword [ebp - 0x2248]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.0040957f
mov esi, eax
test esi, esi
jns 0x409ab7
cmp dword [ebp - 0x2248], 0
je 0x409bf7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408b53
mov esi, eax
test esi, esi
js 0x409bf7
mov eax, dword [ebp - 0x2228]
cmp eax, 2
je 0x409bb3
test eax, eax
je 0x409aef
cmp dword [ebp + 0x14], 0
je 0x409be7
jmp 0x409bb3
cmp dword [ebp + 0x14], 0
je 0x409b3a
push ebx
call fcn.0040910a
test eax, eax
je 0x409b3a
lea eax, [ebp - 0x218]
push eax
call fcn.004090db
test eax, eax
je 0x409bb3
cmp dword [ebp - 0x2220], 0
je 0x409bb3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.004083cd
mov ebx, dword [ebp - 0x2234]
jmp 0x409bb3
push ebx
call fcn.0040910a
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x2228], ecx
mov eax, edx
test ebx, ebx
je 0x409b67
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 0x409be7
cmp dword [ebp - 0x2220], eax
je 0x409bb3
test ecx, ecx
jne 0x409bb3
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.004082e8
xor ecx, ecx
mov dword [ebp - 0x2270], ecx
test eax, eax
jne 0x409be7
push 0x7d
pop eax
cmp word [edi], ax
jne 0x4095fb
jmp 0x409bf7
mov ecx, eax
call fcn.00408042
cmp dword [ebp - 0x2240], 0
mov esi, eax
je 0x409bf7
push dword [ebp - 0x2240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409bf7
mov ebx, dword [ebp - 0x2234]
mov ecx, eax
call fcn.00408042
mov esi, eax
jmp 0x409bf7
mov esi, 0x80020009
test ebx, ebx
je 0x409c02
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.004125d0
leave
ret 0x10