Function at 0x1002c020
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x100d65e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x280], esi
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x90]
mov dword [ebp - 0x284], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x288], ebx
je 0x1002c0b5
cmp dword [edi + 0x14], 8
jb 0x1002c07f
mov eax, dword [edi]
jmp 0x1002c081
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x1002c0b5
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push edi
mov ecx, ebx
mov word [ebx], ax
call fcn.1000f660
jmp 0x1002c364
cmp byte [esi + 0x108], 0
je 0x1002c220
cmp dword [esi + 0x100], 0
je 0x1002c220
call fcn.10033480
test eax, eax
je 0x1002c17e
lea ecx, [ebp - 0x27c]
call fcn.10028de0
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.10028900
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x280]
add ecx, 0xf0
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.100267f0
add esp, 0xc
mov byte [ebp - 4], 3
push esi
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.10026b30
add esp, 0xc
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.10004bb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.100103e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.100103e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.100103e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.100103e0
jmp 0x1002c346
lea ecx, [ebp - 0x234]
call fcn.10029070
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.10028b10
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x280]
add ecx, 0xf0
push ecx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100267f0
add esp, 0xc
mov byte [ebp - 4], 7
push esi
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.10026b30
add esp, 0xc
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.10004bb0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x27c]
call fcn.100103e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x264]
call fcn.100103e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.100103e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.100103e0
jmp 0x1002c346
push ecx
lea eax, [ebp - 0x24c]
push eax
call fcn.1002c3a0
mov dword [ebp - 4], 9
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.100190c0
add esp, 8
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 0xa
cmp edi, eax
je 0x1002c283
cmp dword [edi + 0x14], 8
jb 0x1002c268
push dword [edi]
call fcn.1007d9ed
mov eax, dword [ebp - 0x280]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.1000fcf0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x220], 8
jb 0x1002c29e
push dword [ebp - 0x234]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x238], 0x10
jb 0x1002c2d5
push dword [ebp - 0x24c]
call fcn.1007d9ed
add esp, 4
cmp dword [esi + 0xa0], 0
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
jne 0x1002c346
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.1007f340
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1002c346
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.1000faf0
push 0x5c
push edi
call fcn.10019a60
add esp, 8
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push edi
mov ecx, ebx
mov word [ebx], ax
call fcn.1000f660
mov dword [ebp - 4], 0
mov dword [ebp - 0x284], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007e654
mov esp, ebp
pop ebp
ret 4