Function at 0x425451
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, 0x4a4c42
call fcn.00466e90
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.00468220
xor eax, eax
push 0x3fe
push eax
mov word [ebp + 0x150], ax
lea eax, [ebp + 0x152]
push eax
call fcn.00468220
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp + 0xd50]
push eax
push str.Msi.DLL
call fcn.00442925
lea eax, [ebp + 0xd50]
push eax
push esi
call fcn.00443247
add esp, 0x2c
test eax, eax
jge 0x425767
mov ecx, edi
call fcn.004056e6
mov ebx, eax
mov ecx, ebx
call fcn.00435d44
mov ecx, ebx
mov esi, eax
call fcn.00437953
test eax, eax
je 0x425545
cmp dword [esi + 8], 5
jne 0x425509
cmp dword [esi + 0xc], 2
jae 0x425512
call fcn.00447e5a
test al, al
je 0x42553e
call fcn.00447e5a
test al, al
je 0x425523
or eax, 0xffffffff
jmp 0x42576a
lea eax, [ebp]
push eax
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp word [ebp + 0x114], 1
jae 0x42551b
mov eax, str.SupportOSMsi30
jmp 0x42555a
mov ecx, ebx
call fcn.00437900
test eax, eax
mov eax, str.SupportOSMsi12
jne 0x42555a
mov eax, str.SupportOS
push ebx
push eax
call fcn.00444185
pop ecx
pop ecx
test eax, eax
je 0x42560f
cmp dword [esi], 2
jne 0x425608
call fcn.00443401
test eax, eax
jne 0x425596
mov eax, 0x4b2
push eax
mov dword [0x4e0670], eax
call fcn.00444479
xor eax, eax
pop ecx
inc eax
jmp 0x42576a
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x550], ax
lea eax, [ebp + 0x552]
push eax
call fcn.00468220
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 0x4255e4
lea eax, [ebp + 0x550]
push eax
mov ecx, edi
call fcn.0041fa79
test eax, eax
jne 0x4255e4
push 2
jmp 0x425769
push esi
lea eax, [ebp + 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x425608
lea eax, [ebp + 0x550]
push eax
mov ecx, edi
call fcn.0041fa79
test eax, eax
je 0x4255dd
xor eax, eax
jmp 0x42576a
cmp dword [esi + 0x14], 2
jne 0x42561b
cmp dword [esi + 8], 4
je 0x425626
mov ecx, ebx
call fcn.00437953
test eax, eax
je 0x425634
mov ecx, ebx
call fcn.004382ee
push 3
jmp 0x425769
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
push str.SuppressWrongOS
lea ecx, [ebp - 0x44]
call fcn.00401890
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0xd]
push eax
push str.Startup
lea ecx, [ebp + 0x11c]
call fcn.00401890
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x11c]
push eax
mov ecx, ebx
call fcn.00439ee1
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x11c]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401640
cmp byte [ebp - 0xd], 0
je 0x42551b
push edi
lea eax, [ebp - 0xd]
mov esi, 0x4b7
push eax
lea ecx, [ebp + 0x11c]
mov dword [0x4e0670], esi
call fcn.00401850
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.00401890
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x294]
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.0041629d
mov byte [ebp - 4], 4
cmp dword [edi + 0x1c], 8
jb 0x4256fd
mov edi, dword [edi + 8]
jmp 0x425700
add edi, 8
cmp dword [eax + 0x1c], 8
jb 0x42570b
mov eax, dword [eax + 8]
jmp 0x42570e
add eax, 8
push edi
push eax
lea eax, [ebp + 0x11c]
push eax
call fcn.00401f20
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004016a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00401640
cmp dword [ebp + 0x138], 8
mov eax, dword [ebp + 0x124]
jae 0x42574c
lea eax, [ebp + 0x124]
push eax
call fcn.00443a91
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x11c]
call fcn.00401640
jmp 0x42551b
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.00466e81
add ebp, 0xd90
leave
ret 4