Function at 0x4174d0
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 0x456130
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x46e018]
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 0x41752d
cmp dword [eax + 0x10], 0x1505
jge 0x417523
mov eax, dword [eax + 8]
jmp 0x417527
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x417515
cmp byte [ecx + 0xd], 0
jne 0x41756a
cmp dword [ecx + 0x10], 0x1505
jg 0x41756a
cmp edx, ecx
je 0x41756a
cmp dword [ecx + 0x24], 0x104
jge 0x417597
add ecx, 0x14
cmp dword [ecx + 0x14], 8
jb 0x417554
mov ecx, dword [ecx]
push ecx
push 0x104
push ebx
call fcn.0043c6d4
add esp, 0xc
xor eax, eax
jmp 0x41777b
push 0x20a
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.0042ff40
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 0x4175a1
mov eax, 0x80004005
jmp 0x41777b
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 0x4175d1
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44c]
call fcn.00402a20
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0
call fcn.00413630
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x4176b0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x20a
movzx ebx, ax
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0042ff40
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 0x463c24
mov esi, eax
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.0043c7b0
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.00413a50
lea ecx, [ebp - 0x44c]
call fcn.00413630
push 0x4669e4
lea ecx, [ebp - 0x44c]
call fcn.00413a50
mov ebx, dword [ebp - 0x450]
jmp 0x4176cd
call fcn.004120e0
test eax, eax
je 0x417738
push str.shell32.dll
lea ecx, [ebp - 0x44c]
call fcn.00413a50
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 0x417738
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 0x417738
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 0x41773d
mov edi, 0x80004005
mov edx, dword [ebp - 0x438]
cmp edx, 8
jb 0x417779
mov ecx, dword [ebp - 0x44c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41776f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417799
push edx
push ecx
call fcn.0042dc50
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.0042dc42
mov esp, ebp
pop ebp
ret 0xc
call fcn.0043276f
int3