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

Disassembly:
push 0x244
mov eax, 0x42f7ef
call fcn.00419a13
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.00419d30
add esp, 0xc
call fcn.004089b3
push eax
lea ecx, [ebp - 0x220]
call fcn.00401217
mov dword [ebp - 4], ebx
mov dword [ebp - 0x244], ebx
call fcn.004089b3
push eax
lea ecx, [ebp - 0x230]
call fcn.00401217
mov byte [ebp - 4], 1
call fcn.004089b3
push eax
lea ecx, [ebp - 0x234]
call fcn.00401217
mov byte [ebp - 4], 2
call fcn.004089b3
push eax
lea ecx, [ebp - 0x23c]
call fcn.00401217
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 0x402c8d
push str.Unable_to_get_system_folder_path._n
mov ecx, 0x4423fc
call fcn.00401a1b
mov ecx, 0x442358
call fcn.00406721
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040103e
mov eax, ebx
call fcn.00419a96
ret
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401a1b
push 0x432fa8
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3a
add esp, 0xc
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00401435
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040103e
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp eax, ebx
je 0x402f27
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 0x402f1b
cmp eax, ebx
je 0x402f1b
push ecx
mov ecx, esp
mov dword [ebp - 0x240], esp
mov ebx, str.msvcr100.dll
push ebx
call fcn.00401ab9
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402804
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.00401435
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040103e
push ecx
mov ecx, esp
mov dword [ebp - 0x240], esp
mov edi, str.msvcp100.dll
push edi
call fcn.00401ab9
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402804
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.00401435
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040103e
lea eax, [ebp - 0x244]
push eax
call esi
test eax, eax
je 0x402f1b
mov esi, 0x432e90
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00401a3a
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 7
call fcn.00401a3a
add esp, 0x18
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
mov byte [ebp - 4], 9
call fcn.0040103e
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00401a3a
push edi
push eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00401a3a
add esp, 0x18
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.0040103e
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x402ef3
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x238], esp
mov ecx, esp
push eax
call fcn.004017c5
push ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x24c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xd
call fcn.004017c5
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 0xc
call fcn.00402a16
test eax, eax
je 0x402ef3
push dword [ebp - 0x22c]
call esi
test eax, eax
je 0x402ef3
push ecx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], esp
mov ecx, esp
push eax
call fcn.004017c5
push ecx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.004017c5
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 0xc
call fcn.00402a16
test eax, eax
je 0x402ef3
mov dword [ebp - 0x248], 1
push dword [ebp - 0x244]
call dword [ebp - 0x250]
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040103e
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x248]
jmp 0x402c4d