Function at 0x5e6f50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6418a0
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x6ccc30]
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
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 0x654], 0
push 0
push eax
mov dword [ebp - 0x650], 0
call fcn.0061e8c0
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 0x630], 0x208
push 0
push eax
call fcn.0061e8c0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfOpenWithList
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.005cfe48
add esp, 0x24
lea eax, [ebp - 0x650]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5e702f
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x650b3c
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5e7036
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x5e72eb
push 0xc
xor eax, eax
mov dword [ebp - 0x638], 0
push 0x6508dc
lea ecx, [ebp - 0x648]
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
call fcn.005d2810
mov eax, dword [ebp - 0x630]
xor edi, edi
mov ebx, dword [ebp - 0x648]
shr eax, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x658], edi
sub eax, 1
je 0x5e7193
mov esi, dword [ebp - 0x638]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0061e8c0
mov ax, word [ebp + edi*2 - 0x218]
add esp, 0xc
mov dword [ebp - 0x62c], 0
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
lea eax, [ebp - 0x62c]
push eax
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5e72bd
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e7100
sub ecx, edx
lea ebx, [ebp - 0x648]
sar ecx, 1
cmp dword [ebp - 0x634], 8
cmovae ebx, dword [ebp - 0x648]
cmp esi, ecx
jne 0x5e7175
mov ecx, esi
lea eax, [ebp - 0x420]
test ecx, ecx
je 0x5e71ea
movzx edx, word [ebx]
movzx esi, word [ebp - 0x420]
cmp dx, si
jb 0x5e716f
mov edi, eax
sub ebx, edi
mov edi, dword [ebp - 0x658]
cmp dx, si
ja 0x5e716f
cmp ecx, 1
je 0x5e71ea
movzx edx, word [ebx + eax + 2]
add eax, 2
dec ecx
movzx esi, word [eax]
cmp dx, si
jae 0x5e7153
mov esi, dword [ebp - 0x638]
mov eax, dword [ebp - 0x630]
inc edi
shr eax, 1
dec eax
mov dword [ebp - 0x658], edi
cmp edi, eax
jb 0x5e7091
mov ebx, dword [ebp - 0x648]
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x634]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x5e72e5
lea ecx, [eax*2 + 2]
mov eax, ebx
mov dword [ebp - 4], 2
cmp ecx, 0x1000
jb 0x5e72db
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e7307
jmp 0x5e72db
movzx ecx, word [ebp + edi*2 - 0x218]
test edi, edi
jle 0x5e7215
nop word [eax + eax]
mov ax, word [ebp + edi*2 - 0x21a]
mov word [ebp + edi*2 - 0x218], ax
dec edi
test edi, edi
jg 0x5e7200
mov word [ebp - 0x218], cx
test cx, cx
je 0x5e718d
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0
push eax
push 2
push 0
lea eax, [ebp - 0x628]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5e718d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e7260
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.MRUList
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x654]
test eax, eax
push dword [ebp - 0x62c]
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x654], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5e718d
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x648]
mov byte [ebp - 0x654], 0
jmp 0x5e719f
push ecx
push ebx
call fcn.005d319e
add esp, 8
mov al, byte [ebp - 0x654]
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.005ce525
mov esp, ebp
pop ebp
ret
call fcn.006207e0
int3