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

Disassembly:
push 0x640
mov eax, 0x10b903f
call fcn.010aac9f
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.010ab83f
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 0x1076f8f
mov eax, 0x80010135
mov dword [ebp - 0x62c], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
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 0x1077015
mov eax, dword [section..data]
cmp eax, section..data
je 0x1077009
test byte [eax + 0x1c], 4
je 0x1077009
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 0x107701a
mov eax, dword [section..data]
cmp dword [ebp - 0x62c], 0
jl 0x1077102
xor ebx, ebx
inc ebx
push 4
mov edi, ebx
pop eax
imul edi, edi, 0xa
dec eax
jne 0x107702f
cmp dword [ebp - 0x634], 0
jne 0x10770e1
cmp dword [ebp - 0x630], edi
jae 0x10770fd
cmp dword [ebp - 0x630], 0
je 0x107707b
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x420]
push dword [ebp - 0x630]
push eax
call fcn.01076bb0
mov dword [ebp - 0x62c], eax
jmp 0x107708f
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.01035132
cmp dword [ebp - 0x62c], 0
jl 0x10770fd
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 0x10770c5
mov dword [ebp - 0x634], ebx
jmp 0x10770cb
inc dword [ebp - 0x630]
cmp dword [ebp - 0x62c], 0
jge 0x1077035
cmp dword [ebp - 0x634], 0
je 0x10770fd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
push dword [ebp - 0x63c]
call fcn.01035132
jmp 0x107712b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1077121
test byte [eax + 0x1c], 4
je 0x1077121
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 0x1076f76