Function at 0x1006f9e0
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 0x10215ea0
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1006fc9b
lea eax, [ebp - 0x34]
mov ecx, 0x102055a0
push eax
call fcn.10048090
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov ecx, 0x10215ea0
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 0x1006fa55
sub ecx, edx
push ecx
push 0x10215ea0
lea ecx, [ebp - 0x1c]
call fcn.10045350
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fa71
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.100455a0
mov ecx, 0x10211f24
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.10044be0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006fae4
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fada
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fb4c
push edx
push ecx
call fcn.100d7f7a
add esp, 8
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x1006fb14
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fb0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fb4c
push edx
push ecx
call fcn.100d7f7a
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 0x1006fb5c
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fb52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006fb52
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7f7a
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, 0x10204230
push eax
call fcn.10048d70
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov ecx, 0x10215ea0
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 0x1006fb92
sub ecx, edx
push ecx
push 0x10215ea0
lea ecx, [ebp - 0x1c]
call fcn.10045350
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fbb0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.100455a0
mov ecx, 0x10211f3c
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.10044be0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006fc23
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fc19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fc8b
push edx
push ecx
call fcn.100d7f7a
add esp, 8
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x1006fc53
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fc49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fc8b
push edx
push ecx
call fcn.100d7f7a
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 0x1006fc9b
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006fc91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006fc91
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7f7a
add esp, 8
cmp dword [0x10211f38], 0x10
mov eax, 0x10211f24
cmovae eax, dword [0x10211f24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x1006fcc7
call esi
cmp eax, 2
jmp 0x1006fcc9
test al, 0x10
jne 0x1006fce7
cmp dword [0x10211f38], 0x10
mov eax, 0x10211f24
push 0
cmovae eax, dword [0x10211f24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x10211f50], 0x10
mov eax, 0x10211f3c
cmovae eax, dword [0x10211f3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1006fd0d
call esi
cmp eax, 2
jmp 0x1006fd0f
test al, 0x10
jne 0x1006fd2d
cmp dword [0x10211f50], 0x10
mov eax, 0x10211f3c
push 0
cmovae eax, dword [0x10211f3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d7a38
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret