Function at 0x412597
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
sub esp, 0x114
lea ebp, [esp - 4]
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x114], eax
push 0x18
mov eax, 0x449dee
call fcn.00433879
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 0x44]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4125d2
xor eax, eax
inc eax
jmp 0x4128a9
push 0x454af0
lea ecx, [ebp - 0x14]
call fcn.00401555
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401b37
mov byte [ebp - 4], 1
mov dword [ebp], 0x114
mov ebx, 0x110
push ebx
push 0
lea eax, [ebp + 4]
push eax
call fcn.0042f3b0
add esp, 0xc
lea eax, [ebp]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
call esi
cmp dword [ebp + 4], 6
jne 0x4127c0
cmp dword [ebp + 8], 0
jne 0x4127c0
lea eax, [ebp - 0x18]
push eax
push 0x454d98
mov ecx, 0x4666bc
call fcn.004230ba
test eax, eax
je 0x4127c0
push 0x454d98
lea ecx, [ebp - 0x14]
call fcn.0040163f
mov esi, 0x4666bc
call fcn.0040af64
test al, al
je 0x41267e
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x453b30
push ebx
mov ecx, esi
call fcn.004230ba
test eax, eax
je 0x41267e
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040163f
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
call ebx
cmp ax, 0x407
jne 0x4126ad
lea eax, [ebp - 0x18]
push eax
push str.DeMsiUrl
mov ecx, esi
call fcn.004230ba
test eax, eax
je 0x4126ad
push str.DeMsiUrl
lea ecx, [ebp - 0x14]
call fcn.0040163f
call ebx
cmp ax, 0x40c
jne 0x4126d6
lea eax, [ebp - 0x18]
push eax
push str.FrMsiUrl
mov ecx, esi
call fcn.004230ba
test eax, eax
je 0x4126d6
push str.FrMsiUrl
lea ecx, [ebp - 0x14]
call fcn.0040163f
call ebx
cmp ax, 0x411
jne 0x412702
lea eax, [ebp - 0x18]
push eax
mov ebx, str.JpMsiUrl
push ebx
mov ecx, esi
call fcn.004230ba
test eax, eax
je 0x4126fc
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040163f
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
call ebx
cmp ax, 0x40a
je 0x412712
call ebx
cmp ax, 0xc0a
jne 0x412730
lea eax, [ebp - 0x18]
push eax
mov ebx, str.EsMsiUrl
push ebx
mov ecx, esi
call fcn.004230ba
test eax, eax
je 0x412730
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040163f
push str.2.2.21642.48889
mov ecx, 0x466600
call fcn.00401e56
test eax, eax
jne 0x412761
lea eax, [ebp - 0x18]
push eax
mov ebx, str.AvgMsiUrl
push ebx
mov ecx, esi
call fcn.004230ba
test eax, eax
je 0x412761
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040163f
mov byte [ebp - 4], 2
lea esi, [edi + 0x5c]
cmp dword [esi], 0
jne 0x4127b4
and dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0x64
push 0xbb9
push edi
push 0x19
pop ebx
call fcn.00413281
push 1
push esi
push 0x454e34
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00411aa7
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x44]
call fcn.00401ad8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00401b6e
mov dword [ebp - 4], 1
jmp 0x412880
mov dword [ebp], 0x114
push ebx
push 0
lea eax, [ebp + 4]
push eax
call fcn.0042f3b0
add esp, 0xc
lea eax, [ebp]
push eax
call esi
cmp dword [ebp + 4], 6
jne 0x412809
cmp dword [ebp + 8], 1
jne 0x412809
lea eax, [ebp - 0x18]
push eax
push str.7MsiUrl
mov ecx, 0x4666bc
call fcn.004230ba
test eax, eax
je 0x412809
push str.7MsiUrl
jmp 0x41264a
mov dword [ebp], 0x114
push ebx
push 0
lea eax, [ebp + 4]
push eax
call fcn.0042f3b0
add esp, 0xc
lea eax, [ebp]
push eax
call esi
cmp dword [ebp + 4], 6
jne 0x412652
cmp dword [ebp + 8], 2
jne 0x412652
lea eax, [ebp - 0x18]
push eax
mov ebx, str.8MsiUrl
push ebx
mov esi, 0x4666bc
mov ecx, esi
call fcn.004230ba
test eax, eax
je 0x412657
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040163f
jmp 0x412657
mov eax, dword [edi + 0x44]
mov eax, dword [eax - 0xc]
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401b6e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401b6e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x114]
xor ecx, ebp
call fcn.0042f39b
add ebp, 0x118
leave
ret