Function at 0x1002a478
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x1004338c
call fcn.1003efaa
mov ebx, ecx
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1002f04b
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1002d987
lea edi, [eax + 0x10]
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
call fcn.1002d823
push eax
mov ecx, ebx
call fcn.1002f04b
mov dword [ebp - 0x20], esi
call fcn.1002d823
push eax
lea ecx, [ebp - 0x14]
call fcn.1002f04b
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
push dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
push dword [sym.imp.kernel32.dll_Process32NextW]
push dword [sym.imp.kernel32.dll_Process32FirstW]
call fcn.1002f04b
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1002f04b
mov byte [ebp - 4], 5
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1002d987
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
push esi
lea ecx, [ebp - 0x28]
call fcn.1002f04b
test eax, eax
jne 0x1002a5b0
push dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
push dword [sym.imp.kernel32.dll_Process32NextW]
mov ecx, dword [ebp - 0x18]
push dword [sym.imp.kernel32.dll_Process32FirstW]
call fcn.1002f04b
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1002f04b
mov byte [ebp - 4], 8
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1002d987
lea ebx, [eax + 0x10]
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
push eax
call fcn.1002f04b
lea ecx, [ebx - 0x10]
call fcn.1002d9fa
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x1002a5dc
lea eax, [ebp - 0x14]
push eax
push ecx
mov ebx, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ebx
call fcn.1002d987
add eax, 0x10
mov dword [ebx], eax
call fcn.100136ea
test al, al
jne 0x1002a74c
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
call fcn.1002f04b
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1002d987
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
push eax
call fcn.1002f04b
lea ecx, [ebx - 0x10]
call fcn.1002d9fa
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x1002a652
lea eax, [ebp - 0x14]
push eax
push ecx
mov ebx, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ebx
call fcn.1002d987
add eax, 0x10
mov dword [ebx], eax
call fcn.100136ea
test al, al
jne 0x1002a74c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push eax
call fcn.1002f04b
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1002d987
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
push eax
call fcn.1002f04b
lea ecx, [ebx - 0x10]
call fcn.1002d9fa
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x1002a6cb
lea eax, [ebp - 0x14]
push eax
push ecx
mov ebx, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ebx
call fcn.1002d987
add eax, 0x10
mov dword [ebx], eax
call fcn.100136ea
mov ebx, dword [ebp - 0x10]
test al, al
jne 0x1002a74f
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
mov edx, 0x104
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x1002a6ee
push edx
mov ecx, ebx
call fcn.1002f04b
mov edx, 0x104
push dword [ebx]
push edx
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.1002f04b
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x1002a74f
lea eax, [ebp - 0x14]
push eax
push ecx
mov ebx, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ebx
call fcn.1002d987
add eax, 0x10
mov dword [ebx], eax
call fcn.100136ea
mov ebx, dword [ebp - 0x10]
test al, al
jne 0x1002a74f
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x1002a741
push 0
mov ecx, ebx
call fcn.1002f04b
push 0
mov ecx, ebx
call fcn.1002f04b
jmp 0x1002a74f
mov ebx, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.1002d9fa
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
lea ecx, [edi - 0x10]
call fcn.1002d9fa
mov eax, ebx
call fcn.1003ef84
ret 0xc