Function at 0x4019a0
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
xor edi, edi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ebx, ebx
mov dword [ebp - 0x10], edi
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
cmp al, 6
jb 0x401b86
cmp dword [ebp + 8], ebx
jne 0x401b86
call fcn.0040f6f0
push 0x43248c
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x401a09
push 0x432498
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x1c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
neg eax
sbb eax, eax
inc eax
jne 0x401b86
lea ecx, [ebp - 0xc]
call fcn.00401440
mov esi, dword [ebp - 0xc]
neg eax
sbb eax, eax
inc eax
jne 0x401b86
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401b86
push 0x44
push eax
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x2c], xmm0
call fcn.00414300
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov ecx, ebx
call fcn.004015b0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc], eax
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0x400
push str.msiexec__unregister
push str.msiexec.exe
push 1
push eax
call dword [ebp - 4]
push 0x3e8
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x44
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x2c], xmm0
call fcn.00414300
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x400
push str.msiexec__regserver
push str.msiexec.exe
push 1
push dword [ebp - 0xc]
call dword [ebp - 4]
push 0x44
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x2c], xmm0
call fcn.00414300
add esp, 0xc
xorps xmm0, xmm0
movd eax, xmm0
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x401b16
cmp eax, 2
mov eax, 0x431e64
jne 0x401b1b
mov eax, str._quiet
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 8]
push str.msiexec__i___s___s__s
push eax
call fcn.0040fe50
add esp, 0x14
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x400
push dword [ebp - 8]
push str.msiexec.exe
push 1
push dword [ebp - 0xc]
call dword [ebp - 4]
test eax, eax
mov ecx, 0x643
mov eax, dword [ebp - 8]
cmove edi, ecx
test eax, eax
je 0x401b6b
push eax
call fcn.00410030
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401b94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b94
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov edi, eax
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x401ba7
push ebx
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401bb1
push eax
call ecx
test esi, esi
je 0x401bc5
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret