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

Disassembly:
push 0x240
mov eax, 0x43917c
call fcn.00421793
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.00420ec0
add esp, 0xc
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x220]
call fcn.004012cf
mov dword [ebp - 4], ebx
mov dword [ebp - 0x244], ebx
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x240]
call fcn.004012cf
xor eax, eax
inc eax
mov byte [ebp - 4], al
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x22c]
call fcn.004012cf
mov byte [ebp - 4], 2
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x23c]
call fcn.004012cf
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 0x402ec5
push str.Unable_to_get_system_folder_path._n
mov ecx, 0x453994
call fcn.00401ec8
mov ecx, 0x4538c8
call fcn.0040a616
mov esi, dword [ebp - 0x240]
jmp 0x403174
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401ec8
push str.kernel32.dll
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00401a19
add esp, 0xc
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 4
call fcn.0040132a
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401856
mov esi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x403174
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 0x403168
test eax, eax
je 0x403168
push ecx
mov ecx, esp
push str.msvcr120.dll
call fcn.0040194d
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402808
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.0040132a
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401856
push ecx
mov ecx, esp
push str.msvcp120.dll
call fcn.0040194d
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402808
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.0040132a
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401856
lea eax, [ebp - 0x244]
push eax
call edi
test eax, eax
je 0x403168
mov edi, 0x43cf30
lea eax, [ebp - 0x220]
push edi
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00401a19
push str.msvcr120.dll
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
push eax
call fcn.00401a19
add esp, 0x18
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 4], 9
lea ecx, [ecx - 0x10]
call fcn.00401856
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00401a19
push str.msvcp120.dll
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xa
push eax
call fcn.00401a19
add esp, 0x18
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00401856
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403140
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x230], esp
mov edi, esp
push eax
call fcn.004013b4
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.004013b4
pop ecx
mov ecx, dword [ebp - 0x224]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xc
call fcn.00402c92
test eax, eax
je 0x403140
push dword [ebp - 0x238]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403140
mov eax, dword [ebp - 0x238]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x248], esp
mov edi, esp
push eax
call fcn.004013b4
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.004013b4
pop ecx
mov ecx, dword [ebp - 0x224]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xc
call fcn.00402c92
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.00401856
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00401856
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00401856
lea ecx, [esi - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, ebx
call fcn.00421742
ret