Function at 0x409b5d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ed02
mov eax, dword fs:[0]
push eax
mov eax, 0x2264
call fcn.0042ca10
mov eax, dword [0x43d00c]
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.00409133
mov esi, eax
test esi, esi
js 0x40a1df
jmp 0x40a190
push str.Delete
push edi
mov dword [ebp - 0x2220], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4364f0
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2228], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409c12
test esi, esi
je 0x409cce
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x409cd0
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
call fcn.004090d0
test eax, eax
jne 0x40a1cf
push edi
call fcn.004096bb
test eax, eax
je 0x409c85
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2254]
push edi
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], esi
call fcn.004089ad
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
cmp dword [ebp - 0x2228], esi
je 0x409cc6
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040971f
mov esi, eax
test esi, esi
js 0x40a1d4
xor eax, eax
mov dword [ebp - 0x2250], eax
jmp 0x409f65
mov dword [ebp - 0x2250], esi
jmp 0x409cd0
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409cfc
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2220], esi
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
push 0x4364e8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409e53
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40a1cf
cmp dword [ebp + 0x10], 0
je 0x409db8
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.0040928f
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 0x40a1d4
mov byte [ebp - 4], al
mov dword [ebp - 0x225c], eax
jmp 0x409f65
cmp dword [ebp + 0x14], 0
jne 0x409e38
cmp dword [ebp - 0x2220], 0
je 0x409e38
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.004026e2
test eax, eax
jne 0x40a19e
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x409e1b
cmp eax, 2
jne 0x40a19e
test esi, esi
je 0x409e30
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2240], eax
jmp 0x409e32
xor eax, eax
mov dword [ebp - 0x223c], eax
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040971f
mov esi, eax
test esi, esi
js 0x40a1d4
jmp 0x40a190
push 0x5c
pop edx
mov ecx, edi
call fcn.004090d0
test eax, eax
jne 0x40a1cf
cmp dword [ebp + 0x10], eax
je 0x409fc0
mov ebx, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push ebx
call fcn.004026e2
test eax, eax
je 0x409f1b
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.004026e2
test eax, eax
je 0x409f1b
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 0x409ed0
sub esp, 0x14
push edi
push ebx
call fcn.00408638
jmp 0x409ee1
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 0x40a1be
mov eax, esi
cmp dword [ebp - 0x2234], eax
je 0x409eff
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 0x40a1c4
jmp 0x409f21
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409f65
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x2234]
push eax
call fcn.0040928f
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x40a1d4
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40a190
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409f76
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40a190
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00409b5d
mov esi, eax
test esi, esi
js 0x40a1d4
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409133
jmp 0x409e44
cmp dword [ebp + 0x14], 0
jne 0x409fe5
push 0x20019
push edi
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
call fcn.004026e2
mov ebx, dword [ebp - 0x2234]
jmp 0x409fe8
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 fcn.0041ba76
push eax
call fcn.004024f0
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040971f
mov esi, eax
test esi, esi
js 0x40a1d4
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40a0aa
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x40a053
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40a0aa
push dword [ebp - 0x2248]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.00409b5d
mov esi, eax
test esi, esi
jns 0x40a094
cmp dword [ebp - 0x2248], 0
je 0x40a1d4
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409133
mov esi, eax
test esi, esi
js 0x40a1d4
mov eax, dword [ebp - 0x2228]
cmp eax, 2
je 0x40a190
test eax, eax
je 0x40a0cc
cmp dword [ebp + 0x14], 0
je 0x40a1c4
jmp 0x40a190
cmp dword [ebp + 0x14], 0
je 0x40a117
push ebx
call fcn.004096ea
test eax, eax
je 0x40a117
lea eax, [ebp - 0x218]
push eax
call fcn.004096bb
test eax, eax
je 0x40a190
cmp dword [ebp - 0x2220], 0
je 0x40a190
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.004089ad
mov ebx, dword [ebp - 0x2234]
jmp 0x40a190
push ebx
call fcn.004096ea
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x2228], ecx
mov eax, edx
test ebx, ebx
je 0x40a144
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 0x40a1c4
cmp dword [ebp - 0x2220], eax
je 0x40a190
test ecx, ecx
jne 0x40a190
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.004088c8
xor ecx, ecx
mov dword [ebp - 0x2270], ecx
test eax, eax
jne 0x40a1c4
push 0x7d
pop eax
cmp word [edi], ax
jne 0x409bd9
jmp 0x40a1d4
mov ecx, eax
call fcn.0040862a
cmp dword [ebp - 0x2240], 0
mov esi, eax
je 0x40a1d4
push dword [ebp - 0x2240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a1d4
mov ebx, dword [ebp - 0x2234]
mov ecx, eax
call fcn.0040862a
mov esi, eax
jmp 0x40a1d4
mov esi, 0x80020009
test ebx, ebx
je 0x40a1df
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.00412c09
leave
ret 0x10