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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1bc
mov ebx, dword [ebp + 8]
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x94]
mov esi, 0xff
push 0x84
push esi
push edi
call fcn.101db130
add esp, 0xc
mov dword [edi - 0xc], edi
mov dword [edi - 8], edi
lea eax, [ebp - 0x14]
mov dword [edi - 4], eax
lea edi, [ebp - 0x1a4]
push 0x104
push esi
push edi
call fcn.101db130
add esp, 0xc
mov dword [edi - 0xc], edi
mov dword [edi - 8], edi
lea eax, [ebp - 0xa4]
mov dword [edi - 4], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x1b8]
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0xa0]
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.1007f7b0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c0], ecx
cmp ecx, 3
jbe 0x10080892
cmp dword [eax], 0x5c2e5c5c
je 0x100808eb
xor esi, esi
mov byte [ebp - 0x1c5], 1
mov ebx, ecx
mov edi, dword [esi*4 + 0x1021531c]
push edi
call fcn.101eda50
add esp, 4
cmp ebx, eax
jne 0x100808c2
lea ecx, [ebp - 0x1c4]
push ebx
push edi
call fcn.1008233c
test eax, eax
je 0x100808d9
cmp esi, 0x15
setb al
mov byte [ebp - 0x1c5], al
je 0x100808d9
inc esi
mov ebx, dword [ebp - 0x1c0]
jmp 0x1008089d
test byte [ebp - 0x1c5], 1
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1a4]
je 0x1008091a
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x20], eax
xorps xmm0, xmm0
movups xmmword [ecx + 0x10], xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x24], 6
mov dword [ecx + 0x28], 0xffff
mov dword [ebx], eax
call fcn.101ada37
mov dword [ebx + 4], eax
jmp 0x10080a21
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov word [ebp - 0x1bc], 0x105
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1c4]
push eax
push ebx
call fcn.10080c93
add esp, 0xc
cmp dword [ebx], 0
jne 0x10080a21
push dword [ebp - 0x1b0]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100809f9
bt eax, 0xa
jae 0x100809ac
mov eax, dword [ebp - 0x1b0]
sub esp, 0x1c
movaps xmm0, xmmword [0x10215300]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100809f9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x1b0]
sub esp, 0x1c
movaps xmm0, xmmword [0x10215300]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10080a0b
mov edi, eax
mov ecx, ebx
mov edx, eax
push dword [ebp + 0x10]
call fcn.10081322
add esp, 4
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10080a1b
xor edx, edx
dec edx
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.10081322
add esp, 4
jmp 0x10080a21
xor edx, edx
dec edx
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.10081322
add esp, 4
lea edi, [ebp - 0x1a4]
mov eax, dword [ebp - 0x1b0]
cmp eax, edi
je 0x10080a34
push eax
call fcn.101de61d
add esp, 4
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x10080a4d
push eax
call fcn.101de61d
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d7611
mov eax, ebx
add esp, 0x1bc
pop esi
pop edi
pop ebx
pop ebp
ret