Function at 0x4126e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d156
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.004206e0
mov eax, dword [0x4550d8]
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.00411ae0
mov esi, eax
test esi, esi
js 0x412e22
cmp word [edi], 0x7d
je 0x412e15
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x2220], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4405ec
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x412799
test esi, esi
je 0x4128b7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
cmp dword [ebp + 0x10], 0
je 0x4128b7
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 0x412802
cmp ax, 0x5c
je 0x4127fa
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x4127e1
jmp 0x412802
test ecx, ecx
jne 0x412f4d
mov esi, 0x44069c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x412869
add esi, 4
cmp esi, 0x4406cc
jl 0x412807
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.00412010
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
cmp dword [ebp - 0x2224], 0
je 0x4128ad
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412f62
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00413150
mov esi, eax
test esi, esi
js 0x412f62
mov dword [ebp - 0x2240], 0
jmp 0x412c48
mov dword [ebp - 0x2240], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4128e3
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2220], eax
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
push 0x4405e4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412a5e
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
cmp word [edi], 0x3d
jne 0x412f58
cmp dword [ebp + 0x10], 0
je 0x4129b2
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.0040ff80
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x412f72
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x412c48
cmp dword [ebp + 0x14], 0
jne 0x412a43
cmp dword [ebp - 0x2220], 0
je 0x412a43
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.00411c80
test eax, eax
jne 0x412f82
mov esi, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x412a24
cmp eax, 2
jne 0x412f82
test esi, esi
je 0x412a39
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.00413150
mov esi, eax
test esi, esi
js 0x412e15
jmp 0x412f3e
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x412a89
cmp ax, 0x5c
je 0x412a81
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x412a68
jmp 0x412a89
test ecx, ecx
jne 0x412f58
cmp dword [ebp + 0x10], 0
je 0x412ca6
mov eax, dword [ebp - 0x222c]
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x412ac6
lea ecx, [ebp - 0x2220]
push ecx
push 0x2001f
push 0
push edi
push esi
mov ecx, eax
call fcn.00412300
jmp 0x412adc
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 0x412b09
test ebx, ebx
je 0x412aeb
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 0x412c07
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x412b36
lea ecx, [ebp - 0x2220]
push ecx
push 0x20019
push 0
push edi
push esi
mov ecx, eax
call fcn.00412300
jmp 0x412b4c
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 0x412b79
test ebx, ebx
je 0x412b5b
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 0x412c07
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x412bb3
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.00412190
jmp 0x412bd6
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 0x412e0a
test ebx, ebx
je 0x412be9
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 0x412e0a
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
cmp word [edi], 0x3d
jne 0x412c48
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2234]
push edi
push 0
push eax
call fcn.0040ff80
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x412e15
cmp word [edi], 0x7b
jne 0x412f3e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c57
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x412f3e
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004126e0
mov esi, eax
test esi, esi
js 0x412e15
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
jmp 0x412f3e
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x412d32
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2224], esi
test eax, eax
je 0x412cde
lea ecx, [ebp - 0x2224]
push ecx
push 0x20019
push esi
push edi
push dword [ebp - 0x2228]
mov ecx, eax
call fcn.00412300
jmp 0x412cf9
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 0x412d3d
mov dword [ebp - 0x2238], eax
test ebx, ebx
je 0x412d1a
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 0x412d3d
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.00428454
push eax
call fcn.00410590
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00413150
mov esi, eax
test esi, esi
js 0x412e15
cmp word [edi], 0x7b
jne 0x412ded
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412da3
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x412ded
push dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
push 0
push ebx
push edi
call fcn.004126e0
mov esi, eax
test esi, esi
jns 0x412ddb
cmp dword [ebp - 0x2224], 0
je 0x412e15
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00411ae0
mov esi, eax
test esi, esi
js 0x412e15
mov eax, dword [ebp - 0x2238]
cmp eax, 2
je 0x412f3e
test eax, eax
je 0x412e40
cmp dword [ebp + 0x14], 0
jne 0x412f3e
push eax
call fcn.00410650
mov esi, eax
add esp, 4
test ebx, ebx
je 0x412e20
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.004202ef
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x412e9a
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.004112c0
test eax, eax
je 0x412e9a
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x218]
push eax
call fcn.00410840
test eax, eax
je 0x412f3e
cmp dword [ebp - 0x2220], 0
je 0x412f3e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.00412010
mov ebx, dword [ebp - 0x2234]
jmp 0x412f3e
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.004112c0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x412ec9
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 0x412e0a
cmp dword [ebp - 0x2220], eax
je 0x412f3e
test ecx, ecx
jne 0x412f3e
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.00410ce0
mov dword [ebp - 0x2268], 0
mov dword [ebp - 0x2264], 0
mov dword [ebp - 0x2260], 0
test eax, eax
jne 0x412f9d
lea ecx, [ebp - 0x2268]
call fcn.0040f9b0
cmp word [edi], 0x7d
jne 0x412760
jmp 0x412e15
lea ecx, [ebp - 0x2244]
call fcn.0040f9b0
mov esi, 0x80020009
jmp 0x412e15
lea ecx, [ebp - 0x2244]
call fcn.0040f9b0
jmp 0x412e15
lea ecx, [ebp - 0x2250]
call fcn.0040f9b0
jmp 0x412e15
push eax
call fcn.00410650
add esp, 4
lea ecx, [ebp - 0x225c]
mov esi, eax
call fcn.0040f9b0
jmp 0x412e15
push eax
call fcn.00410650
add esp, 4
lea ecx, [ebp - 0x2268]
mov esi, eax
call fcn.0040f9b0
jmp 0x412e15