Function at 0x5bf280
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x5c]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 4]
push edx
or eax, 0x20019
mov dword [ebp - 0x58], ecx
push eax
push esi
push ecx
mov ecx, edi
mov dword [ebp - 0x5c], 0
call fcn.005bfaf0
test al, al
je 0x5bf85e
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
mov dword [ebp - 0x60], 0
je 0x5bf31f
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x60]
push ecx
or eax, 0x20019
mov ecx, edi
push eax
push esi
push dword [ebp - 0x58]
call fcn.005bfaf0
test al, al
jne 0x5bf3c3
xor al, al
jmp 0x5bf860
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x5bf318
mov eax, dword [edi + 4]
or eax, 0x2001f
cmp ecx, 0x80000001
jne 0x5bf39c
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x5bf318
mov ecx, dword [edi + 4]
mov eax, ecx
or eax, 0x2001f
or ecx, 0x20019
cmp byte [edi], 0
cmove ecx, eax
cmp dword [esi + 0x14], 7
jbe 0x5bf36a
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x60]
push eax
push 0
push ecx
push 0
push 0
push 0
push esi
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 0x54]
test eax, eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x5bf398
call eax
xor al, al
jmp 0x5bf860
call eax
jmp 0x5bf3c3
cmp dword [esi + 0x14], 7
jbe 0x5bf3a4
mov esi, dword [esi]
push 0
lea edx, [ebp - 0x60]
push edx
push 0
push eax
push 0
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5bf318
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x5bf318
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x6c]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x5bf40a
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5bf421
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0044e360
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x41], al
lea eax, [ebp - 0x41]
push eax
push 0x200
call fcn.004585f0
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
mov edi, dword [ebp - 0x50]
mov eax, esi
push ecx
sub eax, edi
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x68]
push edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push ecx
push 0
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x5bf501
test ecx, ecx
jne 0x5bf501
mov byte [ebp - 4], 1
test edi, edi
je 0x5bf4f8
mov ecx, dword [ebp - 0x48]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x5bf4d9
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf882
push ecx
push edi
call fcn.004c46ad
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x41], 1
jmp 0x5bf6e5
cmp ecx, 1
je 0x5bf519
cmp ecx, 2
je 0x5bf519
test ecx, ecx
je 0x5bf519
mov eax, 0x490
jmp 0x5bf695
cmp eax, 0xea
jne 0x5bf5b1
mov ecx, dword [ebp - 0x54]
cmp ecx, 1
jbe 0x5bf695
mov eax, esi
mov edx, edi
cmp edi, eax
cmovne esi, edi
cmove edx, eax
mov dword [ebp - 0x4c], esi
add ecx, 8
mov dword [ebp - 0x64], edx
sub edx, edi
mov byte [ebp - 0x41], 0
cmp ecx, edx
jae 0x5bf554
lea esi, [ecx + edi]
jmp 0x5bf58b
jbe 0x5bf58e
mov eax, dword [ebp - 0x48]
sub eax, edi
cmp ecx, eax
jbe 0x5bf574
lea eax, [ebp - 0x41]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.004585f0
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
jmp 0x5bf58e
mov esi, dword [ebp - 0x64]
sub ecx, edx
push ecx
push 0
push esi
mov dword [ebp - 0x58], ecx
call fcn.004cf790
add esp, 0xc
add esi, dword [ebp - 0x58]
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x54]
push ecx
push edi
lea ecx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x5bf697
mov byte [ebp - 0x41], al
cmp esi, dword [ebp - 0x48]
je 0x5bf5c9
mov byte [esi], al
inc esi
mov dword [ebp - 0x4c], esi
jmp 0x5bf5dc
lea eax, [ebp - 0x41]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.0045dae0
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x41], 0
cmp esi, dword [ebp - 0x48]
je 0x5bf5ee
mov byte [esi], 0
inc esi
mov dword [ebp - 0x4c], esi
jmp 0x5bf5fe
lea eax, [ebp - 0x41]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.0045dae0
mov edi, dword [ebp - 0x50]
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5bf603
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x5bf633
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
add esi, esi
push esi
push edi
push eax
call fcn.004cf210
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x5bf692
cmp esi, 0x7ffffffe
ja 0x5bf87d
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x5bf652
mov eax, 0x7ffffffe
jmp 0x5bf65c
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044e720
mov edi, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x64]
add esi, esi
push esi
mov dword [ebp - 0x14], eax
push dword [ebp - 0x50]
push edi
call fcn.004cf210
add esp, 0x14
mov dword [ebp - 0x28], edi
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
test eax, eax
sete byte [ebp - 0x41]
mov byte [ebp - 4], 1
test edi, edi
je 0x5bf6e5
mov ecx, dword [ebp - 0x48]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x5bf6c6
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf882
push ecx
push edi
call fcn.004c46ad
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x5bf723
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x5bf719
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf887
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp byte [ebp - 0x41], al
je 0x5bf81e
mov eax, dword [ebp - 0x70]
cmp byte [eax], 0
je 0x5bf7b6
mov byte [eax + 1], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x5bf78d
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x5bf783
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf88c
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov byte [ebp - 0x41], 1
push dword [ebp - 0x60]
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x41]
jmp 0x5bf860
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 7
jbe 0x5bf7c1
mov eax, dword [eax]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x5bf74c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x5bf814
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x5bf80a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf88c
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov byte [ebp - 0x41], al
jmp 0x5bf793
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x5bf78d
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x5bf783
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf88c
jmp 0x5bf783
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
ret 0xc
call fcn.0044c930
call fcn.004d91aa
call fcn.004d91aa
call fcn.004d91aa
int3