Function at 0x1006fea0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1015a380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x10217178
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1007013e
lea eax, [ebp - 0x1c]
mov ecx, 0x10206cd8
push eax
call fcn.10055c10
cmp dword [ebp - 8], 0xf
lea esi, [ebp - 0x1c]
mov ecx, 0x10217178
mov dword [ebp - 0x30], 0
cmova esi, dword [ebp - 0x1c]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006ff18
sub ecx, edx
push ecx
push 0x10217178
lea ecx, [ebp - 0x40]
call fcn.10046bd0
push esi
lea ecx, [ebp - 0x40]
call fcn.100459d0
mov ecx, 0x10213160
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x70], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x80]
push eax
call fcn.10045b10
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1006ff98
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ff8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10070000
push ecx
push edx
call fcn.100d7f1a
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1006ffc8
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ffbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10070000
push ecx
push edx
call fcn.100d7f1a
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x10070010
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10070006
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10070006
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d7f1a
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x10206a10
push eax
call fcn.1004a260
cmp dword [ebp - 8], 0xf
lea esi, [ebp - 0x1c]
mov ecx, 0x10217178
mov dword [ebp - 0x50], 0
cmova esi, dword [ebp - 0x1c]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10070046
sub ecx, edx
push ecx
push 0x10217178
lea ecx, [ebp - 0x60]
call fcn.10046bd0
push esi
lea ecx, [ebp - 0x60]
call fcn.100459d0
mov ecx, 0x10213178
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x70], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x80]
push eax
call fcn.10045b10
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x100700c6
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100700bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007012e
push ecx
push edx
call fcn.100d7f1a
add esp, 8
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x100700f6
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100700ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007012e
push ecx
push edx
call fcn.100d7f1a
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1007013e
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10070134
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10070134
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d7f1a
add esp, 8
cmp dword [0x10213174], 0xf
mov eax, 0x10213160
cmova eax, dword [0x10213160]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x1007016a
call esi
cmp eax, 2
jmp 0x1007016c
test al, 0x10
jne 0x1007018a
cmp dword [0x10213174], 0xf
mov eax, 0x10213160
push 0
cmova eax, dword [0x10213160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x1021318c], 0xf
mov eax, 0x10213178
cmova eax, dword [0x10213178]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100701b0
call esi
cmp eax, 2
jmp 0x100701b2
test al, 0x10
jne 0x100701d0
cmp dword [0x1021318c], 0xf
mov eax, 0x10213178
push 0
cmova eax, dword [0x10213178]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d7b08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret