Function at 0x5d6837
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a65f
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.00628620
mov eax, dword [0x70d514]
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 - 0x2230], ecx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e98
jmp 0x5d6e49
push str.Delete
push edi
mov dword [ebp - 0x2220], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x669240
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2228], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x5d68e6
test esi, esi
je 0x5d69ab
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
cmp dword [ebp + 0x10], 0
je 0x5d69ab
and dword [ebp - 0x2250], 0
and dword [ebp - 0x2248], 0
push 0x5c
push edi
call fcn.005d749b
pop ecx
pop ecx
test eax, eax
jne 0x5d6e88
mov esi, dword [ebp - 0x221c]
mov ecx, esi
push edi
call fcn.005d5abe
test eax, eax
je 0x5d6965
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2250]
and dword [ebp - 0x224c], 0
push edi
mov dword [ebp - 0x2250], eax
call fcn.005d637f
and dword [ebp - 0x2250], 0
and dword [ebp - 0x2248], 0
cmp dword [ebp - 0x2228], 0
je 0x5d69a2
push edi
mov ecx, esi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d726c
mov esi, eax
test esi, esi
js 0x5d6e8d
and dword [ebp - 0x224c], 0
jmp 0x5d6c34
and dword [ebp - 0x224c], 0
jmp 0x5d69b1
mov esi, dword [ebp - 0x221c]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5d69d9
and dword [ebp - 0x2220], eax
mov ecx, esi
push edi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
push 0x669238
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5d6b2c
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
push 0x3d
pop eax
cmp word [edi], ax
jne 0x5d6e88
cmp dword [ebp + 0x10], 0
je 0x5d6a95
mov eax, dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
and dword [ebp - 0x2258], 0
and dword [ebp - 0x2254], 0
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x225c]
mov byte [ebp - 4], 1
push eax
call fcn.005d556e
mov esi, eax
xor eax, eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
test esi, esi
js 0x5d6e8d
mov byte [ebp - 4], al
mov dword [ebp - 0x2258], eax
jmp 0x5d6c34
cmp dword [ebp + 0x14], 0
jne 0x5d6b11
cmp dword [ebp - 0x2220], 0
je 0x5d6b11
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.005d60a2
test eax, eax
jne 0x5d6e57
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x5d6af8
cmp eax, 2
jne 0x5d6e57
test esi, esi
je 0x5d6b0a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x2240], 0
and dword [ebp - 0x223c], 0
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d726c
mov esi, eax
test esi, esi
js 0x5d6e8d
jmp 0x5d6e49
push 0x5c
push edi
call fcn.005d749b
pop ecx
pop ecx
test eax, eax
jne 0x5d6e88
cmp dword [ebp + 0x10], eax
je 0x5d6c7d
mov ebx, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
mov esi, 0x2001f
push esi
push edi
push ebx
call fcn.005d60a2
test eax, eax
je 0x5d6beb
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.005d60a2
test eax, eax
je 0x5d6beb
mov ecx, dword [ebp - 0x222c]
lea eax, [ebp - 0x2260]
push eax
xor edx, edx
lea eax, [ebp - 0x2220]
mov dword [ebp - 0x2220], edx
push eax
push edx
push esi
push edx
push edx
push edx
push edi
push ebx
test ecx, ecx
je 0x5d6bac
call fcn.005d646d
jmp 0x5d6bb2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5d6e77
cmp dword [ebp - 0x2234], eax
je 0x5d6bce
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x2230], 0
mov ebx, dword [ebp - 0x2220]
mov dword [ebp - 0x2234], ebx
test eax, eax
jne 0x5d6e7d
jmp 0x5d6bf1
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
push 0x3d
pop eax
cmp word [edi], ax
jne 0x5d6c34
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2234]
push edi
push 0
push eax
call fcn.005d556e
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x5d6e8d
push 0x7b
pop eax
cmp word [edi], ax
jne 0x5d6e49
push edi
call fcn.006342ab
pop ecx
cmp eax, 1
jne 0x5d6e49
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.005d6837
mov esi, eax
test esi, esi
js 0x5d6e8d
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d5f3d
jmp 0x5d6b1d
cmp dword [ebp + 0x14], 0
jne 0x5d6ca2
push 0x20019
push edi
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
call fcn.005d60a2
mov ebx, dword [ebp - 0x2234]
jmp 0x5d6ca5
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 - 0x2244], ecx
call fcn.006353d7
push eax
call fcn.005cdcb7
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d726c
mov esi, eax
test esi, esi
js 0x5d6e8d
push 0x7b
pop eax
cmp word [edi], ax
jne 0x5d6d55
push edi
call fcn.006342ab
pop ecx
cmp eax, 1
jne 0x5d6d55
push dword [ebp - 0x2244]
mov ecx, dword [ebp - 0x221c]
push 0
push ebx
push edi
call fcn.005d6837
mov esi, eax
test esi, esi
jns 0x5d6d3f
cmp dword [ebp - 0x2244], 0
je 0x5d6e8d
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.005d5f3d
mov esi, eax
test esi, esi
js 0x5d6e8d
mov eax, dword [ebp - 0x2228]
cmp eax, 2
je 0x5d6e49
test eax, eax
je 0x5d6d77
cmp dword [ebp + 0x14], 0
je 0x5d6e7d
jmp 0x5d6e49
cmp dword [ebp + 0x14], 0
je 0x5d6dce
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.005d5da5
test eax, eax
je 0x5d6dce
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x218]
push eax
call fcn.005d5abe
test eax, eax
je 0x5d6e49
cmp dword [ebp - 0x2220], 0
je 0x5d6e49
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.005d637f
mov ebx, dword [ebp - 0x2234]
jmp 0x5d6e49
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.005d5da5
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2228], ecx
test ebx, ebx
je 0x5d6dfd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2228]
xor ebx, ebx
mov dword [ebp - 0x2234], ebx
and dword [ebp - 0x2230], 0
test eax, eax
jne 0x5d6e7d
cmp dword [ebp - 0x2220], eax
je 0x5d6e49
test ecx, ecx
jne 0x5d6e49
mov eax, dword [ebp - 0x2224]
and dword [ebp - 0x2268], ecx
and dword [ebp - 0x2264], ecx
lea ecx, [ebp - 0x226c]
mov dword [ebp - 0x226c], eax
lea eax, [ebp - 0x218]
push eax
call fcn.005d5c2a
and dword [ebp - 0x226c], 0
test eax, eax
jne 0x5d6e7d
push 0x7d
pop eax
cmp word [edi], ax
jne 0x5d68ad
jmp 0x5d6e8d
push eax
call fcn.005d5a8b
cmp dword [ebp - 0x2240], 0
mov esi, eax
pop ecx
je 0x5d6e8d
push dword [ebp - 0x2240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5d6e8d
mov ebx, dword [ebp - 0x2234]
push eax
call fcn.005d5a8b
pop ecx
mov esi, eax
jmp 0x5d6e8d
mov esi, 0x80020009
test ebx, ebx
je 0x5d6e98
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.006284fa
leave
ret 0x10