Function at 0x1006a588
Capabilities:
Get common file path

Disassembly:
push 0x20
mov eax, 0x1008e8b4
call fcn.100871aa
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.100450f5
mov dword [ebp - 4], 1
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
mov ebx, 0x100aee70
mov ecx, ebx
mov esi, edi
call fcn.10079180
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.10044f48
mov ebx, eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.100450f5
mov byte [ebp - 4], 5
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.100583c3
test eax, eax
jne 0x1006a68d
push ebx
call fcn.10044f48
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10044fe4
mov byte [ebp - 4], 8
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.10058274
lea eax, [esi - 0x10]
call fcn.1007924a
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x1006a6b9
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
call fcn.1004502e
test al, al
jne 0x1006a821
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.10044fe4
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.10058274
lea eax, [esi - 0x10]
call fcn.1007924a
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x1006a727
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
call fcn.1004502e
test al, al
jne 0x1006a821
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
call fcn.10044fe4
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.10058274
lea eax, [esi - 0x10]
call fcn.1007924a
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x1006a795
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
call fcn.1004502e
test al, al
jne 0x1006a821
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 0x1006a7b4
mov eax, esi
mov ecx, edi
call fcn.10079066
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
or eax, 0xffffffff
mov esi, edi
call fcn.10078e28
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x1006a821
lea ecx, [ebp - 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
call fcn.1004502e
test al, al
jne 0x1006a821
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x1006a806
xor eax, eax
mov ecx, edi
call fcn.10079066
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jge 0x1006a817
push 0x80070057
call fcn.100791b8
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.1007924a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, edi
call fcn.10087296
ret 4