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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6bcd2c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x658], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x648], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x64c], eax
jne 0x419c85
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00402394
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00402394
push 0xffffffffffffffff
push str.ntdll.dll
lea eax, [ebp - 0x414]
push eax
push str._s_s
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00419d0c
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x419b6d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419bef
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x419bef
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x419bef
push 0x110
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x644]
push eax
mov dword [ebp - 0x644], 0x114
call esi
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x419bef
mov dword [0x6bcd2c], eax
mov eax, dword [ebp - 0x63c]
mov dword [0x6bcd30], eax
mov eax, dword [ebp - 0x638]
mov dword [0x6bcd34], eax
mov eax, dword [ebp - 0x634]
mov dword [0x6bcd40], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x630]
push eax
push edi
push 0x6bcd48
call fcn.00419d2b
add esp, 0x10
push 0x118
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
mov dword [ebp - 0x530], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
pop esi
test eax, eax
je 0x419c85
cmp dword [0x6bcd2c], 0
jne 0x419c57
mov eax, dword [ebp - 0x52c]
mov dword [0x6bcd2c], eax
mov eax, dword [ebp - 0x528]
mov dword [0x6bcd30], eax
mov eax, dword [ebp - 0x524]
mov dword [0x6bcd34], eax
mov eax, dword [ebp - 0x520]
mov dword [0x6bcd40], eax
cmp byte [0x6bcf50], 0
jne 0x419c85
mov ax, word [ebp - 0x41a]
mov word [0x6bcf54], ax
mov ax, word [ebp - 0x41c]
mov word [0x6bcf60], ax
mov al, byte [ebp - 0x416]
mov byte [0x6bcf50], al
test ebx, ebx
je 0x419c90
mov eax, dword [0x6bcd2c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x650]
pop ebx
test eax, eax
je 0x419ca3
mov ecx, dword [0x6bcd30]
mov dword [eax], ecx
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x419cb5
mov ecx, dword [0x6bcd34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x654]
test eax, eax
je 0x419cc7
mov ecx, dword [0x6bcd40]
mov dword [eax], ecx
cmp dword [ebp - 0x648], 0
je 0x419cee
cmp dword [ebp + 0x1c], 0
je 0x419cee
push 0xffffffffffffffff
push 0x6bcd48
push dword [ebp + 0x1c]
push dword [ebp - 0x648]
call fcn.00419d2b
add esp, 0x10
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x419d00
mov cl, byte [0x6bcf50]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
leave
ret