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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb879
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4ec06c]
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.00424a7b
and dword [ebp - 4], 0
mov byte [ebp - 0x339], 0
lea ecx, [ebp - 0x260]
call fcn.0040c5b7
movzx eax, al
test eax, eax
jne 0x4a8ca7
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0046d6f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00412374
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.___1_
lea eax, [ebp - 0x218]
push eax
call fcn.00410d5d
pop ecx
pop ecx
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
jne 0x4a8bed
push 0x4cbad0
lea eax, [ebp - 0x218]
push eax
call fcn.00410d5d
pop ecx
pop ecx
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x4a8ca7
xor eax, eax
mov ecx, dword [ebp - 0x348]
mov word [ecx], ax
push 0x4cbad8
lea ecx, [ebp - 0x290]
call fcn.0041185a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.0041185a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x290]
push eax
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x2a8]
call 0x4212b3
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.004123b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.004123b1
lea ecx, [ebp - 0x2a8]
call fcn.00412374
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4a8c89
mov dword [ebp - 0x350], 1
jmp 0x4a8c90
and dword [ebp - 0x350], 0
mov al, byte [ebp - 0x350]
mov byte [ebp - 0x339], al
lea ecx, [ebp - 0x2a8]
call fcn.004123b1
movzx eax, byte [ebp - 0x339]
test eax, eax
jne 0x4a8cd0
push 0x4cbadc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 4]
call fcn.0044dd2f
mov byte [eax + 5], 1
jmp 0x4a90a1
push 0x4cbae8
push 0x4cbb10
mov edx, SysReAllocString
lea ecx, [ebp - 0x338]
call fcn.00422427
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x338]
call fcn.00412374
mov edx, str.extensionui.dll
mov ecx, eax
call 0x42146e
test eax, eax
je 0x4a8d49
push dword [ebp + 8]
lea ecx, [ebp - 0x2c0]
call fcn.0041185a
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c0]
push eax
push 0x4cbb0c
mov edx, str.SoftwareClassesSEPdfFileDefaultIcon
mov ecx, SysReAllocString
call fcn.004229ce
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c0]
call fcn.004123b1
lea ecx, [ebp - 0x360]
call fcn.0040c090
mov byte [ebp - 4], 5
lea eax, [ebp - 0x360]
push eax
mov edx, 0x4cbbb0
mov ecx, SysReAllocString
call fcn.0042279b
pop ecx
movzx eax, al
test eax, eax
je 0x4a9083
lea ecx, [ebp - 0x360]
call fcn.0040c30a
mov dword [ebp - 0x354], eax
push 0x4cbc4c
push 0x4cbc60
mov edx, SysReAllocString
lea ecx, [ebp - 0x230]
call fcn.00422427
pop ecx
pop ecx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x354], 0
je 0x4a9074
lea ecx, [ebp - 0x230]
call fcn.0040c5b7
movzx eax, al
test eax, eax
jne 0x4a9074
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2d8]
call fcn.0041185a
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2d8]
push eax
push 0x4cbc5c
mov edx, str.SoftwareClassesApplicationsSogouExplorer.exe_shellopencommand
mov ecx, SysReAllocString
call fcn.004229ce
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d8]
call fcn.004123b1
mov byte [ebp - 0x33a], 0
and dword [ebp - 0x340], 0
jmp 0x4a8e29
mov eax, dword [ebp - 0x340]
inc eax
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x354]
jae 0x4a8f43
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040c2ed
mov ecx, eax
call fcn.00412374
push eax
push 0x4cbda8
mov edx, SysReAllocString
lea ecx, [ebp - 0x248]
call fcn.00422427
pop ecx
pop ecx
mov byte [ebp - 4], 8
push 0x4cbcfc
lea ecx, [ebp - 0x248]
call fcn.00412374
push eax
call fcn.00471ed1
pop ecx
pop ecx
test eax, eax
jne 0x4a8f2f
mov byte [ebp - 0x33a], 1
push 0
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040c2ed
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c563
cmp eax, 0xffffffff
jne 0x4a8f1e
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040c2ed
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c6ec
lea ecx, [ebp - 0x230]
call fcn.00412374
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0041185a
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2f0]
push eax
push 0x4cbe44
mov edx, 0x4cbe78
mov ecx, SysReAllocString
call fcn.004229ce
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f0]
call fcn.004123b1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.004123b1
jmp 0x4a8f43
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.004123b1
jmp 0x4a8e1c
movzx eax, byte [ebp - 0x33a]
test eax, eax
jne 0x4a9074
push 0x61
pop eax
mov word [ebp - 0x344], ax
xor eax, eax
mov word [ebp - 0x342], ax
and dword [ebp - 0x34c], 0
jmp 0x4a8f7b
mov eax, dword [ebp - 0x34c]
inc eax
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0x1a
jge 0x4a9074
push 0
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c545
cmp eax, 0xffffffff
jne 0x4a9052
push 0x4cbe54
lea ecx, [ebp - 0x308]
call fcn.0041185a
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x344]
push eax
mov edx, 0x4cbf28
mov ecx, SysReAllocString
call fcn.004229ce
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x308]
call fcn.004123b1
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c6d2
lea ecx, [ebp - 0x230]
call fcn.00412374
push eax
lea ecx, [ebp - 0x320]
call fcn.0041185a
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x320]
push eax
push str.MRUList
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfOpenWithList
mov ecx, SysReAllocString
call fcn.004229ce
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x320]
call fcn.004123b1
jmp 0x4a9074
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 0x4a8f6e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.004123b1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x360]
call fcn.0040c335
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x338]
call fcn.004123b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.004123b1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004690ca
mov esp, ebp
pop ebp
ret