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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc60
mov eax, dword [0x4e3260]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc60], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa48], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0x838], 0
push 0x206
push 0
lea ecx, [ebp - 0x836]
push ecx
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0xa40], 0
push 0x206
push 0
lea edx, [ebp - 0xa3e]
push edx
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0x630], 0
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0xc58], 0
push 0x206
push 0
lea edx, [ebp - 0xc56]
push edx
call fcn.0046ee70
add esp, 0xc
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
push 0
push 0x1a
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x420]
push edx
call fcn.0046f820
add esp, 8
lea eax, [ebp - 0x420]
push eax
call fcn.0046f672
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc5c], 0
push 0x5c
lea ecx, [ebp - 0x420]
push ecx
call fcn.00405870
add esp, 8
mov dword [ebp - 0xc5c], eax
cmp dword [ebp - 0xc5c], 0
jne 0x410841
mov ecx, dword [ebp - 0xc60]
call fcn.00412b50
jmp 0x4109ba
mov edx, dword [ebp - 0xc5c]
mov word [edx], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x838]
push ecx
call fcn.0046f820
add esp, 8
push str.Local
lea edx, [ebp - 0x838]
push edx
call fcn.0046f7f6
add esp, 8
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410891
mov dword [ebp - 0xa44], 1
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0xa40]
push edx
call fcn.0046f820
add esp, 8
push str.LocalLow
lea eax, [ebp - 0xa40]
push eax
call fcn.0046f7f6
add esp, 8
lea ecx, [ebp - 0xa40]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4108d6
mov dword [ebp - 0xa4c], 1
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x630]
push eax
call fcn.0046f820
add esp, 8
push str.Roaming
lea ecx, [ebp - 0x630]
push ecx
call fcn.0046f7f6
add esp, 8
lea edx, [ebp - 0x630]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41091b
mov dword [ebp - 0xa48], 1
cmp dword [ebp - 0xa44], 0
je 0x41094f
cmp dword [ebp - 0xa4c], 0
je 0x41094f
cmp dword [ebp - 0xa48], 0
je 0x41094f
mov ecx, dword [ebp - 0xc60]
call fcn.00412860
test eax, eax
je 0x41094f
mov dword [ebp - 0x424], 1
cmp dword [ebp - 0x424], 0
je 0x4109af
push 0x4c1c20
lea eax, [ebp - 0xa40]
push eax
push 0x4c1c48
lea ecx, [ebp - 0xc58]
push ecx
call fcn.0046efe8
add esp, 0x10
lea edx, [ebp - 0xc58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410998
lea eax, [ebp - 0xc58]
push eax
call fcn.004132f0
add esp, 4
lea ecx, [ebp - 0xc58]
push ecx
mov ecx, dword [ebp - 0xc60]
add ecx, 0x24
call fcn.00403490
jmp 0x4109ba
mov ecx, dword [ebp - 0xc60]
call fcn.00412b50
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046f480
mov esp, ebp
pop ebp
ret