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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bab1
mov eax, dword fs:[0]
push eax
sub esp, 0xe64
mov eax, dword [0x100a21a4]
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.10054b00
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.10054b00
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0xe55], cl
lea ecx, [ebp - 0xe55]
call fcn.10028a80
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 0x1002b3d0
push 0x208
push 0
lea ecx, [ebp - 0xe48]
push ecx
call fcn.10054b00
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.10054b00
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.10029d30
push eax
lea ecx, [ebp - 0xe4c]
call fcn.10002cc0
mov dword [ebp - 4], 0
push 0x10087bb4
lea edx, [ebp - 0xe4c]
push edx
lea eax, [ebp - 0xe64]
push eax
call fcn.1000d090
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 0x1002b3be
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.10054b00
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.100287c0
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 0x1002b43a
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.10029dd0
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10087bc0
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 0x1002b4b5
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.10029ff0
push eax
call fcn.10004030
add esp, 0x1c
push 0x208
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.10054b00
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.10029050
push eax
lea ecx, [ebp - 0xe5b]
call fcn.1002ac10
push eax
push 0x10087bcc
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 0x1002b618
push 0x208
push 0
lea ecx, [ebp - 0xc40]
push ecx
call fcn.10054b00
add esp, 0xc
push 0x10087be4
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.1002a550
push eax
push 0x10087bfc
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.10037e81
mov esp, ebp
pop ebp
ret 4