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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec0
and byte [ebp - 0x24], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x23]
and byte [ebp - 0x6c0], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x6bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0x24]
push eax
push str.Msi.DLL
call fcn.0041cdfe
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.0041d6e4
add esp, 0x14
test eax, eax
jge 0x413d12
mov ecx, dword [ebp - 4]
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.00418c24
mov ecx, edi
mov esi, eax
call fcn.0041a725
push 2
test eax, eax
pop ebx
je 0x413b75
cmp dword [esi + 8], 5
jne 0x413b36
cmp dword [esi + 0xc], ebx
jae 0x413b3f
call fcn.00421c2e
test eax, eax
je 0x413b6e
call fcn.00421c2e
test eax, eax
jne 0x413d0d
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp word [ebp - 0x2c], 1
jae 0x413d0d
mov eax, str.SupportOSMsi30
jmp 0x413b8a
mov ecx, edi
call fcn.0041a708
test eax, eax
mov eax, str.SupportOSMsi12
jne 0x413b8a
mov eax, str.SupportOS
push edi
push eax
call fcn.0041e50e
pop ecx
test eax, eax
pop ecx
je 0x413c3a
cmp dword [esi], ebx
jne 0x413c33
call fcn.0041da29
test eax, eax
jne 0x413bc4
mov eax, 0x4b2
push eax
mov dword [0x43fe44], eax
call fcn.0041cc4d
pop ecx
push 1
jmp 0x413d14
and byte [ebp - 0x4c0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c0]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x413c07
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4c0]
push eax
call fcn.004137b7
test eax, eax
je 0x413c2c
lea eax, [ebp - 0x4c0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x413c33
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4c0]
push eax
call fcn.004137b7
test eax, eax
jne 0x413c33
mov eax, ebx
jmp 0x413d15
xor eax, eax
jmp 0x413d15
cmp dword [esi + 0x14], ebx
jne 0x413c45
cmp dword [esi + 8], 4
je 0x413c50
mov ecx, edi
call fcn.0041a725
test eax, eax
je 0x413c5e
mov ecx, edi
call fcn.0041a6cf
push 3
jmp 0x413d14
mov esi, 0x400
lea eax, [ebp - 0xec0]
push esi
push eax
push 0x43ce60
lea ecx, [edi + 0x4024]
push dword [0x432674]
push dword [0x43266c]
call fcn.00402386
cmp byte [ebp - 0xec0], 0x79
je 0x413d0d
cmp byte [ebp - 0xec0], 0x59
je 0x413d0d
and byte [ebp - 0x4c0], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x4bf]
mov edx, 0x4b7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c0]
push esi
push eax
push edx
mov dword [0x43fe44], edx
call fcn.0041ccc4
and byte [ebp - 0xac0], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xabf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0xac0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xac0]
push eax
call fcn.0041caf5
add esp, 0x10
or eax, 0xffffffff
jmp 0x413d15
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4