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

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x1007b940]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x24
mov eax, 0x100601d2
call fcn.1003230f
mov eax, dword [ebp + 0x628]
mov esi, dword [ebp + 0x634]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x62c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x630]
xor ebx, ebx
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
mov edi, 0x104
push edi
lea eax, [ebp]
push eax
push dword [ebp + 0x624]
call fcn.1002ac98
add esp, 0x10
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1002c3e0
xor eax, eax
jmp 0x1002c3f9
lea esi, [eax + eax]
mov eax, esi
call fcn.10031b30
mov eax, esp
push 3
push esi
lea ecx, [ebp]
push ecx
push eax
call fcn.100013bb
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.10031100
lea eax, [ebp + 0x208]
push str..lnk
push eax
call fcn.10031110
mov esi, 0x103
push esi
lea eax, [ebp + 0x515]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp + 0x514], bl
call fcn.10031b60
push esi
lea eax, [ebp + 0x411]
push ebx
push eax
mov byte [ebp + 0x410], bl
call fcn.10031b60
add esp, 0x28
lea eax, [ebp - 0x18]
push eax
push 2
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1002c4e8
lea eax, [ebp + 0x514]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, ebx
je 0x1002c4c1
lea eax, [ebp + 0x514]
push eax
call fcn.100300d0
pop ecx
test eax, eax
jbe 0x1002c4c1
lea eax, [ebp + 0x514]
push eax
call fcn.1002c12c
push dword [ebp - 0x14]
lea eax, [ebp + 0x514]
push eax
call fcn.10031110
lea eax, [ebp + 0x514]
push eax
lea eax, [ebp + 0x410]
push eax
call fcn.10031100
lea eax, [ebp + 0x514]
push eax
call fcn.1002c12c
add esp, 0x18
cmp dword [ebp - 0x18], ebx
je 0x1002c4e8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
push eax
push 0x10064bcc
push 1
push ebx
push 0x100673cc
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x1002c61a
lea eax, [ebp + 0x30c]
cmp dword [ebp - 0x20], ebx
jne 0x1002c520
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x1002c52b
push dword [ebp - 0x20]
push eax
call fcn.10031100
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp + 0x30c]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x30c]
push edx
push eax
call dword [ecx + 0x44]
lea ecx, [ebp - 0x30]
call fcn.10002e2d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.10031110
pop ecx
pop ecx
lea eax, [ebp + 0x514]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1002c608
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.1002c344
lea eax, [ebp + 0x514]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x1002c5c5
xor eax, eax
jmp 0x1002c5df
lea eax, [esi + esi]
call fcn.10031b30
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x514]
push ecx
push eax
call fcn.10001383
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push 1
push eax
push ecx
call dword [edx + 0x18]
lea eax, [ebp + 0x410]
push eax
call fcn.1002c0df
mov eax, dword [ebp - 0x1c]
pop ecx
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x1002c608
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
inc eax
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.100302c9
add ebp, 0x61c
leave
ret