Function at 0x499730
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5948c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5ea110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
push str.MasterPDF
lea ecx, [ebp - 0x14]
call fcn.004077e0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x18]
call fcn.0045e4e0
push 0
mov edx, str.SoftwareClasses.pdf
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00499af0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.004077e0
mov byte [ebp - 4], 2
mov ecx, esi
mov edx, dword [ebp - 0x18]
push str.previous.pdf
call fcn.00499af0
add esp, 4
lea ecx, [ebp - 0x24]
push eax
call fcn.004077e0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 0xc], 0
je 0x499a5a
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4997e4
push 0x80004005
call fcn.00407ba0
push eax
push ecx
call fcn.00560eb5
add esp, 8
test eax, eax
jne 0x499a5a
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [eax - 0xc], 0
je 0x499837
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x1c], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x499810
sub edx, dword [ebp - 0x1c]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.SoftwareClasses.pdf
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x499841
push 0
push str.SoftwareClasses.pdf
push esi
call edi
push str.ProgId
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.00499af0
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.004077e0
mov byte [ebp - 4], 4
push str.MasterPDF
push dword [ebp - 0x10]
call fcn.00560eb5
add esp, 8
test eax, eax
jne 0x49988a
push str.ProgId
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call edi
call fcn.00407fd0
mov ecx, eax
test ecx, ecx
jne 0x49989f
push 0x80004005
call fcn.00407ba0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str..exe
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push 0x5c2854
push eax
call fcn.0041ee80
push str.Application
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
mov ecx, SysReAllocStringLen
call fcn.00499af0
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x4998e5
xor ecx, ecx
jmp 0x4998ff
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4998f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00407620
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x49991a
push 0x80004005
call fcn.00407ba0
push esi
push dword [ebp - 0x10]
call fcn.00560eb5
add esp, 8
test eax, eax
jne 0x49993b
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocStringLen
call edi
mov edi, dword [ebp - 0x18]
mov edx, edi
mov ecx, dword [ebp - 0x20]
call fcn.00499c20
push edi
push dword [ebp - 0x20]
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call edi
push str.ProgId
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
mov ecx, SysReAllocStringLen
call fcn.00499af0
mov edx, eax
add esp, 4
test edx, edx
jne 0x499975
xor ecx, ecx
jmp 0x499990
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499980
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00407620
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4999ab
push 0x80004005
call fcn.00407ba0
push eax
push dword [ebp - 0x10]
call fcn.00560eb5
add esp, 8
test eax, eax
jne 0x499a1a
lea eax, [ebp - 0x1c]
push eax
push 0x40000
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x499a0e
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x3c]
push eax
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocStringLen
call edi
mov edi, 1
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x499a3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499a5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x499a5c
xor edi, edi
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499a7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499a98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499ab6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x499ad5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret