Function at 0x473070
Capabilities:
Check if file exists
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8230
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6679c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x4730b9
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x4730e2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406c90
jmp 0x473124
lea ecx, [ebp - 0x2c]
call fcn.00471ab0
push str.MasterOFD
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x24]
push str._s_s.exe
push eax
call fcn.004083c0
mov byte [ebp - 4], 1
add esp, 0x10
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x473124
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x24]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x473139
xor edi, edi
jmp 0x4735e7
push str.MasterOFD
lea ecx, [ebp - 0x20]
call fcn.00406540
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x18]
call fcn.0046f460
add esp, 4
mov byte [ebp - 4], 4
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x473177
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 0
mov edx, str.SoftwareClasses.pdf
mov byte [ebp - 4], 5
mov ecx, edi
call fcn.00473d40
mov edx, eax
add esp, 4
test edx, edx
jne 0x4731a1
xor ecx, ecx
jmp 0x4731b5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4731a6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407470
mov edi, dword [ebp - 0x2c]
cmp dword [edi - 0xc], 0
je 0x473217
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4731d9
push 0x80004005
call fcn.004024f0
push eax
push edi
call fcn.005ad0ff
add esp, 8
test eax, eax
je 0x473217
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4731f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push str.previous.pdf
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x18
push str.PDF_Document
push 1
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x473243
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push str._s_1
push eax
call fcn.004083c0
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
push str.DefaultIcon
call fcn.004062d0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x1c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x473287
sub edx, dword [ebp - 0x1c]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4732c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._shell
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.004062d0
add esp, 4
push 8
push str.open
push 1
push 0
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x473309
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x47331e
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push str.__s_____1____
push eax
call fcn.004083c0
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x38]
push str._shellopencommand
call fcn.004062d0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x34], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x473362
sub edx, dword [ebp - 0x34]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x38]
test eax, eax
mov eax, esi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4733a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea eax, [ebp - 0x1c]
push str.__s___print_to_default____1_
push eax
call fcn.004083c0
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
push str._shellprintcommand
call fcn.004062d0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4733e0
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47341f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea eax, [ebp - 0x1c]
push str.__s___print_to____2_____1_
push eax
call fcn.004083c0
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
push str._shellprinttocommand
call fcn.004062d0
mov esi, dword [ebp - 0x1c]
add esp, 4
mov ecx, esi
mov edx, dword [eax]
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473451
sub ecx, dword [ebp - 0x38]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push edx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47348f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x47354a
mov eax, dword [ebp - 0x20]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4734a4
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.SoftwareClasses.pdf
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
push 0x631864
push 1
push dword [ebp - 0x20]
push str.SoftwareClasses.pdfOpenWithProgids
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x14], 0x80000001
jne 0x473541
mov eax, dword [ebp - 0x20]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x473500
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov dword [ebp - 0x1c], 1
jmp 0x473551
mov dword [ebp - 0x1c], 0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47356f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47358d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4735a8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4735c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4735e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x473602
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x473621
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