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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc54
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc54], ecx
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0xc44], 0
mov dword [ebp - 0xc4c], 0
mov dword [ebp - 0xc48], 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 - 0xc40], 0
push 0x206
push 0
lea edx, [ebp - 0xc3e]
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 - 0xa38], 0
push 0x206
push 0
lea edx, [ebp - 0xa36]
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 - 0xc50], 0
push 0x5c
lea ecx, [ebp - 0x418]
push ecx
call fcn.00406280
add esp, 8
mov dword [ebp - 0xc50], eax
cmp dword [ebp - 0xc50], 0
jne 0x40f597
mov ecx, dword [ebp - 0xc54]
call fcn.00411a90
jmp 0x40f710
mov edx, dword [ebp - 0xc50]
mov word [edx], 0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x830]
push ecx
call fcn.00475212
add esp, 8
push 0x4ca504
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 0x40f5e7
mov dword [ebp - 0xc44], 1
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xc40]
push edx
call fcn.00475212
add esp, 8
push 0x4ca514
lea eax, [ebp - 0xc40]
push eax
call fcn.004751e8
add esp, 8
lea ecx, [ebp - 0xc40]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f62c
mov dword [ebp - 0xc4c], 1
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x628]
push eax
call fcn.00475212
add esp, 8
push 0x4ca528
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 0x40f671
mov dword [ebp - 0xc48], 1
cmp dword [ebp - 0xc44], 0
je 0x40f6a5
cmp dword [ebp - 0xc4c], 0
je 0x40f6a5
cmp dword [ebp - 0xc48], 0
je 0x40f6a5
mov ecx, dword [ebp - 0xc54]
call fcn.004118b0
test eax, eax
je 0x40f6a5
mov dword [ebp - 0x41c], 1
cmp dword [ebp - 0x41c], 0
je 0x40f705
push str.WanNengWBIME
lea eax, [ebp - 0xc40]
push eax
push 0x4ca558
lea ecx, [ebp - 0xa38]
push ecx
call fcn.00474c76
add esp, 0x10
lea edx, [ebp - 0xa38]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f6ee
lea eax, [ebp - 0xa38]
push eax
call fcn.00412ac0
add esp, 4
lea ecx, [ebp - 0xa38]
push ecx
mov ecx, dword [ebp - 0xc54]
add ecx, 0x40
call fcn.00403660
jmp 0x40f710
mov ecx, dword [ebp - 0xc54]
call fcn.00411a90
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret