Function at 0x416590
Capabilities:
Check if file exists
Check os version
Get common file path
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455120
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 0x10]
mov ecx, edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x450], ebx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4165ed
cmp dword [eax + 0x10], 0x1505
jge 0x4165e3
mov eax, dword [eax + 8]
jmp 0x4165e7
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4165d5
cmp byte [ecx + 0xd], 0
jne 0x41662a
cmp dword [ecx + 0x10], 0x1505
jg 0x41662a
cmp edx, ecx
je 0x41662a
cmp dword [ecx + 0x24], 0x104
jge 0x416657
add ecx, 0x14
cmp dword [ecx + 0x14], 8
jb 0x416614
mov ecx, dword [ecx]
push ecx
push 0x104
push ebx
call fcn.0043b794
add esp, 0xc
xor eax, eax
jmp 0x41683b
push 0x20a
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [ebp - 0x434]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x416661
mov eax, 0x80004005
jmp 0x41683b
xor eax, eax
mov dword [ebp - 0x44c], 0
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 7
lea edx, [ecx + 2]
mov word [ebp - 0x44c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416691
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44c]
call fcn.004029b0
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0
call fcn.00412710
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x416770
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x20a
movzx ebx, ax
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0042f000
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x224]
add esp, 0xc
push 0x104
push eax
push 0x59
push ebx
call edi
push 0x462c14
mov esi, eax
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.0043b870
add esp, 0xc
lea eax, [ebp - 0x224]
mov ecx, 0x104
lea eax, [eax + esi*2]
sub ecx, esi
push ecx
push eax
push 0x5a
push ebx
call edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00412b30
lea ecx, [ebp - 0x44c]
call fcn.00412710
push 0x465624
lea ecx, [ebp - 0x44c]
call fcn.00412b30
mov ebx, dword [ebp - 0x450]
jmp 0x41678d
call fcn.00411080
test eax, eax
je 0x4167f8
push str.shell32.dll
lea ecx, [ebp - 0x44c]
call fcn.00412b30
cmp dword [ebp - 0x438], 8
lea eax, [ebp - 0x44c]
cmovae eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4167f8
cmp dword [ebp - 0x438], 8
lea eax, [ebp - 0x44c]
cmovae eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4167f8
push 0x104
push ebx
push 0x1505
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
neg eax
push esi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4167fd
mov edi, 0x80004005
mov edx, dword [ebp - 0x438]
cmp edx, 8
jb 0x416839
mov ecx, dword [ebp - 0x44c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41682f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416859
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cd02
mov esp, ebp
pop ebp
ret 0xc
call fcn.0043182f
int3