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

Disassembly:
push ebp
sub esp, 0xd8c
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0xd8c], eax
push 0x6c
mov eax, 0x4a5060
call fcn.004674a0
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.00468830
xor eax, eax
push 0x3fe
push eax
mov word [ebp + 0x150], ax
lea eax, [ebp + 0x152]
push eax
call fcn.00468830
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0xd50]
push eax
push str.Msi.DLL
call fcn.00442b4b
lea eax, [ebp + 0xd50]
push eax
push esi
call fcn.0044346d
add esp, 0x2c
test eax, eax
jge 0x424c5c
mov ecx, edi
call fcn.004056af
mov ebx, eax
mov ecx, ebx
call fcn.00435df5
mov ecx, ebx
mov esi, eax
call fcn.004379f1
test eax, eax
je 0x424a3a
cmp dword [esi + 8], 5
jne 0x4249fe
cmp dword [esi + 0xc], 2
jae 0x424a07
call fcn.00448089
test al, al
je 0x424a33
call fcn.00448089
test al, al
je 0x424a18
or eax, 0xffffffff
jmp 0x424c5f
lea eax, [ebp]
push eax
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp word [ebp + 0x114], 1
jae 0x424a10
mov eax, str.SupportOSMsi30
jmp 0x424a4f
mov ecx, ebx
call fcn.0043799e
test eax, eax
mov eax, str.SupportOSMsi12
jne 0x424a4f
mov eax, str.SupportOS
push ebx
push eax
call fcn.004443ab
pop ecx
pop ecx
test eax, eax
je 0x424b04
cmp dword [esi], 2
jne 0x424afd
call fcn.00443627
test eax, eax
jne 0x424a8b
mov eax, 0x4b2
push eax
mov dword [0x4e0670], eax
call fcn.0044469f
xor eax, eax
pop ecx
inc eax
jmp 0x424c5f
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x550], ax
lea eax, [ebp + 0x552]
push eax
call fcn.00468830
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 0x424ad9
lea eax, [ebp + 0x550]
push eax
mov ecx, edi
call fcn.0041fb16
test eax, eax
jne 0x424ad9
push 2
jmp 0x424c5e
push esi
lea eax, [ebp + 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x424afd
lea eax, [ebp + 0x550]
push eax
mov ecx, edi
call fcn.0041fb16
test eax, eax
je 0x424ad2
xor eax, eax
jmp 0x424c5f
cmp dword [esi + 0x14], 2
jne 0x424b10
cmp dword [esi + 8], 4
je 0x424b1b
mov ecx, ebx
call fcn.004379f1
test eax, eax
je 0x424b29
mov ecx, ebx
call fcn.004383d9
push 3
jmp 0x424c5e
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
push str.SuppressWrongOS
lea ecx, [ebp - 0x44]
call fcn.00401850
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0xd]
push eax
push str.Startup
lea ecx, [ebp + 0x11c]
call fcn.00401850
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x11c]
push eax
mov ecx, ebx
call fcn.0043a21e
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x11c]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401600
cmp byte [ebp - 0xd], 0
je 0x424a10
push edi
lea eax, [ebp - 0xd]
mov esi, 0x4b7
push eax
lea ecx, [ebp + 0x11c]
mov dword [0x4e0670], esi
call fcn.00401810
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.00401850
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x294]
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.0041633a
mov byte [ebp - 4], 4
cmp dword [edi + 0x1c], 8
jb 0x424bf2
mov edi, dword [edi + 8]
jmp 0x424bf5
add edi, 8
cmp dword [eax + 0x1c], 8
jb 0x424c00
mov eax, dword [eax + 8]
jmp 0x424c03
add eax, 8
push edi
push eax
lea eax, [ebp + 0x11c]
push eax
call fcn.00401ee0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00401660
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00401600
cmp dword [ebp + 0x138], 8
mov eax, dword [ebp + 0x124]
jae 0x424c41
lea eax, [ebp + 0x124]
push eax
call fcn.00443cb7
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x11c]
call fcn.00401600
jmp 0x424a10
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.00467491
add ebp, 0xd90
leave
ret 4