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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a36ad
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10222354]
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, 0x102248bc
call fcn.10008000
movzx eax, al
test eax, eax
jne 0x100ddeea
push 0x102248bc
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov ecx, dword [ebp - 0x23c]
or ecx, 1
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp + 8]
jmp 0x100de0d5
lea ecx, [ebp - 0x14]
call fcn.1000b9c0
mov dword [ebp - 4], 0
push str.shell32.dll
call fcn.100a6d10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100ddf61
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 0x100ddf3b
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x101e7640
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
je 0x100ddf57
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1000baa0
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.10008000
movzx ecx, al
test ecx, ecx
je 0x100ddfb8
mov dx, word [0x101c5850]
mov word [ebp - 0x22c], dx
push 0x206
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.10166680
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.1000baa0
push str.Toolbar4_
lea ecx, [ebp - 0x14]
call fcn.100240f0
lea ecx, [ebp - 0x14]
call fcn.10007f90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100ddfe9
push 0
lea ecx, [ebp - 0x14]
call fcn.10007f90
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.1000b9e0
mov dword [ebp - 0x240], eax
call fcn.100a5fd0
add esp, 4
push 0x101c586c
push 0x10224a04
lea ecx, [ebp - 0x234]
push ecx
call fcn.1008d070
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.10024280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.1000ba80
lea ecx, [ebp - 0x14]
call fcn.10007f90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100de07a
push 0
lea ecx, [ebp - 0x14]
call fcn.10007f90
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.1000b9e0
mov dword [ebp - 0x24c], eax
call fcn.100a5fd0
add esp, 4
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x102248bc
call fcn.10007b80
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000ba80
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.10165d18
mov esp, ebp
pop ebp
ret