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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov edi, 0x104
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x24]
push edi
push 0x10bc790
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10791ff
push ebx
push esi
mov esi, 0xfffa
push esi
mov ebx, 0x1106960
push ebx
push 0x1026c94
push dword [ebp - 0x2c]
call fcn.01070fc9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1079051
xor eax, eax
inc eax
jmp 0x10791fd
push esi
push ebx
push 0x10094ec
push ebx
call fcn.01070fc9
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push 0x10bc9a0
push 0xffffffffffffffff
push ebx
push 0
push 0
call esi
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push 0x1024ad4
push dword [ebp - 0x34]
call fcn.0106bf51
add esp, 0x10
push edi
push 0x10bbf28
push 0xffffffffffffffff
push dword [ebp - 0x34]
push 0
push 0
call esi
push edi
push 0x10bc278
push 0xffffffffffffffff
push dword [ebp - 0x30]
push 0
push 0
call esi
push edi
push 0x10bc688
push 0x101d01c
push dword [ebp - 0x2c]
call fcn.01070fc9
cmp dword [ebp + 0x20], 0
jne 0x10790de
push 0x10bc688
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10790de
and word [0x10bc480], 0
jmp 0x107911a
cmp dword [ebp + 0x1c], 0
je 0x10790f1
push 0xfffa
push ebx
push 0x1026c7c
jmp 0x1079101
call fcn.010735d1
push 0xfffa
push ebx
push 0x1026c64
push 0x10bc790
call fcn.01070fc9
push edi
push 0x10bc480
push 0xffffffffffffffff
push ebx
push 0
push 0
call esi
push 8
pop ecx
xor eax, eax
push 0x20
pop edx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
and dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
mov esi, 0x100920c
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
and dword [ebp - 0x4c], eax
mov edi, 0x10bc480
mov esi, 0x10bc9a0
push edi
mov dword [ebp - 0xc], 0x10bc278
mov dword [ebp - 8], 0x1014d0c
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], 0x30b000
mov dword [ebp - 0x50], esi
call sub.msvcrt.dll_wcslen
test eax, eax
pop ecx
jbe 0x107917e
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x54], 0x30b100
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
je 0x1079195
or byte [ebp - 0x52], 1
mov dword [ebp - 0x40], 0x10bbf28
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
call fcn.01073e4d
test eax, eax
mov dword [ebp - 0x28], eax
je 0x10791fb
mov edi, 0xfffa
push edi
push ebx
push 0x1026c5c
push dword [ebp - 0x2c]
call fcn.01070fc9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10791d0
mov eax, dword [ebp - 0x28]
jmp 0x10791fd
push edi
push ebx
push 0x10094ec
push ebx
call fcn.01070fc9
push 0x104
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x58]
push eax
call fcn.01073e4d
jmp 0x10791fd
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0106bc50
leave
ret 0x20