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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa54], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa48], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x838], dx
push 0x206
push 0
lea eax, [ebp - 0x836]
push eax
call fcn.00488f20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xa40], cx
push 0x206
push 0
lea edx, [ebp - 0xa3e]
push edx
call fcn.00488f20
add esp, 0xc
xor eax, eax
mov word [ebp - 0x630], ax
push 0x206
push 0
lea ecx, [ebp - 0x62e]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
push 0
push 0x1a
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.00488f00
add esp, 8
lea ecx, [ebp - 0x420]
push ecx
call fcn.00488ea9
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xa50], 0
push 0x5c
lea edx, [ebp - 0x420]
push edx
call fcn.004456d0
add esp, 8
mov dword [ebp - 0xa50], eax
cmp dword [ebp - 0xa50], 0
jne 0x4019c2
mov ecx, dword [ebp - 0xa54]
call fcn.00401b70
jmp 0x401b5d
xor eax, eax
mov ecx, dword [ebp - 0xa50]
mov word [ecx], ax
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x838]
push eax
call fcn.00488f00
add esp, 8
push str.Local
lea ecx, [ebp - 0x838]
push ecx
call fcn.00488ed2
add esp, 8
lea edx, [ebp - 0x838]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401a12
mov dword [ebp - 0xa44], 1
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa40]
push ecx
call fcn.00488f00
add esp, 8
push str.LocalLow
lea edx, [ebp - 0xa40]
push edx
call fcn.00488ed2
add esp, 8
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401a57
mov dword [ebp - 0xa4c], 1
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x630]
push edx
call fcn.00488f00
add esp, 8
push str.Roaming
lea eax, [ebp - 0x630]
push eax
call fcn.00488ed2
add esp, 8
lea ecx, [ebp - 0x630]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401a9c
mov dword [ebp - 0xa48], 1
cmp dword [ebp - 0xa44], 0
je 0x401ad0
cmp dword [ebp - 0xa4c], 0
je 0x401ad0
cmp dword [ebp - 0xa48], 0
je 0x401ad0
mov ecx, dword [ebp - 0xa54]
call fcn.004013b0
test eax, eax
je 0x401ad0
mov dword [ebp - 0x424], 1
cmp dword [ebp - 0x424], 0
je 0x401b52
push str.hhsoft
lea edx, [ebp - 0xa40]
push edx
push 0x558ca0
mov eax, dword [ebp - 0xa54]
add eax, 0x10
push eax
call fcn.00488dd2
add esp, 0x10
push 0x558cb0
mov ecx, dword [ebp - 0xa54]
add ecx, 0x10
push ecx
call fcn.00488ed2
add esp, 8
push 0x558cbc
mov edx, dword [ebp - 0xa54]
add edx, 0x10
push edx
call fcn.00488ed2
add esp, 8
mov eax, dword [ebp - 0xa54]
add eax, 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401b50
mov ecx, dword [ebp - 0xa54]
add ecx, 0x10
push ecx
call fcn.0040cd80
add esp, 4
jmp 0x401b5d
mov ecx, dword [ebp - 0xa54]
call fcn.00401b70
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret