Function at 0x49d7d1
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b005a
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4df06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str..pdf
lea ecx, [ebp - 0x260]
call fcn.00419d30
and dword [ebp - 4], 0
mov byte [ebp - 0x339], 0
lea ecx, [ebp - 0x260]
call fcn.00404507
movzx eax, al
test eax, eax
jne 0x49d95f
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004628a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a2c4
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.___1_
lea eax, [ebp - 0x218]
push eax
call fcn.00408cad
pop ecx
pop ecx
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
jne 0x49d8a5
push 0x4bfa10
lea eax, [ebp - 0x218]
push eax
call fcn.00408cad
pop ecx
pop ecx
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x49d95f
xor eax, eax
mov ecx, dword [ebp - 0x348]
mov word [ecx], ax
push 0x4bfa18
lea ecx, [ebp - 0x290]
call fcn.004097aa
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.004097aa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x290]
push eax
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x2a8]
call 0x416567
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.0040a301
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0040a301
lea ecx, [ebp - 0x2a8]
call fcn.0040a2c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x49d941
mov dword [ebp - 0x350], 1
jmp 0x49d948
and dword [ebp - 0x350], 0
mov al, byte [ebp - 0x350]
mov byte [ebp - 0x339], al
lea ecx, [ebp - 0x2a8]
call fcn.0040a301
movzx eax, byte [ebp - 0x339]
test eax, eax
jne 0x49d988
push 0x4bfa1c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 4]
call fcn.004431c9
mov byte [eax + 5], 1
jmp 0x49dd59
push 0x4bfa28
push 0x4bfa50
mov edx, SysReAllocString
lea ecx, [ebp - 0x338]
call fcn.004176db
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x338]
call fcn.0040a2c4
mov edx, str.extensionui.dll
mov ecx, eax
call 0x416722
test eax, eax
je 0x49da01
push dword [ebp + 8]
lea ecx, [ebp - 0x2c0]
call fcn.004097aa
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c0]
push eax
push 0x4bfa4c
mov edx, str.SoftwareClassesSEPdfFileDefaultIcon
mov ecx, SysReAllocString
call fcn.00417c82
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c0]
call fcn.0040a301
lea ecx, [ebp - 0x360]
call fcn.00403fe0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x360]
push eax
mov edx, 0x4bfaf0
mov ecx, SysReAllocString
call fcn.00417a4f
pop ecx
movzx eax, al
test eax, eax
je 0x49dd3b
lea ecx, [ebp - 0x360]
call fcn.0040425a
mov dword [ebp - 0x354], eax
push 0x4bfb8c
push 0x4bfba0
mov edx, SysReAllocString
lea ecx, [ebp - 0x230]
call fcn.004176db
pop ecx
pop ecx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x354], 0
je 0x49dd2c
lea ecx, [ebp - 0x230]
call fcn.00404507
movzx eax, al
test eax, eax
jne 0x49dd2c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2d8]
call fcn.004097aa
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2d8]
push eax
push 0x4bfb9c
mov edx, str.SoftwareClassesApplicationsSogouExplorer.exe_shellopencommand
mov ecx, SysReAllocString
call fcn.00417c82
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d8]
call fcn.0040a301
mov byte [ebp - 0x33a], 0
and dword [ebp - 0x340], 0
jmp 0x49dae1
mov eax, dword [ebp - 0x340]
inc eax
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x354]
jae 0x49dbfb
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040423d
mov ecx, eax
call fcn.0040a2c4
push eax
push 0x4bfce8
mov edx, SysReAllocString
lea ecx, [ebp - 0x248]
call fcn.004176db
pop ecx
pop ecx
mov byte [ebp - 4], 8
push 0x4bfc3c
lea ecx, [ebp - 0x248]
call fcn.0040a2c4
push eax
call fcn.00467128
pop ecx
pop ecx
test eax, eax
jne 0x49dbe7
mov byte [ebp - 0x33a], 1
push 0
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040423d
push eax
lea ecx, [ebp - 0x230]
call fcn.004044b3
cmp eax, 0xffffffff
jne 0x49dbd6
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040423d
push eax
lea ecx, [ebp - 0x230]
call fcn.0040463c
lea ecx, [ebp - 0x230]
call fcn.0040a2c4
push eax
lea ecx, [ebp - 0x2f0]
call fcn.004097aa
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2f0]
push eax
push 0x4bfd84
mov edx, 0x4bfdb8
mov ecx, SysReAllocString
call fcn.00417c82
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f0]
call fcn.0040a301
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.0040a301
jmp 0x49dbfb
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.0040a301
jmp 0x49dad4
movzx eax, byte [ebp - 0x33a]
test eax, eax
jne 0x49dd2c
push 0x61
pop eax
mov word [ebp - 0x344], ax
xor eax, eax
mov word [ebp - 0x342], ax
and dword [ebp - 0x34c], 0
jmp 0x49dc33
mov eax, dword [ebp - 0x34c]
inc eax
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0x1a
jge 0x49dd2c
push 0
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404495
cmp eax, 0xffffffff
jne 0x49dd0a
push 0x4bfd94
lea ecx, [ebp - 0x308]
call fcn.004097aa
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x344]
push eax
mov edx, 0x4bfe68
mov ecx, SysReAllocString
call fcn.00417c82
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x308]
call fcn.0040a301
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404622
lea ecx, [ebp - 0x230]
call fcn.0040a2c4
push eax
lea ecx, [ebp - 0x320]
call fcn.004097aa
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x320]
push eax
push str.MRUList
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfOpenWithList
mov ecx, SysReAllocString
call fcn.00417c82
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x320]
call fcn.0040a301
jmp 0x49dd2c
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
inc eax
push 2
pop ecx
imul ecx, ecx, 0
mov word [ebp + ecx - 0x344], ax
jmp 0x49dc26
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.0040a301
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x360]
call fcn.00404285
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x338]
call fcn.0040a301
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.0040a301
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e3e7
mov esp, ebp
pop ebp
ret