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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10220c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [ebp - 0x814], edi
call fcn.01001b0e
mov ebx, 0x105
test eax, eax
jne 0x1010271
lea edi, [esi + 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x810], edi
test eax, eax
je 0x100919b
mov eax, dword [eax]
push 0x25
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x10102a5
lea edi, [esi + 0x1c]
mov ecx, edi
mov dword [ebp - 0x818], edi
call fcn.01001b0e
test eax, eax
jne 0x10102ba
mov ecx, esi
call fcn.01004b2f
mov ecx, esi
call fcn.0100863a
test eax, eax
jl 0x1009182
xor eax, eax
and dword [ebp - 0xc], eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov word [ebp - 0x80c], ax
mov eax, dword [ebp - 0x810]
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
je 0x10091b6
mov eax, dword [eax]
push edi
push edi
push edi
push edi
mov esi, 0x400
push esi
lea ecx, [ebp - 0x80c]
push ecx
push 4
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
cmp eax, edi
jne 0x10102f2
lea eax, [ebp - 0x80c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10090e1
sub eax, edx
sar eax, 1
je 0x1010307
mov edi, dword [ebp - 0x810]
mov eax, dword [edi]
test eax, eax
je 0x10091bd
mov eax, dword [eax]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x10103e9
mov eax, dword [edi]
test eax, eax
je 0x10091cd
mov eax, dword [eax]
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.0100a10f
push 0x10041c0
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.010088c2
mov esi, eax
test esi, esi
jl 0x1009180
push dword [ebp - 0x818]
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.010091d9
mov ecx, dword [ebp - 0x818]
push eax
call fcn.010060e1
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x1009180
call fcn.01001a04
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001fd0
leave
ret
test eax, eax
jge 0x1009036
jmp 0x1009182
xor eax, eax
jmp 0x100904b
test eax, eax
jge 0x100905e
jmp 0x1009182
test eax, eax
jge 0x1009076
jmp 0x1009182
xor eax, eax
jmp 0x10090b0
xor eax, eax
jmp 0x1009107
test eax, eax
jl 0x1009182
jmp 0x1009134
xor eax, eax
jmp 0x1009126
mov eax, dword [edi]
test eax, eax
je 0x101027b
mov eax, dword [eax]
jmp 0x101027d
xor eax, eax
push 0x25
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1009036
push ebx
lea eax, [ebp - 0x80c]
push eax
push edi
mov ecx, esi
call fcn.010192d0
jmp 0x1009191
push ebx
lea eax, [ebp - 0x80c]
push eax
push edi
mov ecx, esi
call fcn.010192d0
jmp 0x10091a2
mov eax, dword [edi]
test eax, eax
je 0x10102c4
mov eax, dword [eax]
jmp 0x10102c6
xor eax, eax
push 0x25
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1009076
push 0x400
lea eax, [ebp - 0x80c]
push eax
push edi
mov ecx, esi
call fcn.010192d0
jmp 0x10091ac
jle 0x1009182
and eax, 0xffff
or eax, 0x80070000
jmp 0x1009182
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x101030d
sub eax, edx
sar eax, 1
jne 0x10090f5
mov edi, dword [ebp - 0x814]
mov ecx, edi
call fcn.01001b0e
test eax, eax
jbe 0x10090f5
mov eax, dword [edi]
test eax, eax
je 0x1010340
mov eax, dword [eax]
jmp 0x1010342
xor eax, eax
push eax
push ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.0100a10f
test eax, eax
jl 0x1009182
mov eax, dword [edi]
test eax, eax
je 0x1010362
mov esi, dword [eax]
jmp 0x1010364
xor esi, esi
mov ecx, edi
call fcn.01001b0e
push 0x5c
pop ecx
cmp cx, word [esi + eax*2 - 2]
je 0x101038f
push 0x1003410
push ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.010088c2
test eax, eax
jl 0x1009182
mov eax, dword [ebp - 0x810]
mov eax, dword [eax]
test eax, eax
je 0x101039f
mov eax, dword [eax]
jmp 0x10103a1
xor eax, eax
push eax
push ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.010088c2
test eax, eax
jl 0x1009182
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10103df
test al, 0x10
jne 0x10103df
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x80c]
push eax
call fcn.01004635
mov esi, 0x400
jmp 0x10090f5
push 0x22
pop eax
mov word [ebp - 0x80c], ax
xor eax, eax
mov word [ebp - 0x80a], ax
mov eax, dword [edi]
test eax, eax
je 0x1010406
mov eax, dword [eax]
jmp 0x1010408
xor eax, eax
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.010088c2
test eax, eax
jl 0x1009182
push 0x10041bc
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.010088c2
jmp 0x10091c4