Function at 0x40ff60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624896
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.005109c0
mov eax, dword [0x6ba4f8]
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 - 0x2220], ecx
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x41075a
cmp word [edi], 0x7d
je 0x410747
nop word [eax + eax]
push str.Delete
push edi
mov dword [ebp - 0x2224], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x6a5398
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x410023
test ebx, ebx
je 0x410135
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
cmp dword [ebp + 0x10], 0
je 0x410135
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
test cx, cx
je 0x410091
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x410089
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x410070
jmp 0x410091
test eax, eax
jne 0x410737
mov esi, 0x6a5e5c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4100ee
add esi, 4
cmp esi, 0x6a5e8c
jl 0x410096
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push edi
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.0040eaa0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test ebx, ebx
je 0x41012b
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
push edi
mov ecx, ebx
call fcn.0040f9b0
mov esi, eax
test esi, esi
js 0x410747
mov dword [ebp - 0x223c], 0
jmp 0x410457
mov dword [ebp - 0x223c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x410163
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], eax
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
push 0x6a5390
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4102d8
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
push edi
mov ecx, ebx
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
cmp word [edi], 0x3d
jne 0x410737
cmp dword [ebp + 0x10], 0
je 0x410226
mov eax, dword [ebp - 0x2220]
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x224c], 0
push eax
mov dword [ebp - 0x2248], 0
call fcn.0040f480
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x410747
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x410457
cmp dword [ebp + 0x14], 0
jne 0x4102c1
cmp dword [ebp - 0x2224], 0
je 0x4102c1
push 0x20006
push 0
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
call fcn.0040e9f0
test eax, eax
jne 0x41071b
mov ebx, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41029c
cmp eax, 2
jne 0x410705
test ebx, ebx
je 0x4102b1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov ebx, dword [ebp - 0x221c]
mov dword [ebp - 0x2258], 0
push edi
mov ecx, ebx
call fcn.0040f9b0
mov esi, eax
test esi, esi
js 0x410747
jmp 0x4106f9
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x410305
mov edx, ecx
cmp dx, 0x5c
je 0x4102fd
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x4102e4
jmp 0x410305
test eax, eax
jne 0x410737
cmp dword [ebp + 0x10], 0
je 0x4104b2
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push esi
call fcn.0040e9f0
test eax, eax
je 0x410424
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2234]
call fcn.0040e9f0
test eax, eax
je 0x410424
mov esi, dword [ebp - 0x222c]
mov dword [ebp - 0x2224], 0
test esi, esi
je 0x4103bf
cmp dword [esi], 0
je 0x4103b2
push 0x6a5e8c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x410378
mov eax, 1
jmp 0x4103e7
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4103b8
push 0
push dword [esi]
lea ecx, [ebp - 0x2244]
push ecx
lea ecx, [ebp - 0x2224]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2220]
call eax
jmp 0x4103e7
cmp dword [esi + 4], 0
jne 0x4103bf
mov eax, 1
jmp 0x4103e7
lea eax, [ebp - 0x2244]
push eax
lea eax, [ebp - 0x2224]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41073e
mov ecx, dword [ebp - 0x2234]
test ecx, ecx
je 0x410400
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], 0
test eax, eax
jne 0x41073e
mov ebx, dword [ebp - 0x221c]
push edi
mov ecx, ebx
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
cmp word [edi], 0x3d
jne 0x410457
push edi
push 0
lea eax, [ebp - 0x2234]
mov ecx, ebx
push eax
call fcn.0040f480
mov esi, eax
test esi, esi
js 0x410747
cmp word [edi], 0x7b
jne 0x4106f9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410466
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4106f9
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2234]
push edi
call fcn.0040ff60
mov esi, eax
test esi, esi
js 0x410747
push edi
mov ecx, ebx
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
jmp 0x4106f9
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4104d4
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2234]
call fcn.0040e9f0
mov ebx, eax
jmp 0x4104d9
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00530389
push eax
call fcn.0040bf10
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f9b0
mov esi, eax
test esi, esi
js 0x410747
cmp word [edi], 0x7b
jne 0x410597
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410540
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x410597
push dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2234]
push edi
call fcn.0040ff60
mov esi, eax
test esi, esi
jns 0x410581
cmp dword [ebp - 0x2228], 0
je 0x410747
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f2c0
mov esi, eax
test esi, esi
js 0x410747
cmp ebx, 2
je 0x4106f9
test ebx, ebx
je 0x4105b5
cmp dword [ebp + 0x14], 0
jne 0x4106f9
mov ecx, ebx
jmp 0x410740
cmp dword [ebp + 0x14], 0
je 0x410647
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2228], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x410647
cmp dword [ebp - 0x2228], eax
jbe 0x410647
mov ebx, 0x6a5e5c
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4106f9
add ebx, 4
cmp ebx, 0x6a5e8c
jl 0x410601
cmp dword [ebp - 0x2224], 0
je 0x4106f9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.0040eaa0
jmp 0x4106f9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2228], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x410680
xor ebx, ebx
jmp 0x41068c
xor eax, eax
cmp eax, dword [ebp - 0x2228]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2234]
xor eax, eax
test ecx, ecx
je 0x4106a7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 0x2230], 0
test eax, eax
jne 0x41073e
cmp dword [ebp - 0x2224], eax
je 0x4106f9
test ebx, ebx
jne 0x4106f9
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
call fcn.0040e910
mov dword [ebp - 0x2268], ebx
test eax, eax
jne 0x41073e
cmp word [edi], 0x7d
jne 0x40fff0
jmp 0x410747
mov ecx, eax
call fcn.0040e710
mov esi, eax
test ebx, ebx
je 0x410747
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410747
mov ecx, eax
call fcn.0040e710
mov esi, eax
mov eax, dword [ebp - 0x225c]
test eax, eax
je 0x410747
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410747
mov esi, 0x80020009
jmp 0x410747
mov ecx, eax
call fcn.0040e710
mov esi, eax
mov eax, dword [ebp - 0x2234]
test eax, eax
je 0x410758
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 - 0x10]
xor ecx, ebp
call fcn.0050fa22
mov esp, ebp
pop ebp
ret 0x10