Function at 0x49501c
Capabilities:
Check if file exists
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9961
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x458], ecx
xor eax, eax
mov word [ebp - 0x424], ax
push 0x410
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.00458260
add esp, 0xc
push 0x4c5920
call fcn.0048e715
pop ecx
test eax, eax
je 0x4950cd
push 0x208
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x458]
add ecx, 0x88
call fcn.00406fd6
push str.YoudaoNote.exe
mov ecx, dword [ebp - 0x458]
add ecx, 0x8c
call fcn.00406fd6
jmp 0x49529f
push 0x4c5964
push str.PackageDirCfg
lea eax, [ebp - 0x43c]
push eax
call fcn.00417fc6
mov ecx, eax
call fcn.004826f2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.00401e75
movzx eax, al
test eax, eax
je 0x495155
mov eax, dword [ebp - 0x458]
push dword [eax + 0x7c]
lea eax, [ebp - 0x470]
push eax
call fcn.0048e82c
pop ecx
pop ecx
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x46c]
mov ecx, dword [ebp - 0x458]
add ecx, 0x88
call fcn.00406ff1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x470]
call fcn.00405d4a
jmp 0x4951ad
push 0x208
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00406ddd
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [ebp - 0x424]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4951ad
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x458]
add ecx, 0x88
call fcn.00406fd6
push 0x4c5984
push str.QQPCMgrNameCfg
lea eax, [ebp - 0x454]
push eax
call fcn.00417fc6
mov ecx, eax
call fcn.004826f2
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x478]
call fcn.00406ddd
push eax
lea ecx, [ebp - 0x45c]
call fcn.0040700c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x454]
call fcn.004020b1
lea ecx, [ebp - 0x45c]
call fcn.004070ef
movzx eax, al
test eax, eax
je 0x495269
call fcn.00417fc6
add eax, 4
mov dword [ebp - 0x460], eax
push 0
push 0x4c59a8
push dword [ebp - 0x460]
mov eax, dword [ebp - 0x460]
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x49524e
mov dword [ebp - 0x464], 0x4c59c0
jmp 0x495258
mov dword [ebp - 0x464], str.QQPCMgr_Setup.dll
push dword [ebp - 0x464]
lea ecx, [ebp - 0x45c]
call fcn.00406fd6
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x458]
add ecx, 0x8c
call fcn.00406ff1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x45c]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.004020b1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret