Function at 0x4123eb
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, 0x449c40
call fcn.004336e9
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 0x44]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x412426
xor eax, eax
inc eax
jmp 0x4126fd
push 0x454a70
lea ecx, [ebp - 0x14]
call fcn.00401555
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00409202
mov byte [ebp - 4], 1
mov dword [ebp], 0x114
mov ebx, 0x110
push ebx
push 0
lea eax, [ebp + 4]
push eax
call fcn.0042f220
add esp, 0xc
lea eax, [ebp]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
call esi
cmp dword [ebp + 4], 6
jne 0x412614
cmp dword [ebp + 8], 0
jne 0x412614
lea eax, [ebp - 0x18]
push eax
push 0x454d20
mov ecx, 0x4666bc
call fcn.00422f84
test eax, eax
je 0x412614
push 0x454d20
lea ecx, [ebp - 0x14]
call fcn.0040165e
mov esi, 0x4666bc
call fcn.0040ae71
test al, al
je 0x4124d2
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x453ab0
push ebx
mov ecx, esi
call fcn.00422f84
test eax, eax
je 0x4124d2
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040165e
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
call ebx
cmp ax, 0x407
jne 0x412501
lea eax, [ebp - 0x18]
push eax
push str.DeMsiUrl
mov ecx, esi
call fcn.00422f84
test eax, eax
je 0x412501
push str.DeMsiUrl
lea ecx, [ebp - 0x14]
call fcn.0040165e
call ebx
cmp ax, 0x40c
jne 0x41252a
lea eax, [ebp - 0x18]
push eax
push str.FrMsiUrl
mov ecx, esi
call fcn.00422f84
test eax, eax
je 0x41252a
push str.FrMsiUrl
lea ecx, [ebp - 0x14]
call fcn.0040165e
call ebx
cmp ax, 0x411
jne 0x412556
lea eax, [ebp - 0x18]
push eax
mov ebx, str.JpMsiUrl
push ebx
mov ecx, esi
call fcn.00422f84
test eax, eax
je 0x412550
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040165e
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
call ebx
cmp ax, 0x40a
je 0x412566
call ebx
cmp ax, 0xc0a
jne 0x412584
lea eax, [ebp - 0x18]
push eax
mov ebx, str.EsMsiUrl
push ebx
mov ecx, esi
call fcn.00422f84
test eax, eax
je 0x412584
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040165e
push str.2.2.21642.48889
mov ecx, 0x466600
call fcn.00401dc4
test eax, eax
jne 0x4125b5
lea eax, [ebp - 0x18]
push eax
mov ebx, str.AvgMsiUrl
push ebx
mov ecx, esi
call fcn.00422f84
test eax, eax
je 0x4125b5
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040165e
mov byte [ebp - 4], 2
lea esi, [edi + 0x5c]
cmp dword [esi], 0
jne 0x412608
and dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0x64
push 0xbb9
push edi
push 0x19
pop ebx
call fcn.004130ef
push 1
push esi
push 0x454dbc
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0041194a
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x44]
call fcn.00401a9e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0040922c
mov dword [ebp - 4], 1
jmp 0x4126d4
mov dword [ebp], 0x114
push ebx
push 0
lea eax, [ebp + 4]
push eax
call fcn.0042f220
add esp, 0xc
lea eax, [ebp]
push eax
call esi
cmp dword [ebp + 4], 6
jne 0x41265d
cmp dword [ebp + 8], 1
jne 0x41265d
lea eax, [ebp - 0x18]
push eax
push str.7MsiUrl
mov ecx, 0x4666bc
call fcn.00422f84
test eax, eax
je 0x41265d
push str.7MsiUrl
jmp 0x41249e
mov dword [ebp], 0x114
push ebx
push 0
lea eax, [ebp + 4]
push eax
call fcn.0042f220
add esp, 0xc
lea eax, [ebp]
push eax
call esi
cmp dword [ebp + 4], 6
jne 0x4124a6
cmp dword [ebp + 8], 2
jne 0x4124a6
lea eax, [ebp - 0x18]
push eax
mov ebx, str.8MsiUrl
push ebx
mov esi, 0x4666bc
mov ecx, esi
call fcn.00422f84
test eax, eax
je 0x4124ab
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040165e
jmp 0x4124ab
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.0040922c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040922c
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.0042f20b
add ebp, 0x118
leave
ret