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

Disassembly:
push 0x244
mov eax, 0x42f8f0
call fcn.00419b03
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x248], ebx
call fcn.00419e20
add esp, 0xc
call fcn.00408a1f
push eax
lea ecx, [ebp - 0x220]
call fcn.00401212
mov dword [ebp - 4], ebx
mov dword [ebp - 0x244], ebx
call fcn.00408a1f
push eax
lea ecx, [ebp - 0x230]
call fcn.00401212
mov byte [ebp - 4], 1
call fcn.00408a1f
push eax
lea ecx, [ebp - 0x234]
call fcn.00401212
mov byte [ebp - 4], 2
call fcn.00408a1f
push eax
lea ecx, [ebp - 0x23c]
call fcn.00401212
push ebx
push 0x25
lea eax, [ebp - 0x218]
push eax
push ebx
mov byte [ebp - 4], 3
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402c8a
push str.Unable_to_get_system_folder_path._n
mov ecx, 0x4423fc
call fcn.00401a16
mov ecx, 0x442358
call fcn.0040678d
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401039
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.00401039
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.00401039
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401039
mov eax, ebx
call fcn.00419b86
ret
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401a16
push 0x432fd0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401a35
add esp, 0xc
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00401430
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401039
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp eax, ebx
je 0x402f24
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 0x224]
mov esi, eax
call edi
mov dword [ebp - 0x250], eax
cmp esi, ebx
je 0x402f18
cmp eax, ebx
je 0x402f18
push ecx
mov ecx, esp
mov dword [ebp - 0x240], esp
mov ebx, str.msvcr100.dll
push ebx
call fcn.00401ab4
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402801
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.00401430
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401039
push ecx
mov ecx, esp
mov dword [ebp - 0x240], esp
mov edi, str.msvcp100.dll
push edi
call fcn.00401ab4
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402801
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.00401430
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401039
lea eax, [ebp - 0x244]
push eax
call esi
test eax, eax
je 0x402f18
mov esi, 0x432eb8
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00401a35
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 7
call fcn.00401a35
add esp, 0x18
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
mov byte [ebp - 4], 9
call fcn.00401039
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00401a35
push edi
push eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00401a35
add esp, 0x18
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00401039
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x402ef0
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x238], esp
mov ecx, esp
push eax
call fcn.004017c0
push ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x24c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xd
call fcn.004017c0
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 0xc
call fcn.00402a13
test eax, eax
je 0x402ef0
push dword [ebp - 0x22c]
call esi
test eax, eax
je 0x402ef0
push ecx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], esp
mov ecx, esp
push eax
call fcn.004017c0
push ecx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.004017c0
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 0xc
call fcn.00402a13
test eax, eax
je 0x402ef0
mov dword [ebp - 0x248], 1
push dword [ebp - 0x244]
call dword [ebp - 0x250]
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.00401039
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00401039
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x248]
jmp 0x402c4a