Function at 0x40c6d0
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 0x422acb
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x42d00c]
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 eax, edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x450], ebx
mov esi, dword [edx + 4]
cmp byte [esi + 0xd], 0
jne 0x40c72d
cmp dword [esi + 0x10], 0x1505
jge 0x40c723
mov esi, dword [esi + 8]
jmp 0x40c727
mov eax, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x40c715
cmp eax, edx
je 0x40c73a
cmp dword [eax + 0x10], 0x1505
jle 0x40c73c
mov eax, edx
cmp edx, eax
je 0x40c774
cmp dword [eax + 0x24], 0x104
jl 0x40c753
mov eax, 0x80004005
jmp 0x40c966
add eax, 0x14
cmp dword [eax + 0x14], 8
jb 0x40c75e
mov eax, dword [eax]
push eax
push 0x104
push ebx
call fcn.00416168
add esp, 0xc
xor eax, eax
jmp 0x40c966
push 0x20a
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0040f860
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c749
xor eax, eax
mov dword [ebp - 0x438], 7
mov dword [ebp - 0x43c], 0
mov word [ebp - 0x44c], ax
cmp word [ebp - 0x224], ax
jne 0x40c7cb
xor ecx, ecx
jmp 0x40c7e3
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7d4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00402570
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0
call fcn.00408f70
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp al, 5
jbe 0x40c8b5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x20a
movzx ebx, ax
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.0040f860
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x434]
add esp, 0xc
push 0x104
push eax
push 0x59
push ebx
call edi
push 0x42a0bc
mov esi, eax
lea eax, [ebp - 0x434]
push 0x105
push eax
call fcn.004161cc
add esp, 0xc
lea eax, [ebp - 0x434]
mov ecx, 0x104
lea eax, [eax + esi*2]
sub ecx, esi
push ecx
push eax
push 0x5a
push ebx
call edi
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004092a0
lea ecx, [ebp - 0x44c]
call fcn.00408f70
push 0x42a0c0
lea ecx, [ebp - 0x44c]
call fcn.004092a0
mov ebx, dword [ebp - 0x450]
jmp 0x40c8dc
call esi
movzx ecx, al
cmp ecx, 5
ja 0x40c8cc
jb 0x40c947
shr eax, 8
test al, al
je 0x40c947
push str.shell32.dll
lea ecx, [ebp - 0x44c]
call fcn.004092a0
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 0x40c947
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 0x40c947
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 0x40c94c
mov edi, 0x80004005
mov ecx, dword [ebp - 0x438]
cmp ecx, 8
jb 0x40c964
inc ecx
push ecx
push dword [ebp - 0x44c]
call fcn.00402450
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.0040d320
mov esp, ebp
pop ebp
ret 0xc