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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc58
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc58], ecx
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa40], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0x830], 0
push 0x206
push 0
lea ecx, [ebp - 0x82e]
push ecx
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0xa38], 0
push 0x206
push 0
lea edx, [ebp - 0xa36]
push edx
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0x628], 0
push 0x206
push 0
lea eax, [ebp - 0x626]
push eax
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0x418], 0
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0xc50], 0
push 0x206
push 0
lea edx, [ebp - 0xc4e]
push edx
call fcn.00474d50
add esp, 0xc
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 - 0x418]
push edx
call fcn.00475212
add esp, 8
lea eax, [ebp - 0x418]
push eax
call fcn.00474e12
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc54], 0
push 0x5c
lea ecx, [ebp - 0x418]
push ecx
call fcn.00406280
add esp, 8
mov dword [ebp - 0xc54], eax
cmp dword [ebp - 0xc54], 0
jne 0x40f897
mov ecx, dword [ebp - 0xc58]
call fcn.00411ba0
jmp 0x40fa10
mov edx, dword [ebp - 0xc54]
mov word [edx], 0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x830]
push ecx
call fcn.00475212
add esp, 8
push str.Local
lea edx, [ebp - 0x830]
push edx
call fcn.004751e8
add esp, 8
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f8e7
mov dword [ebp - 0xa3c], 1
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xa38]
push edx
call fcn.00475212
add esp, 8
push str.LocalLow
lea eax, [ebp - 0xa38]
push eax
call fcn.004751e8
add esp, 8
lea ecx, [ebp - 0xa38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f92c
mov dword [ebp - 0xa44], 1
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x628]
push eax
call fcn.00475212
add esp, 8
push str.Roaming
lea ecx, [ebp - 0x628]
push ecx
call fcn.004751e8
add esp, 8
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f971
mov dword [ebp - 0xa40], 1
cmp dword [ebp - 0xa3c], 0
je 0x40f9a5
cmp dword [ebp - 0xa44], 0
je 0x40f9a5
cmp dword [ebp - 0xa40], 0
je 0x40f9a5
mov ecx, dword [ebp - 0xc58]
call fcn.004118b0
test eax, eax
je 0x40f9a5
mov dword [ebp - 0x41c], 1
cmp dword [ebp - 0x41c], 0
je 0x40fa05
push str.WanNengWBIME.users
lea eax, [ebp - 0xa38]
push eax
push 0x4ca5c8
lea ecx, [ebp - 0xc50]
push ecx
call fcn.00474c76
add esp, 0x10
lea edx, [ebp - 0xc50]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f9ee
lea eax, [ebp - 0xc50]
push eax
call fcn.00412ac0
add esp, 4
lea ecx, [ebp - 0xc50]
push ecx
mov ecx, dword [ebp - 0xc58]
add ecx, 0x24
call fcn.00403660
jmp 0x40fa10
mov ecx, dword [ebp - 0xc58]
call fcn.00411ba0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret