Function at 0x494480
Capabilities:
Check if file exists
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2e41
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x505070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterPDF.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2b4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x494906
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494506
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push str.Path
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x49454b
push dword [ebp - 0x2b4]
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49490b
push 0x208
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.004a1ef0
add esp, 0xc
lea eax, [ebp - 0x29c]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push eax
call edi
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494580
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x29c]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push 0x4e470c
push dword [ebp - 0x2b4]
call eax
test eax, eax
jne 0x494533
push 0x208
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.004a1ef0
add esp, 0xc
lea eax, [ebp - 0x29c]
push dword [ebp - 0x2a0]
push esi
push eax
call edi
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4945e6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x29c]
push eax
push 1
push 0
push 0x4ee978
push dword [ebp - 0x2b4]
call esi
test eax, eax
jne 0x494533
push 0x80
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004a1ef0
add esp, 0xc
push 0
call fcn.004b117c
add esp, 4
push edx
push eax
lea eax, [ebp - 0x94]
push 0x4e5fb8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x2a4], 0
lea eax, [ebp - 0x2a4]
push eax
call fcn.00494ef0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2a4]
cmp dword [eax - 0xc], 0
je 0x494778
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0
call fcn.0046da20
mov byte [ebp - 4], 1
push dword [ebp - 0x2a8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4946e7
push ecx
mov ecx, esp
mov dword [ebp - 0x2c0], esp
push str.InstallTime
call fcn.00405360
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2b8], esi
lea ecx, [ecx - 0x10]
call fcn.00405420
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.00495190
push dword [ebp - 0x2a4]
push str.Date
push dword [ebp - 0x2b4]
call fcn.00494be0
push dword [ebp - 0x2a4]
call fcn.004b101b
cdq
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a0], 0
call fcn.00472930
push dword [ebp - 0x2a0]
push str.InstallDate
push dword [ebp - 0x2b4]
call fcn.00494be0
mov edx, dword [ebp - 0x2a0]
or edi, 0xffffffff
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x494769
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2a8]
jmp 0x494802
lea ecx, [ebp - 0x94]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494781
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x94]
push eax
push 1
push 0
push str.Date
push dword [ebp - 0x2b4]
call esi
lea eax, [ebp - 0x94]
push eax
call fcn.004b101b
cdq
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a0], 0
call fcn.00472930
push dword [ebp - 0x2a0]
push str.InstallDate
push dword [ebp - 0x2b4]
call fcn.00494be0
mov edx, dword [ebp - 0x2a0]
mov esi, eax
or edi, 0xffffffff
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x494819
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004951f0
test eax, eax
je 0x494887
test ebx, ebx
je 0x49485a
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494830
sub ecx, edx
sar ecx, 1
je 0x49485a
push ebx
push str.ActDate
push dword [ebp - 0x2b4]
call fcn.00494be0
push ecx
mov ecx, esp
mov esi, eax
push ebx
jmp 0x49487d
lea eax, [ebp - 0x94]
push eax
push str.ActDate
push dword [ebp - 0x2b4]
call fcn.00494be0
push ecx
mov esi, eax
mov ecx, esp
lea eax, [ebp - 0x94]
push eax
call fcn.00405360
call fcn.00495270
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4948a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x4948f6
mov esi, dword [ebp - 0x2bc]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4948c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 1
push 0
push 0x4ecb2c
push dword [ebp - 0x2b4]
call eax
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49490b
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049f1b4
mov esp, ebp
pop ebp
ret 0x14