Function at 0x1076ff4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x640
mov eax, 0x10b9027
call fcn.010aacd7
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x62c], 0
mov dword [ebp - 0x638], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x640], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x62c]
push eax
push 0x101a214
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x644], esi
call fcn.010ab86f
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 4], 0
push esi
call edi
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x630], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
add ebx, 0xa
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x63c]
and dword [ebp - 0x634], 0
add esp, 0x18
push dword [ebp - 0x638]
xor eax, eax
mov word [ecx], ax
call edi
mov edi, 0x103
sub edi, ebx
sub edi, eax
test edi, edi
jg 0x10770e3
mov eax, 0x80010135
mov dword [ebp - 0x62c], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 0x18
xor eax, eax
push esi
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [ebp - 0x640]
mov esi, 0x104
push esi
lea eax, [ebp - 0x628]
push eax
call fcn.0103d8a8
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x638]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x1077169
mov eax, dword [section..data]
cmp eax, section..data
je 0x107715d
test byte [eax + 0x1c], 4
je 0x107715d
push 0x1019d30
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov eax, dword [section..data]
mov dword [ebp - 0x62c], 0x80004005
jmp 0x107716e
mov eax, dword [section..data]
cmp dword [ebp - 0x62c], 0
jl 0x1077256
xor ebx, ebx
inc ebx
push 4
mov edi, ebx
pop eax
imul edi, edi, 0xa
dec eax
jne 0x1077183
cmp dword [ebp - 0x634], 0
jne 0x1077235
cmp dword [ebp - 0x630], edi
jae 0x1077251
cmp dword [ebp - 0x630], 0
je 0x10771cf
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x420]
push dword [ebp - 0x630]
push eax
call fcn.01076d04
mov dword [ebp - 0x62c], eax
jmp 0x10771e3
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.01035128
cmp dword [ebp - 0x62c], 0
jl 0x1077251
push dword [ebp - 0x644]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0103d8f7
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1077219
mov dword [ebp - 0x634], ebx
jmp 0x107721f
inc dword [ebp - 0x630]
cmp dword [ebp - 0x62c], 0
jge 0x1077189
cmp dword [ebp - 0x634], 0
je 0x1077251
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
push dword [ebp - 0x63c]
call fcn.01035128
jmp 0x107727f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1077275
test byte [eax + 0x1c], 4
je 0x1077275
push 0x1019d30
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov dword [ebp - 0x62c], 0x80004005
mov esi, dword [ebp - 0x62c]
jmp 0x10770ca