Function at 0x10029fc0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a661
mov eax, dword fs:[0]
push eax
sub esp, 0xe64
mov eax, dword [0x100a11a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe70], ecx
push 0x208
push 0
lea eax, [ebp - 0x628]
push eax
call fcn.10053860
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.10053860
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0xe55], cl
lea ecx, [ebp - 0xe55]
call fcn.10027820
push eax
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp + 8], 0
je 0x1002a190
push 0x208
push 0
lea ecx, [ebp - 0xe48]
push ecx
call fcn.10053860
add esp, 0xc
push 1
push 0x19
lea edx, [ebp - 0xe48]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x208
push 0
lea eax, [ebp - 0xa38]
push eax
call fcn.10053860
add esp, 0xc
push 4
lea ecx, [ebp - 0xe4c]
call fcn.100062d0
xor ecx, ecx
mov byte [ebp - 0xe56], cl
lea ecx, [ebp - 0xe56]
call fcn.10028b00
push eax
lea ecx, [ebp - 0xe4c]
call fcn.10002cc0
mov dword [ebp - 4], 0
push 0x10086b80
lea edx, [ebp - 0xe4c]
push edx
lea eax, [ebp - 0xe64]
push eax
call fcn.1000d070
add esp, 0xc
mov dword [ebp - 0xe60], eax
mov ecx, dword [ebp - 0xe60]
call fcn.100034b0
push eax
lea ecx, [ebp - 0xe48]
push ecx
lea edx, [ebp - 0xa38]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xe64]
call fcn.10003140
mov dword [ebp - 0xe68], 0
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002a17e
push 0
push 0
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0xa38]
push edx
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xe4c]
call fcn.100034b0
push eax
call fcn.10004030
add esp, 0x1c
mov dword [ebp - 0xe68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4c]
call fcn.10003140
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.10053860
add esp, 0xc
push 1
push 0x17
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov byte [ebp - 0xe57], al
lea ecx, [ebp - 0xe57]
call fcn.10027570
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002a1fa
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor ecx, ecx
mov byte [ebp - 0xe58], cl
lea ecx, [ebp - 0xe58]
call fcn.10028ba0
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10086b8c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002a275
xor edx, edx
mov byte [ebp - 0xe59], dl
push 0
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0xe59]
call fcn.10028de0
push eax
call fcn.10004030
add esp, 0x1c
push 0x208
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.10053860
add esp, 0xc
push 1
push 0x17
lea ecx, [ebp - 0x830]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 4
lea ecx, [ebp - 0xe54]
call fcn.100062d0
lea ecx, [ebp - 0xe54]
call fcn.10002d70
mov dword [ebp - 4], 1
xor edx, edx
mov byte [ebp - 0xe5a], dl
xor eax, eax
mov byte [ebp - 0xe5b], al
lea ecx, [ebp - 0xe5a]
call fcn.10027e40
push eax
lea ecx, [ebp - 0xe5b]
call fcn.100299d0
push eax
push 0x10086b98
lea ecx, [ebp - 0xe54]
push ecx
call fcn.100046a0
add esp, 0x10
lea ecx, [ebp - 0xe54]
call fcn.100034b0
push eax
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002a3d8
push 0x208
push 0
lea ecx, [ebp - 0xc40]
push ecx
call fcn.10053860
add esp, 0xc
push 0x10086bb0
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 4
lea ecx, [ebp - 0xe50]
call fcn.100062d0
lea ecx, [ebp - 0xe50]
call fcn.10002d70
mov byte [ebp - 4], 2
xor ecx, ecx
mov byte [ebp - 0xe5c], cl
lea ecx, [ebp - 0xe5c]
call fcn.10029330
push eax
push 0x10086bc8
lea edx, [ebp - 0xe50]
push edx
call fcn.100046a0
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0xc40]
push eax
lea ecx, [ebp - 0x830]
push ecx
push 0
lea edx, [ebp - 0xc40]
push edx
lea ecx, [ebp - 0xe50]
call fcn.100034b0
push eax
call fcn.10004030
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe50]
call fcn.10003140
mov dword [ebp - 0xe6c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe54]
call fcn.10003140
mov eax, dword [ebp - 0xe6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036c51
mov esp, ebp
pop ebp
ret 4