Function at 0x407a00
Capabilities:
Accept command line arguments
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442a17
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea eax, [esi + 0x30]
mov ebx, 8
mov dword [ebp - 0x354], esi
cmp dword [eax + 0x14], ebx
jb 0x407a48
mov eax, dword [eax]
push eax
call fcn.00405f90
add esp, 4
test al, al
je 0x407cb2
push str.Reboot_is_pending
push 0x4549c8
mov ecx, 0x446820
call fcn.00406230
xor edi, edi
xor eax, eax
add esp, 8
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], edi
mov word [ebp - 0x264], ax
lea ecx, [ebp - 0x264]
push ecx
mov ecx, 0x1ff4
mov edx, 0x455cb8
mov dword [ebp - 4], edi
call fcn.00412860
cmp dword [ebp - 0x250], ebx
mov ebx, dword [ebp - 0x264]
jae 0x407ab8
lea ebx, [ebp - 0x264]
mov eax, 7
xor edx, edx
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x28c], edi
mov word [ebp - 0x29c], dx
mov dword [ebp - 0x26c], eax
xor eax, eax
mov dword [ebp - 0x270], edi
mov word [ebp - 0x280], ax
mov byte [ebp - 4], 2
mov eax, dword [0x455ca8]
call fcn.004085d0
test al, al
jne 0x407c0e
xor eax, eax
lea ecx, [ebp - 0x29c]
push ecx
mov dword [ebp - 0x248], eax
mov ecx, 0x4e20
mov edx, 0x455cb8
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x248], 0x28
call fcn.00412860
cmp dword [ebp - 0x288], 8
jb 0x407b72
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x238], edx
jmp 0x407b7e
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x280]
push ecx
push ebx
mov ecx, 0x455cb8
mov dword [ebp - 0x230], 0x7f01
call fcn.00412d30
cmp dword [ebp - 0x26c], 8
jb 0x407bb1
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x23c], edx
jmp 0x407bbd
lea eax, [ebp - 0x280]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x234], edi
cmp dword [ebp - 0x230], edi
je 0x407bd5
mov dword [ebp - 0x234], 0x80
mov cx, word [0x455cba]
mov edx, 0x3ff
and cx, dx
movzx eax, cx
cmp eax, 1
je 0x407bf1
cmp eax, 0xd
jne 0x407bfb
or dword [ebp - 0x234], 0x180000
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x244], edi
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
mov ebx, 8
cmp dword [ebp - 0x26c], ebx
jb 0x407c2a
mov ecx, dword [ebp - 0x280]
push ecx
call fcn.0042c048
add esp, 4
xor edx, edx
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], edi
mov word [ebp - 0x280], dx
cmp dword [ebp - 0x288], ebx
jb 0x407c5a
mov eax, dword [ebp - 0x29c]
push eax
call fcn.0042c048
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x250], ebx
jb 0x407c78
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.0042c048
add esp, 4
push 0xa
push 8
lea edx, [ebp - 0x274]
push edx
push 0x4e21
call fcn.0042d3bf
add esp, 0x10
lea eax, [ebp - 0x274]
push eax
lea ecx, [esi + 4]
mov ebx, str.IIF_EXITCODE
call fcn.004040d0
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
jmp 0x4081e4
push str.MSFTEDIT.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], 3
call fcn.00418340
test al, al
jne 0x407eb1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
jb 0x407e6c
xor ecx, ecx
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], cx
push str.Relaunching_setup_as_elevated
push 0x4549c8
mov ecx, 0x4462a0
mov byte [ebp - 4], 4
call fcn.00406230
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [ebp - 0x220]
push 0x104
push edx
call fcn.0042cbdd
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407d46
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x264]
call fcn.00402c20
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push 1
push 1
push 0
push 0
push 0x90000000
push 0x446828
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x407e34
lea eax, [ebp - 0x248]
push eax
push 2
push esi
mov dword [ebp - 0x248], 0x28
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [ebp - 0x238]
sub eax, dword [ebp - 0x240]
push 0
cdq
sub eax, edx
push 1
sar eax, 1
push 1
push eax
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x244]
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x264]
jae 0x407e1a
lea eax, [ebp - 0x264]
push 5
push 0
push eax
lea ecx, [ebp - 0x220]
push ecx
push str.runas
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x407e4b
push str.Error_creating_top_level_window.
push 0x4549c8
mov ecx, 0x446820
call fcn.00406230
add esp, 8
cmp dword [ebp - 0x250], 8
jb 0x4081e4
mov edx, dword [ebp - 0x264]
push edx
call fcn.0042c048
add esp, 4
jmp 0x4081e4
push str.Administrator_rights_needed.
push 0x4549c8
mov ecx, 0x446820
call fcn.00406230
add esp, 8
push 0x220
push 5
lea eax, [ebp - 0x350]
push eax
mov ecx, str.Setup.cpp
mov ebx, 0x446828
call fcn.00402e10
push 0x44d9ac
lea ecx, [ebp - 0x350]
push ecx
call fcn.0042db23
lea edi, [esi + 4]
mov ebx, str.IIF_INSTALLEDPACKAGEVERSION
call fcn.00404090
test al, al
jne 0x407f06
push esi
call fcn.00408430
cmp eax, 0xd
je 0x407ed8
push esi
call fcn.00408430
cmp eax, 0xc
jne 0x407f06
push str._uninstall_and__repair_is_invalid_if_the_product_is_not_installed
push 0x4549c8
mov ecx, 0x446470
call fcn.00406230
add esp, 8
mov eax, esi
call fcn.004085d0
test al, al
jne 0x4081e4
push esi
xor ecx, ecx
call fcn.0040b9e0
push esi
call fcn.00408430
test eax, eax
jne 0x407f16
push esi
call fcn.00407580
push esi
call fcn.00408430
cmp eax, 0xd
ja case.0x407f28.1
movzx edx, byte [eax + 0x40821c]
jmp dword [edx*4 + 0x408200]
push str.Setup_mode:_None
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
jmp case.0x407f28.1
push str.Setup_mode:_Installation
jmp 0x407f69
push str.Setup_mode:_Update
jmp 0x407f69
push str.Setup_mode:_Repair
jmp 0x407f69
push str.Setup_mode:_Uninstall
jmp 0x407f34
push str.Setup_mode:_Modify
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
add esp, 8
mov ecx, esi
call edx
push esi
call fcn.00408430
test eax, eax
je 0x40806c
lea ebx, [esi + 0x128]
push ebx
call fcn.00422400
mov ecx, ebx
call fcn.004224d0
mov eax, esi
call fcn.004085d0
mov ecx, 0x4462a0
test al, al
je 0x407ff4
push str.Silent_mode_is_enabled
push 0x4549c8
call fcn.00406230
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
add esp, 8
mov ecx, esi
mov dword [esi + 0x148], 0
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi + 0x140]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40800f
push str.Preparing_UI
push 0x4549c8
call fcn.00406230
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
add esp, 8
mov ecx, esi
call eax
push str.IIF_EXITCODE
call fcn.00403fe0
push eax
call fcn.0042cce6
add esp, 4
test eax, eax
je 0x408034
cmp eax, 0x669
je 0x408034
cmp eax, 0xbc2
jne 0x40806c
cmp byte [esi + 0x13c], 0
je 0x40806c
push esi
call fcn.00408430
cmp eax, 9
jl 0x40806c
cmp eax, 0xc
jle 0x408065
cmp eax, 0xd
jne 0x40806c
mov ecx, esi
call fcn.004071f0
mov dword [ebp - 4], 0xffffffff
jmp 0x40819c
mov ecx, esi
call fcn.00406af0
mov dword [ebp - 4], 0xffffffff
jmp 0x40819c
push str.IIF_EXITCODE
lea edi, [esi + 4]
call fcn.00403fe0
push eax
call fcn.0042cce6
add esp, 4
cmp eax, 0xbc2
jne 0x4081e4
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x4081c4
mov eax, dword [eax]
push eax
call fcn.00406390
add esp, 4
push str.Created_reboot_lock
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret