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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x4528e4]
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.0042d590
add esp, 0xc
mov dx, word [0x45298c]
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.0042d590
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x4529d4
lea eax, [ebp - 0x20c]
push eax
call fcn.0042faf2
add esp, 8
mov dword [ebp - 0x418], 2
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0042fb23
add esp, 8
test eax, eax
jne 0x426a3c
mov eax, 3
jmp 0x426c2a
push 0x4663bc
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
je 0x426b42
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x426b26
push 1
lea ecx, [ebp - 0x414]
push ecx
call fcn.0041e220
add esp, 8
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.0041e220
add esp, 8
mov eax, dword [0x466b00]
cmp eax, dword [0x466b10]
jg 0x426b0e
mov ecx, dword [0x466b00]
cmp ecx, dword [0x466b10]
jne 0x426aaf
mov edx, dword [0x466b04]
cmp edx, dword [0x466b14]
jg 0x426b0e
mov eax, dword [0x466b00]
cmp eax, dword [0x466b10]
jne 0x426ad8
mov ecx, dword [0x466b04]
cmp ecx, dword [0x466b14]
jne 0x426ad8
mov edx, dword [0x466b08]
cmp edx, dword [0x466b18]
jg 0x426b0e
mov eax, dword [0x466b00]
cmp eax, dword [0x466b10]
jne 0x426b1a
mov ecx, dword [0x466b04]
cmp ecx, dword [0x466b14]
jne 0x426b1a
mov edx, dword [0x466b08]
cmp edx, dword [0x466b18]
jne 0x426b1a
mov eax, dword [0x466b0c]
cmp eax, dword [0x466b1c]
jle 0x426b1a
mov dword [ebp - 0x418], 1
jmp 0x426b24
mov dword [ebp - 0x418], 0
jmp 0x426b30
mov dword [ebp - 0x418], 2
mov ecx, dword [0x4663bc]
push ecx
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x426c24
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x426c1a
push 1
lea eax, [ebp - 0x414]
push eax
call fcn.0041e220
add esp, 8
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0041e220
add esp, 8
mov edx, dword [0x466b00]
cmp edx, dword [0x466b10]
jg 0x426c02
mov eax, dword [0x466b00]
cmp eax, dword [0x466b10]
jne 0x426ba2
mov ecx, dword [0x466b04]
cmp ecx, dword [0x466b14]
jg 0x426c02
mov edx, dword [0x466b00]
cmp edx, dword [0x466b10]
jne 0x426bcb
mov eax, dword [0x466b04]
cmp eax, dword [0x466b14]
jne 0x426bcb
mov ecx, dword [0x466b08]
cmp ecx, dword [0x466b18]
jg 0x426c02
mov edx, dword [0x466b00]
cmp edx, dword [0x466b10]
jne 0x426c0e
mov eax, dword [0x466b04]
cmp eax, dword [0x466b14]
jne 0x426c0e
mov ecx, dword [0x466b08]
cmp ecx, dword [0x466b18]
jne 0x426c0e
mov edx, dword [0x466b0c]
cmp edx, dword [0x466b1c]
jle 0x426c0e
mov dword [ebp - 0x418], 1
jmp 0x426c18
mov dword [ebp - 0x418], 0
jmp 0x426c24
mov dword [ebp - 0x418], 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret