Function at 0x6708cf
Capabilities:
Get common file path

Disassembly:
push 0xd8
mov eax, 0x7b0ab7
call fcn.00645f96
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp + 0x18]
and dword [ebp - 0xcc], 0
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xbc], eax
call fcn.00408cc0
xor ebx, ebx
lea ecx, [ebp - 0x50]
inc ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xcc], ebx
call fcn.00408cc0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
call fcn.00408cc0
xor ecx, ecx
mov byte [ebp - 4], 2
mov bl, cl
mov byte [ebp - 0xb2], bl
mov byte [ebp - 0xb1], bl
test esi, esi
je 0x67095f
mov al, byte [esi]
mov byte [ebp - 0xb2], al
mov byte [ebp - 0xb1], al
mov byte [esi], cl
jmp 0x670965
lea esi, [ebp - 0xb1]
push ecx
push ecx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xc4]
call fcn.006701db
add esp, 0x14
lea ecx, [ebp - 0x50]
call fcn.00663864
test al, al
je 0x6709ac
lea eax, [ebp - 0x30]
push eax
call fcn.0066f0de
pop ecx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00408ed9
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00408e36
push 0x105
push edi
lea ecx, [ebp - 0xc8]
call fcn.006616b6
mov ecx, eax
call fcn.0066191a
push eax
push 0
lea ecx, [ebp - 0x70]
call fcn.00669d63
push eax
lea ecx, [ebp - 0x50]
call fcn.00669d63
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
lea ecx, [ebp - 0xc8]
neg ebx
sbb bl, bl
call fcn.006616dd
inc bl
je 0x6709fb
mov ecx, edi
call fcn.0066363c
mov ecx, edi
call fcn.00663864
test al, al
je 0x670a77
push str.Failed_to_create_a_temporary_file_name
lea ecx, [ebp - 0x30]
call fcn.00408c6d
lea ecx, [ebp - 0xb0]
call fcn.00408cc0
mov esi, eax
lea ecx, [ebp - 0x90]
call fcn.00408cc0
push esi
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 6
push eax
call fcn.00669628
add esp, 0xc
lea ecx, [ebp - 0xe4]
push eax
call fcn.0066154b
lea ecx, [ebp - 0xe4]
call fcn.00661721
lea ecx, [ebp - 0x90]
call fcn.00408e36
lea ecx, [ebp - 0xb0]
call fcn.00408e36
lea ecx, [ebp - 0x30]
call fcn.00408e36
jmp 0x670b68
mov ebx, dword [ebp - 0xc0]
test ebx, ebx
je 0x670abb
mov ecx, ebx
call fcn.00669cd4
test al, al
jne 0x670abb
mov al, byte [ebp - 0xb2]
push esi
push edi
mov byte [esi], al
call fcn.00670dc6
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x670ab2
push eax
mov ecx, ebx
call fcn.0066ceae
mov bl, byte [ebp - 0xb1]
jmp 0x670ac1
mov byte [ebp - 0xb8], 0
jmp 0x670aaa
mov bl, byte [ebp - 0xb2]
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x670aeb
mov ecx, eax
call fcn.006b61ae
test al, al
jne 0x670aeb
mov eax, dword [ebp - 0xbc]
push esi
push edi
push eax
mov byte [esi], bl
call fcn.00670df6
add esp, 0xc
jmp 0x670af1
mov eax, dword [ebp - 0xb8]
test al, al
jne 0x670b68
push str.Failed_to_open_temporary_file.
lea ecx, [ebp - 0x30]
call fcn.00408c6d
lea ecx, [ebp - 0x90]
call fcn.00408cc0
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00408cc0
push esi
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 9
push eax
call fcn.00669628
add esp, 0xc
lea ecx, [ebp - 0xe4]
push eax
call fcn.0066154b
lea ecx, [ebp - 0xe4]
call fcn.00661721
lea ecx, [ebp - 0xb0]
call fcn.00408e36
lea ecx, [ebp - 0x90]
call fcn.00408e36
lea ecx, [ebp - 0x30]
call fcn.00408e36
mov ecx, edi
call fcn.0066363c
lea ecx, [ebp - 0x70]
call fcn.00408e36
lea ecx, [ebp - 0x50]
call fcn.00408e36
mov eax, edi
call fcn.00645f45
ret