Function at 0x100108a0
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x100d00b4]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
sub esp, 0x18
mov ebx, ecx
mov ecx, esp
push 0xffffffffffffffff
lea eax, [ebx + 0x48]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100018d0
lea ecx, [esp + 0x2c]
call fcn.1000e230
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x100108f8
mov esi, dword [esi]
mov edi, dword [ebx + 0x78]
lea eax, [esp + 0x40]
push 0x208
xorps xmm0, xmm0
mov byte [esp + 0x30], 0
push 0
push eax
movups xmmword [esp + 0x39], xmm0
mov word [esp + 0x49], 0
mov byte [esp + 0x4b], 0
call fcn.1006fa30
add esp, 0xc
mov dword [esp + 0xc], 0x14
test esi, esi
je 0x100109a9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100109a9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x100109a9
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010950
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x100109a9
push 0x104
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.1004ed60
mov esi, eax
cmp esi, 1
jne 0x100109ab
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
push ecx
push 2
push edi
lea ecx, [esp + 0x3c]
call fcn.1004eb40
add esp, 0x10
mov esi, eax
jmp 0x100109ab
xor esi, esi
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x100109c3
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.10009440
test esi, esi
je 0x100109d5
mov ecx, dword [ebx + 0x78]
lea eax, [ecx + 1]
mov dword [ebx + 0x78], eax
call fcn.1004dee0
mov esi, dword [ebx + 0x80]
cmp esi, dword [ebx + 0x84]
je 0x10010b1a
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.100018d0
lea ecx, [esp + 0x2c]
call fcn.1000e230
mov edi, eax
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x10010a1d
mov edi, dword [edi]
mov eax, dword [ebx + 0x78]
xorps xmm0, xmm0
push 0x208
mov dword [esp + 0x14], eax
lea eax, [esp + 0x44]
push 0
push eax
mov byte [esp + 0x38], 0
movups xmmword [esp + 0x39], xmm0
mov word [esp + 0x49], 0
mov byte [esp + 0x4b], 0
call fcn.1006fa30
add esp, 0xc
mov dword [esp + 0xc], 0x14
test edi, edi
je 0x10010ae1
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10010a70
xor edi, edi
jmp 0x10010ae1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x10010a7f
xor edi, edi
jmp 0x10010ae1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010a84
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jbe 0x10010a9f
xor edi, edi
jmp 0x10010ae1
push 0x104
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.1004ed60
mov edi, eax
cmp edi, 1
jne 0x10010ae1
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
push ecx
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.1004eb40
add esp, 0x10
mov edi, eax
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x10010af9
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.10009440
test edi, edi
je 0x10010b0b
mov ecx, dword [ebx + 0x78]
lea eax, [ecx + 1]
mov dword [ebx + 0x78], eax
call fcn.1004dee0
add esi, 0x18
cmp esi, dword [ebx + 0x84]
jne 0x100109e7
mov ecx, dword [esp + 0x24c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret