Function at 0x418e14
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 [0x6d2010], 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 0x41902a
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 0x64045c
lea eax, [ebp - 0x414]
push eax
push 0x6409cc
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.004190b1
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x418f12
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418f94
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x418f94
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x418f94
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 0x418f94
mov dword [0x6d2010], eax
mov eax, dword [ebp - 0x63c]
mov dword [0x6d2014], eax
mov eax, dword [ebp - 0x638]
mov dword [0x6d2018], eax
mov eax, dword [ebp - 0x634]
mov dword [0x6d201c], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x630]
push eax
push edi
push 0x6d2020
call fcn.004190f0
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 0x41902a
cmp dword [0x6d2010], 0
jne 0x418ffc
mov eax, dword [ebp - 0x52c]
mov dword [0x6d2010], eax
mov eax, dword [ebp - 0x528]
mov dword [0x6d2014], eax
mov eax, dword [ebp - 0x524]
mov dword [0x6d2018], eax
mov eax, dword [ebp - 0x520]
mov dword [0x6d201c], eax
cmp byte [0x6d2228], 0
jne 0x41902a
mov ax, word [ebp - 0x41a]
mov word [0x6d222c], ax
mov ax, word [ebp - 0x41c]
mov word [0x6d2230], ax
mov al, byte [ebp - 0x416]
mov byte [0x6d2228], al
test ebx, ebx
je 0x419035
mov eax, dword [0x6d2010]
mov dword [ebx], eax
mov eax, dword [ebp - 0x650]
pop ebx
test eax, eax
je 0x419048
mov ecx, dword [0x6d2014]
mov dword [eax], ecx
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x41905a
mov ecx, dword [0x6d2018]
mov dword [eax], ecx
mov eax, dword [ebp - 0x654]
test eax, eax
je 0x41906c
mov ecx, dword [0x6d201c]
mov dword [eax], ecx
cmp dword [ebp - 0x648], 0
je 0x419093
cmp dword [ebp + 0x1c], 0
je 0x419093
push 0xffffffffffffffff
push 0x6d2020
push dword [ebp + 0x1c]
push dword [ebp - 0x648]
call fcn.004190f0
add esp, 0x10
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x4190a5
mov cl, byte [0x6d2228]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
leave
ret