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

Disassembly:
push 0x640
mov eax, 0x10b902e
call fcn.010aac8f
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.010ab82f
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 0x1076f7f
mov eax, 0x80010135
mov dword [ebp - 0x62c], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
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.0103d897
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 0x1077005
mov eax, dword [section..data]
cmp eax, section..data
je 0x1076ff9
test byte [eax + 0x1c], 4
je 0x1076ff9
push 0x1019d30
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
mov eax, dword [section..data]
mov dword [ebp - 0x62c], 0x80004005
jmp 0x107700a
mov eax, dword [section..data]
cmp dword [ebp - 0x62c], 0
jl 0x10770f2
xor ebx, ebx
inc ebx
push 4
mov edi, ebx
pop eax
imul edi, edi, 0xa
dec eax
jne 0x107701f
cmp dword [ebp - 0x634], 0
jne 0x10770d1
cmp dword [ebp - 0x630], edi
jae 0x10770ed
cmp dword [ebp - 0x630], 0
je 0x107706b
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x420]
push dword [ebp - 0x630]
push eax
call fcn.01076ba0
mov dword [ebp - 0x62c], eax
jmp 0x107707f
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.01035122
cmp dword [ebp - 0x62c], 0
jl 0x10770ed
push dword [ebp - 0x644]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0103d8e6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10770b5
mov dword [ebp - 0x634], ebx
jmp 0x10770bb
inc dword [ebp - 0x630]
cmp dword [ebp - 0x62c], 0
jge 0x1077025
cmp dword [ebp - 0x634], 0
je 0x10770ed
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
push dword [ebp - 0x63c]
call fcn.01035122
jmp 0x107711b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1077111
test byte [eax + 0x1c], 4
je 0x1077111
push 0x1019d30
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
mov dword [ebp - 0x62c], 0x80004005
mov esi, dword [ebp - 0x62c]
jmp 0x1076f66