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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x14], 0
je 0x1002bfbb
push 0
mov ecx, dword [ebp - 0x24]
call fcn.1002c560
test eax, eax
je 0x1002bfbb
mov eax, 0xfffffff5
jmp 0x1002c38f
cmp dword [ebp + 0xc], 0
je 0x1002c016
mov ecx, dword [ebp + 8]
push ecx
call fcn.10041b50
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.10041b50
add esp, 4
lea eax, [esi + eax + 1]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10045188
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002c001
mov eax, 0xfffffffd
jmp 0x1002c38f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10041df0
add esp, 8
jmp 0x1002c201
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10045188
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1002c042
mov eax, 0xfffffffd
jmp 0x1002c38f
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1002c1eb
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10041b50
add esp, 4
mov esi, eax
mov edx, dword [ebp + 8]
push edx
call fcn.10041b50
add esp, 4
lea eax, [esi + eax + 6]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10045188
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002c0a4
mov edx, dword [ebp - 0x10]
push edx
call fcn.10044f39
add esp, 4
mov eax, 0xfffffffd
jmp 0x1002c38f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10077b84
mov edx, dword [ebp - 8]
push edx
call fcn.10041cb1
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002c1e9
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10044f39
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.10044f39
add esp, 4
mov dword [ebp - 0x18], str._system32Drivers_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.10041b50
add esp, 4
add eax, dword [ebp - 0x1c]
push eax
call fcn.10045188
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002c127
mov eax, 0xfffffffd
jmp 0x1002c38f
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1002c14f
mov eax, dword [ebp - 0x20]
push eax
call fcn.10044f39
add esp, 4
mov eax, 0xfffffff3
jmp 0x1002c38f
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.10041e00
add esp, 8
mov eax, dword [ebp - 0x20]
push eax
call fcn.10041b50
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10041b50
add esp, 4
lea edx, [esi + eax + 5]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10045188
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002c19f
mov eax, 0xfffffffd
jmp 0x1002c38f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str._s_s.sys
mov eax, dword [ebp - 8]
push eax
call fcn.10041cb1
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10044f39
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002c1e9
mov eax, dword [ebp - 8]
push eax
call fcn.10044f39
add esp, 4
mov eax, 0xfffffffc
jmp 0x1002c38f
jmp 0x1002c201
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10044f39
add esp, 4
mov eax, 0xfffffff3
jmp 0x1002c38f
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10041b50
add esp, 4
add eax, 1
push eax
call fcn.10045188
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 8], 0
jne 0x1002c254
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call fcn.10044f39
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], 0
mov eax, 0xfffffffd
jmp 0x1002c38f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call fcn.10041df0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x1002c275
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x1002c27b
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x1002c313
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 1]
cmp eax, 0x5c
je 0x1002c313
mov ecx, dword [ebp - 4]
push ecx
call fcn.10041b50
add esp, 4
add eax, 5
push eax
call fcn.10045188
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
jne 0x1002c2f9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call fcn.10044f39
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call fcn.10044f39
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], 0
mov eax, 0xfffffffd
jmp 0x1002c38f
mov ecx, dword [ebp - 4]
push ecx
push str.._s
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
push eax
call fcn.10041cb1
add esp, 0xc
jmp 0x1002c383
mov ecx, dword [ebp - 4]
push ecx
call fcn.10041b50
add esp, 4
push eax
call fcn.10045188
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
jne 0x1002c370
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call fcn.10044f39
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call fcn.10044f39
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], 0
mov eax, 0xfffffffd
jmp 0x1002c38f
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
push eax
call fcn.10041df0
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x14], 1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc