Function at 0x1006a1e6
Capabilities:
Get common file path

Disassembly:
push 0x20
mov eax, 0x1008e4ba
call fcn.10086e1a
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100453e5
mov dword [ebp - 4], 1
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
mov ebx, 0x100aee70
mov ecx, ebx
mov esi, edi
call fcn.10078e54
mov eax, dword [0x100aee70]
mov ecx, ebx
mov dword [ebp - 0x20], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.10045238
mov ebx, eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.100453e5
mov byte [ebp - 4], 5
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.10058608
test eax, eax
jne 0x1006a2eb
push ebx
call fcn.10045238
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100452d4
mov byte [ebp - 4], 8
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.100584b9
lea eax, [esi - 0x10]
call fcn.10078f0e
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x1006a317
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
call fcn.1004531e
test al, al
jne 0x1006a47f
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.100452d4
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.100584b9
lea eax, [esi - 0x10]
call fcn.10078f0e
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x1006a385
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
call fcn.1004531e
test al, al
jne 0x1006a47f
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
call fcn.100452d4
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.100584b9
lea eax, [esi - 0x10]
call fcn.10078f0e
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x1006a3f3
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
call fcn.1004531e
test al, al
jne 0x1006a47f
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x1006a412
mov eax, esi
mov ecx, edi
call fcn.10078d3a
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
or eax, 0xffffffff
mov esi, edi
call fcn.10078afc
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x1006a47f
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
call fcn.1004531e
test al, al
jne 0x1006a47f
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x1006a464
xor eax, eax
mov ecx, edi
call fcn.10078d3a
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jge 0x1006a475
push 0x80070057
call fcn.10078e8c
mov dword [eax - 0xc], ebx
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, edi
call fcn.10086f06
ret 4