Function at 0x49ffd0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594ff1
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x5ea110]
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
mov ebx, ecx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x824], 0
call fcn.00407fd0
mov ecx, eax
test ecx, ecx
jne 0x4a0025
push 0x80004005
call fcn.00407ba0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
lea eax, [ebp - 0x820]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsMasterPDF.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x820], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a00f0
mov dword [ebp - 0x81c], eax
mov ecx, 1
mov dword [ebp - 0x818], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4a00a4
push 0x400
lea ecx, [ebp - 0x814]
call fcn.00407400
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x818]
push eax
push esi
lea eax, [ebp - 0x81c]
push eax
push 0
push str.Path
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi - 8]
push esi
call fcn.005506ae
add esp, 8
test eax, eax
js 0x4a0131
cmp eax, dword [esi - 8]
jg 0x4a0131
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a013b
add esi, 0xfffffff0
push esi
call fcn.004079b0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a024b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4a024b
push 0x80070057
call fcn.00407ba0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00533670
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x810]
push 0x5bd944
push eax
call edi
push str.MasterPDF.exe
lea eax, [ebp - 0x810]
push eax
call edi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x4a0221
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x818]
call fcn.004077e0
lea edx, [ebp - 0x818]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x81c]
call fcn.004bf000
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 3
call fcn.00402eb0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a01fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a021b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x814]
add esi, 0xfffffff0
push esi
call fcn.004079b0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [ebx], eax
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4a024b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.0050ed39
mov esp, ebp
pop ebp
ret