Function at 0x1006f8c0
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, 0x6c
mov eax, dword [0x1015a368]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1022b500
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1006fb7b
lea eax, [ebp - 0x34]
mov ecx, 0x10219b00
push eax
call fcn.100487b0
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov ecx, 0x1022b500
mov dword [ebp - 0x1c], 0
cmovae esi, dword [ebp - 0x34]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f935
sub ecx, edx
push ecx
push 0x1022b500
lea ecx, [ebp - 0x1c]
call fcn.100453b0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f951
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.10045600
mov ecx, 0x10216158
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x60]
push eax
movq qword [ebp - 0x50], xmm0
call fcn.10044c40
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006f9c4
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f9ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fa2c
push edx
push ecx
call fcn.100d869a
add esp, 8
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x1006f9f4
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f9ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fa2c
push edx
push ecx
call fcn.100d869a
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x1006fa3c
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fa32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006fa32
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d869a
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, 0x10219560
push eax
call fcn.10049070
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov ecx, 0x1022b500
mov dword [ebp - 0x1c], 0
cmovae esi, dword [ebp - 0x34]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fa72
sub ecx, edx
push ecx
push 0x1022b500
lea ecx, [ebp - 0x1c]
call fcn.100453b0
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fa90
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.10045600
mov ecx, 0x10216170
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x60]
push eax
movq qword [ebp - 0x50], xmm0
call fcn.10044c40
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006fb03
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006faf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fb6b
push edx
push ecx
call fcn.100d869a
add esp, 8
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x1006fb33
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fb29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fb6b
push edx
push ecx
call fcn.100d869a
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x1006fb7b
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fb71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006fb71
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d869a
add esp, 8
cmp dword [0x1021616c], 0x10
mov eax, 0x10216158
cmovae eax, dword [0x10216158]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x1006fba7
call esi
cmp eax, 2
jmp 0x1006fba9
test al, 0x10
jne 0x1006fbc7
cmp dword [0x1021616c], 0x10
mov eax, 0x10216158
push 0
cmovae eax, dword [0x10216158]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x10216184], 0x10
mov eax, 0x10216170
cmovae eax, dword [0x10216170]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1006fbed
call esi
cmp eax, 2
jmp 0x1006fbef
test al, 0x10
jne 0x1006fc0d
cmp dword [0x10216184], 0x10
mov eax, 0x10216170
push 0
cmovae eax, dword [0x10216170]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d8158
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret