Function at 0x412910
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f6a6
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.00421da0
mov eax, dword [0x4570d8]
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]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
push edi
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413052
cmp word [edi], 0x7d
je 0x413045
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x2220], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x442550
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4129c9
test esi, esi
je 0x412ae7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
cmp dword [ebp + 0x10], 0
je 0x412ae7
movzx eax, word [edi]
mov ecx, edi
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x412a32
cmp ax, 0x5c
je 0x412a2a
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x412a11
jmp 0x412a32
test ecx, ecx
jne 0x41317d
mov esi, 0x442674
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x412a99
add esi, 4
cmp esi, 0x4426a4
jl 0x412a37
mov eax, dword [ebp - 0x2228]
lea ecx, [ebp - 0x2244]
push edi
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.00412240
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
cmp dword [ebp - 0x2224], 0
je 0x412add
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413192
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00413380
mov esi, eax
test esi, esi
js 0x413192
mov dword [ebp - 0x2240], 0
jmp 0x412e78
mov dword [ebp - 0x2240], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412b13
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2220], eax
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
push 0x442548
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412c8e
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
cmp word [edi], 0x3d
jne 0x413188
cmp dword [ebp + 0x10], 0
je 0x412be2
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2250]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
call fcn.004101b0
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x4131a2
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x412e78
cmp dword [ebp + 0x14], 0
jne 0x412c73
cmp dword [ebp - 0x2220], 0
je 0x412c73
push 0x20006
push 0
push dword [ebp - 0x2228]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
call fcn.00411eb0
test eax, eax
jne 0x4131b2
mov esi, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x412c54
cmp eax, 2
jne 0x4131b2
test esi, esi
je 0x412c69
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00413380
mov esi, eax
test esi, esi
js 0x413045
jmp 0x41316e
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x412cb9
cmp ax, 0x5c
je 0x412cb1
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x412c98
jmp 0x412cb9
test ecx, ecx
jne 0x413188
cmp dword [ebp + 0x10], 0
je 0x412ed6
mov eax, dword [ebp - 0x222c]
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x412cf6
lea ecx, [ebp - 0x2220]
push ecx
push 0x2001f
push 0
push edi
push esi
mov ecx, eax
call fcn.00412530
jmp 0x412d0c
lea eax, [ebp - 0x2220]
push eax
push 0x2001f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412d39
test ebx, ebx
je 0x412d1b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2220]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], 0
test eax, eax
je 0x412e37
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x412d66
lea ecx, [ebp - 0x2220]
push ecx
push 0x20019
push 0
push edi
push esi
mov ecx, eax
call fcn.00412530
jmp 0x412d7c
lea eax, [ebp - 0x2220]
push eax
push 0x20019
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412da9
test ebx, ebx
je 0x412d8b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2220]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], 0
test eax, eax
je 0x412e37
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x412de3
lea ecx, [ebp - 0x226c]
push ecx
lea ecx, [ebp - 0x2220]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push esi
mov ecx, eax
call fcn.004123c0
jmp 0x412e06
lea eax, [ebp - 0x226c]
push eax
lea eax, [ebp - 0x2220]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41303a
test ebx, ebx
je 0x412e19
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2220]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], 0
test eax, eax
jne 0x41303a
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
cmp word [edi], 0x3d
jne 0x412e78
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2234]
push edi
push 0
push eax
call fcn.004101b0
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x413045
cmp word [edi], 0x7b
jne 0x41316e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412e87
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x41316e
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00412910
mov esi, eax
test esi, esi
js 0x413045
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
jmp 0x41316e
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x412f62
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2224], esi
test eax, eax
je 0x412f0e
lea ecx, [ebp - 0x2224]
push ecx
push 0x20019
push esi
push edi
push dword [ebp - 0x2228]
mov ecx, eax
call fcn.00412530
jmp 0x412f29
lea eax, [ebp - 0x2224]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x2228]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2238], eax
test eax, eax
jne 0x412f6d
mov dword [ebp - 0x2238], eax
test ebx, ebx
je 0x412f4a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2238], eax
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], 0
jmp 0x412f6d
mov eax, 2
mov dword [ebp - 0x2238], eax
test eax, eax
mov ecx, esi
push 0xffffffffffffffff
mov eax, 1
cmovne ecx, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp - 0x2224], ecx
call fcn.00429bb3
push eax
call fcn.004107c0
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00413380
mov esi, eax
test esi, esi
js 0x413045
cmp word [edi], 0x7b
jne 0x41301d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412fd3
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x41301d
push dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
push 0
push ebx
push edi
call fcn.00412910
mov esi, eax
test esi, esi
jns 0x41300b
cmp dword [ebp - 0x2224], 0
je 0x413045
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411d10
mov esi, eax
test esi, esi
js 0x413045
mov eax, dword [ebp - 0x2238]
cmp eax, 2
je 0x41316e
test eax, eax
je 0x413070
cmp dword [ebp + 0x14], 0
jne 0x41316e
push eax
call fcn.00410880
mov esi, eax
add esp, 4
test ebx, ebx
je 0x413050
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.0042199f
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x4130ca
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.004114f0
test eax, eax
je 0x4130ca
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x218]
push eax
call fcn.00410a70
test eax, eax
je 0x41316e
cmp dword [ebp - 0x2220], 0
je 0x41316e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.00412240
mov ebx, dword [ebp - 0x2234]
jmp 0x41316e
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.004114f0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x4130f9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
xor ebx, ebx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], 0
test eax, eax
jne 0x41303a
cmp dword [ebp - 0x2220], eax
je 0x41316e
test ecx, ecx
jne 0x41316e
mov eax, dword [ebp - 0x2228]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2260], ecx
lea ecx, [ebp - 0x2268]
push eax
call fcn.00410f10
mov dword [ebp - 0x2268], 0
mov dword [ebp - 0x2264], 0
mov dword [ebp - 0x2260], 0
test eax, eax
jne 0x4131cd
lea ecx, [ebp - 0x2268]
call fcn.0040fbf0
cmp word [edi], 0x7d
jne 0x412990
jmp 0x413045
lea ecx, [ebp - 0x2244]
call fcn.0040fbf0
mov esi, 0x80020009
jmp 0x413045
lea ecx, [ebp - 0x2244]
call fcn.0040fbf0
jmp 0x413045
lea ecx, [ebp - 0x2250]
call fcn.0040fbf0
jmp 0x413045
push eax
call fcn.00410880
add esp, 4
lea ecx, [ebp - 0x225c]
mov esi, eax
call fcn.0040fbf0
jmp 0x413045
push eax
call fcn.00410880
add esp, 4
lea ecx, [ebp - 0x2268]
mov esi, eax
call fcn.0040fbf0
jmp 0x413045