Function at 0x64721ff1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6475a360]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
test edi, edi
je 0x647222b5
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x647222b5
mov esi, 0x6474aca8
test eax, eax
je 0x6472203f
push eax
call fcn.64725b00
test eax, eax
pop ecx
cmovne esi, dword [ebp - 0x210]
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.64725a70
push 0x103
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
call fcn.64725a70
add esp, 0x18
cmp byte [0x6475c1a0], 0
je 0x647220c2
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
push 0x6475c1a0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x647220bb
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.64722cdb
add esp, 0xc
mov eax, dword [ebp - 0x210]
jmp 0x647222b7
mov byte [0x6475c1a0], 0
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x6472209f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6474b620
call fcn.64713cdf
lea eax, [ebp - 0x108]
push eax
call fcn.647226dc
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x6472209f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str.No_writable_right_in_temp_path:__s___err__d_
call fcn.64713cdf
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.64702ae1
add esp, 0x14
test eax, eax
je 0x64722205
push str.temp
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push eax
push str.Use_following_temp_folder:__s_
call fcn.64721861
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x647221ea
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.64722cdb
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x6475c1a0
call fcn.64722cdb
add esp, 0x18
jmp 0x647220b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str.GetTempFileName_fail__path:__s___err__d_
call fcn.64713cdf
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.64702936
add esp, 0xc
test eax, eax
je 0x6472229a
push str.temp
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push eax
push str.Use_following_temp_folder:__s_
call fcn.64721861
lea eax, [ebp - 0x108]
push eax
call fcn.647226dc
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
test esi, esi
je 0x6472229a
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.64722cdb
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x6475c1a0
call fcn.64722cdb
add esp, 0x18
mov eax, esi
jmp 0x647222b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str.GetTempFileName_fail__path:__s___err__d_
call fcn.6471ba48
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.647263d1
mov esp, ebp
pop ebp
ret