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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1141836
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [0x1161d94]
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [ebp - 0x334], eax
mov eax, dword [edx + 0xc]
xor edi, edi
mov ecx, 0x1161d94
mov dword [ebp - 0x32c], edi
call eax
add eax, 0x10
mov dword [ebp - 0x330], eax
movzx ecx, byte [ebp + 0xc]
push ecx
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
push edi
push 0x10469ec
push 0x1046990
lea edx, [ebp - 0x32c]
push edx
push 0x1046910
lea eax, [ebp - 0x328]
push 2
push eax
call fcn.01075110
add esp, 0x20
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push edi
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov dword [ebp - 0x32c], eax
jl 0x10f4e77
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10f4be0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
call fcn.01076ac0
cmp edi, 0x1c
jne 0x10f4c4d
cmp dword [ebx + 0x338], 6
jb 0x10f4c4d
push esi
lea eax, [ebx + 0x450]
push eax
call fcn.010b5cc0
test al, al
je 0x10f4c4d
mov dword [ebp - 0x32c], 0x8004827f
call fcn.01127f00
test al, al
je 0x10f4e77
mov ecx, dword [ebp - 0x32c]
mov edx, dword [esi]
push ecx
push edx
push 0x1046888
push 0x1046808
jmp 0x10f4e6d
lea eax, [ebp - 0x330]
push eax
mov ecx, ebx
call fcn.010a3870
push 1
push 0x100e2bc
mov ecx, esi
call fcn.0109dbe0
mov ecx, dword [ebp - 0x330]
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0109dbe0
call fcn.01127f00
test al, al
je 0x10f4c9b
mov ecx, dword [esi]
push ecx
push 0x10467c8
push 0x1046748
push 3
call fcn.01128b70
add esp, 0x10
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10f4cf6
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10f4ce4
call fcn.01127f00
test al, al
je 0x10f4cd5
mov edx, dword [esi]
push edx
push 0x1042a38
push 0x10466c8
push 0
call fcn.01128b70
add esp, 0x10
mov dword [ebp - 0x32c], 0x8004827d
jmp 0x10f4e77
cmp edi, 0x1a
jne 0x10f4d94
mov byte [ebx + 3], 1
jmp 0x10f4d94
cmp byte [ebp + 0xc], 0
je 0x10f4d94
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x10f4d65
cmp eax, 0x50
je 0x10f4d65
cmp eax, 0xb7
je 0x10f4d65
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x10f4d2d
call edi
jmp 0x10f4d39
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x32c], eax
call fcn.01127f00
test al, al
je 0x10f4e77
mov eax, dword [ebp - 0x32c]
mov ecx, dword [esi]
push eax
push ecx
push 0x1042958
push 0x1046648
jmp 0x10f4e6d
cmp edi, 0x1c
jne 0x10f4d94
cmp byte [ebx + 3], 0
je 0x10f4d94
call fcn.01127f00
test al, al
je 0x10f4d90
mov edx, dword [esi]
push edx
push 0x1046578
push 0x10464f8
push 3
call fcn.01128b70
add esp, 0x10
mov byte [ebx + 2], 1
push esi
mov esi, dword [ebp - 0x334]
mov ecx, esi
call fcn.0109c210
push 0x10464e8
mov ecx, esi
call fcn.0109f810
call fcn.01127f00
test al, al
je 0x10f4dce
mov eax, dword [esi]
push eax
push 0x10464a8
push 0x1046428
push 3
call fcn.01128b70
add esp, 0x10
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10f4e0b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10f4e77
call fcn.01127f00
test al, al
je 0x10f4cd5
mov ecx, dword [esi]
push ecx
push 0x1042a38
push 0x10463a8
jmp 0x10f4ccb
cmp byte [ebp + 0xc], 0
je 0x10f4e77
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x10f4e77
cmp eax, 0x50
je 0x10f4e77
cmp eax, 0xb7
je 0x10f4e77
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x10f4e3e
call edi
jmp 0x10f4e4a
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x32c], eax
call fcn.01127f00
test al, al
je 0x10f4e77
mov edx, dword [ebp - 0x32c]
mov eax, dword [esi]
push edx
push eax
push 0x1042958
push 0x1046328
push 0
call fcn.01128b70
add esp, 0x14
mov esi, dword [ebp - 0x32c]
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 0
call fcn.01075230
mov eax, dword [ebp - 0x330]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10f4eb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0x10