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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ad58d
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1022c684]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], 0
mov ecx, 0x1022ec40
call fcn.10004400
movzx eax, al
test eax, eax
jne 0x100e12ca
push 0x1022ec40
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov ecx, dword [ebp - 0x23c]
or ecx, 1
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp + 8]
jmp 0x100e14b5
lea ecx, [ebp - 0x14]
call fcn.10005d40
mov dword [ebp - 4], 0
push str.shell32.dll
call fcn.100aa6f0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100e1341
mov dword [ebp - 0x1c], 0
push str.SHGetKnownFolderPath
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100e131b
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x101f0008
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
je 0x100e1337
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10005e20
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x14]
call fcn.10004400
movzx ecx, al
test ecx, ecx
je 0x100e1398
mov dx, word [0x101d01a0]
mov word [ebp - 0x22c], dx
push 0x206
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.1016f6c0
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x14]
call fcn.10005e20
push str.Toolbar4_
lea ecx, [ebp - 0x14]
call fcn.10025620
lea ecx, [ebp - 0x14]
call fcn.10004390
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100e13c9
push 0
lea ecx, [ebp - 0x14]
call fcn.10004390
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
lea eax, [ebp - 0x14]
push eax
call fcn.10005d60
mov dword [ebp - 0x240], eax
call fcn.100a9bb0
add esp, 4
push 0x101d01bc
push 0x1022edbc
lea ecx, [ebp - 0x234]
push ecx
call fcn.10090bb0
add esp, 0xc
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x248], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x248]
push eax
lea ecx, [ebp - 0x14]
call fcn.100257b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.10005e00
lea ecx, [ebp - 0x14]
call fcn.10004390
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100e145a
push 0
lea ecx, [ebp - 0x14]
call fcn.10004390
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
mov ecx, esp
mov dword [ebp - 0x238], esp
lea edx, [ebp - 0x14]
push edx
call fcn.10005d60
mov dword [ebp - 0x24c], eax
call fcn.100a9bb0
add esp, 4
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1022ec40
call fcn.10003ea0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10005e00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1016f6a2
mov esp, ebp
pop ebp
ret