Function at 0x4257ee
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
sub esp, 0xd8c
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0xd8c], eax
push 0x6c
mov eax, 0x4a2299
call fcn.004646e0
mov esi, dword [ebp + 0xd98]
xor eax, eax
push 0x3a
push eax
mov word [ebp + 0xd50], ax
lea eax, [ebp + 0xd52]
push eax
mov edi, ecx
call fcn.00465a70
xor eax, eax
push 0x3fe
push eax
mov word [ebp + 0x150], ax
lea eax, [ebp + 0x152]
push eax
call fcn.00465a70
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0xd50]
push eax
push str.Msi.DLL
call fcn.004412a3
lea eax, [ebp + 0xd50]
push eax
push esi
call fcn.00441c01
add esp, 0x2c
test eax, eax
jge 0x425b04
mov ecx, edi
call fcn.004057db
mov ebx, eax
mov ecx, ebx
call fcn.00435dd2
mov ecx, ebx
mov esi, eax
call fcn.004378ca
test eax, eax
je 0x4258e2
cmp dword [esi + 8], 5
jne 0x4258a6
cmp dword [esi + 0xc], 2
jae 0x4258af
call fcn.00446497
test al, al
je 0x4258db
call fcn.00446497
test al, al
je 0x4258c0
or eax, 0xffffffff
jmp 0x425b07
lea eax, [ebp]
push eax
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp word [ebp + 0x114], 1
jae 0x4258b8
mov eax, str.SupportOSMsi30
jmp 0x4258f7
mov ecx, ebx
call fcn.00437877
test eax, eax
mov eax, str.SupportOSMsi12
jne 0x4258f7
mov eax, str.SupportOS
push ebx
push eax
call fcn.00442af4
pop ecx
pop ecx
test eax, eax
je 0x4259ac
cmp dword [esi], 2
jne 0x4259a5
call fcn.00441dbb
test eax, eax
jne 0x425933
mov eax, 0x4b2
push eax
mov dword [0x4db6d0], eax
call fcn.00442de8
xor eax, eax
pop ecx
inc eax
jmp 0x425b07
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x550], ax
lea eax, [ebp + 0x552]
push eax
call fcn.00465a70
add esp, 0xc
lea eax, [ebp + 0x550]
push eax
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x425981
lea eax, [ebp + 0x550]
push eax
mov ecx, edi
call fcn.0041fb05
test eax, eax
jne 0x425981
push 2
jmp 0x425b06
push esi
lea eax, [ebp + 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4259a5
lea eax, [ebp + 0x550]
push eax
mov ecx, edi
call fcn.0041fb05
test eax, eax
je 0x42597a
xor eax, eax
jmp 0x425b07
cmp dword [esi + 0x14], 2
jne 0x4259b8
cmp dword [esi + 8], 4
je 0x4259c3
mov ecx, ebx
call fcn.004378ca
test eax, eax
je 0x4259d1
mov ecx, ebx
call fcn.00438230
push 3
jmp 0x425b06
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
push str.SuppressWrongOS
lea ecx, [ebp - 0x44]
call fcn.004018b0
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0xd]
push eax
push str.Startup
lea ecx, [ebp + 0x11c]
call fcn.004018b0
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x11c]
push eax
mov ecx, ebx
call fcn.00439da7
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x11c]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401670
cmp byte [ebp - 0xd], 0
je 0x4258b8
push edi
lea eax, [ebp - 0xd]
mov esi, 0x4b7
push eax
lea ecx, [ebp + 0x11c]
mov dword [0x4db6d0], esi
call fcn.00401870
mov dword [ebp - 4], 2
push edi
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0xd50]
push eax
lea ecx, [ebp - 0x78]
call fcn.004018b0
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x294]
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.00416366
mov byte [ebp - 4], 4
cmp dword [edi + 0x1c], 8
jb 0x425a9a
mov edi, dword [edi + 8]
jmp 0x425a9d
add edi, 8
cmp dword [eax + 0x1c], 8
jb 0x425aa8
mov eax, dword [eax + 8]
jmp 0x425aab
add eax, 8
push edi
push eax
lea eax, [ebp + 0x11c]
push eax
call fcn.00401f60
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004016d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00401670
cmp dword [ebp + 0x138], 8
mov eax, dword [ebp + 0x124]
jae 0x425ae9
lea eax, [ebp + 0x124]
push eax
call fcn.00442400
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x11c]
call fcn.00401670
jmp 0x4258b8
push 0xfffffffffffffffe
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd8c]
xor ecx, ebp
call fcn.004646d1
add ebp, 0xd90
leave
ret 4