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

Disassembly:
push 0x240
mov eax, 0x435df2
call fcn.0041f6e2
mov dword [ebp - 0x224], ecx
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0041fdd0
add esp, 0xc
call fcn.00409b0d
push eax
lea ecx, [ebp - 0x220]
call fcn.00401210
mov dword [ebp - 4], ebx
mov dword [ebp - 0x244], ebx
call fcn.00409b0d
push eax
lea ecx, [ebp - 0x240]
call fcn.00401210
xor eax, eax
inc eax
mov byte [ebp - 4], al
call fcn.00409b0d
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401210
mov byte [ebp - 4], 2
call fcn.00409b0d
push eax
lea ecx, [ebp - 0x23c]
call fcn.00401210
push ebx
push 0x25
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402da1
push str.Unable_to_get_system_folder_path._n
mov ecx, 0x44d6ac
call fcn.00401e0c
mov ecx, 0x44d5e0
call fcn.0040892f
mov esi, dword [ebp - 0x240]
jmp 0x403050
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401e0c
push str.kernel32.dll
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040195a
add esp, 0xc
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 4
call fcn.0040126b
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401797
mov esi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x403050
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 0x228]
mov dword [ebp - 0x21c], eax
call edi
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x24c], eax
test edi, edi
je 0x403044
test eax, eax
je 0x403044
push ecx
mov ecx, esp
push str.msvcr120.dll
call fcn.0040188e
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
call fcn.004026e4
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.0040126b
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401797
push ecx
mov ecx, esp
push str.msvcp120.dll
call fcn.0040188e
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
call fcn.004026e4
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.0040126b
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401797
lea eax, [ebp - 0x244]
push eax
call edi
test eax, eax
je 0x403044
mov edi, 0x438f38
lea eax, [ebp - 0x220]
push edi
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040195a
push str.msvcr120.dll
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
push eax
call fcn.0040195a
add esp, 0x18
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 4], 9
lea ecx, [ecx - 0x10]
call fcn.00401797
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040195a
push str.msvcp120.dll
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040195a
add esp, 0x18
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00401797
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40301c
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x230], esp
mov edi, esp
push eax
call fcn.004012f5
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x22c]
mov edi, esp
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
push eax
call fcn.004012f5
pop ecx
mov ecx, dword [ebp - 0x224]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xc
call fcn.00402b6e
test eax, eax
je 0x40301c
push dword [ebp - 0x238]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40301c
mov eax, dword [ebp - 0x238]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x248], esp
mov edi, esp
push eax
call fcn.004012f5
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x23c]
mov edi, esp
add eax, 0xfffffff0
mov byte [ebp - 4], 0xe
push eax
call fcn.004012f5
pop ecx
mov ecx, dword [ebp - 0x224]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xc
call fcn.00402b6e
test eax, eax
push 1
pop eax
cmovne ebx, eax
push dword [ebp - 0x244]
call dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.00401797
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00401797
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.00401797
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00401797
lea ecx, [esi - 0x10]
call fcn.00401797
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401797
mov eax, ebx
call fcn.0041f691
ret