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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc58
mov eax, dword [0x5ca3a0]
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.0047d440
add esp, 0xc
mov word [ebp - 0x830], 0
push 0x206
push 0
lea ecx, [ebp - 0x82e]
push ecx
call fcn.0047d440
add esp, 0xc
mov word [ebp - 0xa38], 0
push 0x206
push 0
lea edx, [ebp - 0xa36]
push edx
call fcn.0047d440
add esp, 0xc
mov word [ebp - 0x628], 0
push 0x206
push 0
lea eax, [ebp - 0x626]
push eax
call fcn.0047d440
add esp, 0xc
mov word [ebp - 0x418], 0
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.0047d440
add esp, 0xc
mov word [ebp - 0xc50], 0
push 0x206
push 0
lea edx, [ebp - 0xc4e]
push edx
call fcn.0047d440
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.0047ddf0
add esp, 8
lea eax, [ebp - 0x418]
push eax
call fcn.0047dc42
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc54], 0
push 0x5c
lea ecx, [ebp - 0x418]
push ecx
call fcn.00405ae0
add esp, 8
mov dword [ebp - 0xc54], eax
cmp dword [ebp - 0xc54], 0
jne 0x411167
mov ecx, dword [ebp - 0xc58]
call fcn.00413470
jmp 0x4112e0
mov edx, dword [ebp - 0xc54]
mov word [edx], 0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x830]
push ecx
call fcn.0047ddf0
add esp, 8
push str.Local
lea edx, [ebp - 0x830]
push edx
call fcn.0047ddc6
add esp, 8
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4111b7
mov dword [ebp - 0xa3c], 1
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xa38]
push edx
call fcn.0047ddf0
add esp, 8
push str.LocalLow
lea eax, [ebp - 0xa38]
push eax
call fcn.0047ddc6
add esp, 8
lea ecx, [ebp - 0xa38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4111fc
mov dword [ebp - 0xa44], 1
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x628]
push eax
call fcn.0047ddf0
add esp, 8
push str.Roaming
lea ecx, [ebp - 0x628]
push ecx
call fcn.0047ddc6
add esp, 8
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411241
mov dword [ebp - 0xa40], 1
cmp dword [ebp - 0xa3c], 0
je 0x411275
cmp dword [ebp - 0xa44], 0
je 0x411275
cmp dword [ebp - 0xa40], 0
je 0x411275
mov ecx, dword [ebp - 0xc58]
call fcn.00413180
test eax, eax
je 0x411275
mov dword [ebp - 0x41c], 1
cmp dword [ebp - 0x41c], 0
je 0x4112d5
push str.WanNengWBIME.users
lea eax, [ebp - 0xa38]
push eax
push 0x56f5d0
lea ecx, [ebp - 0xc50]
push ecx
call fcn.0047d5b8
add esp, 0x10
lea edx, [ebp - 0xc50]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4112be
lea eax, [ebp - 0xc50]
push eax
call fcn.00414ab0
add esp, 4
lea ecx, [ebp - 0xc50]
push ecx
mov ecx, dword [ebp - 0xc58]
add ecx, 0x24
call fcn.00403660
jmp 0x4112e0
mov ecx, dword [ebp - 0xc58]
call fcn.00413470
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047da50
mov esp, ebp
pop ebp
ret