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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455961
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x477070]
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 edi, ecx
cmp dword [edi + 0x24c], 8
lea eax, [edi + 0x238]
mov dword [ebp - 0x354], edi
jb 0x40c26a
mov eax, dword [eax]
test eax, eax
je 0x40c35b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
test ax, ax
setne al
test al, al
je 0x40c35b
push str.Reboot_is_pending
push 0x466060
push 0x477a14
call fcn.00433950
xor eax, eax
mov dword [ebp - 0x224], 7
add esp, 0xc
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov ecx, 0x4793b0
lea eax, [ebp - 0x238]
push eax
push 0x1ff4
call fcn.00419240
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov edx, 0x4e20
cmovae eax, dword [ebp - 0x238]
xor ecx, ecx
push eax
push 0
push 0
push 2
call fcn.0041d5b0
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x40c323
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00405180
push 0xa
push 8
lea eax, [ebp - 0x230]
push eax
push 0x4e21
call fcn.004401cd
add esp, 0x10
lea eax, [ebp - 0x230]
lea ecx, [edi + 4]
push eax
push str.IIF_EXITCODE
call fcn.004175d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
jmp 0x40c906
lea ecx, [edi + 0x1c]
call fcn.00409390
mov dword [ebp - 4], 1
call fcn.0041c060
test al, al
jne 0x40c56f
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
jb 0x40c52b
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
push str.Relaunching_setup_as_elevated
push 0x4656cc
push 0x477a14
mov byte [ebp - 4], 2
call fcn.00433950
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push eax
lea ecx, [ebp - 0x238]
call fcn.00403010
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40c446
push 0x27d
push str.Setup.cpp
push str.ModuleHandle_is_NULL
push 6
lea ecx, [ebp - 0x300]
call fcn.004016d0
push 0x474bb0
lea eax, [ebp - 0x300]
push eax
call fcn.00439290
push 0
push eax
push 0
push 0
push 1
push 1
push 0
push 0
push 0x90000000
push 0x466c0c
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x40c504
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x28
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x258]
cdq
push 0
sub eax, edx
push 1
sar eax, 1
push 1
push eax
mov eax, dword [ebp - 0x254]
sub eax, dword [ebp - 0x25c]
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 5
cmovae eax, dword [ebp - 0x238]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
push str.runas
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x238]
call fcn.00404890
jmp 0x40c906
push str.Error_creating_top_level_window.
push 0x466060
push 0x477a14
call fcn.00433950
add esp, 0xc
lea ecx, [ebp - 0x238]
call fcn.00404890
jmp 0x40c906
push str.Administrator_rights_needed.
push 0x466060
push 0x477a14
call fcn.00433950
add esp, 0xc
lea ecx, [ebp - 0x350]
push 0x28e
push str.Setup.cpp
push 0x466c0c
push 5
call fcn.004016d0
push 0x474bb0
lea eax, [ebp - 0x350]
push eax
call fcn.00439290
push str.IIF_INSTALLEDPACKAGEVERSION
lea ecx, [edi + 4]
call fcn.00417570
test al, al
jne 0x40c5c7
mov ecx, edi
call fcn.0040cb60
cmp eax, 0xd
je 0x40c598
mov ecx, edi
call fcn.0040cb60
cmp eax, 0xc
jne 0x40c5c7
push str._uninstall_and__repair_is_invalid_if_the_product_is_not_installed
push 0x4662f8
push 0x477a14
call fcn.00433950
add esp, 0xc
mov ecx, edi
call fcn.0040ccb0
test al, al
jne 0x40c906
push 0
mov ecx, edi
call fcn.00410210
mov ecx, edi
call fcn.0040cb60
test eax, eax
jne 0x40c5d9
mov ecx, edi
call fcn.0040bd10
mov ecx, edi
call fcn.0040cb60
cmp eax, 0xd
ja case.0x40c5f0.1
movzx eax, byte [eax + 0x40c940]
jmp dword [eax*4 + 0x40c924]
push str.Setup_mode:_None
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0xc
jmp case.0x40c5f0.1
push str.Setup_mode:_Installation
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0xc
jmp 0x40c675
push str.Setup_mode:_Update
jmp 0x40c615
push str.Setup_mode:_Repair
jmp 0x40c615
push str.Setup_mode:_Uninstall
push 0x4656cc
push 0x477a14
call fcn.00433950
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x60]
jmp case.0x40c5f0.1
push str.Setup_mode:_Modify
push 0x4656cc
push 0x477a14
call fcn.00433950
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x60]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x5c]
mov ecx, edi
call fcn.0040cb60
test eax, eax
je 0x40c8a1
lea ecx, [edi + 0x324]
call fcn.00424780
lea ecx, [edi + 0x324]
call fcn.00424860
mov ecx, edi
call fcn.0040ccb0
test al, al
je 0x40c6eb
push str.Silent_mode_is_enabled
push 0x4656cc
push 0x477a14
call fcn.00433950
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
mov dword [edi + 0x34c], 0
call dword [eax + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
push 0xffffffffffffffff
push dword [edi + 0x344]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40c709
push str.Preparing_UI
push 0x4656cc
push 0x477a14
call fcn.00433950
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x68]
push str.IIF_EXITCODE
lea ecx, [edi + 4]
call fcn.004174a0
push eax
call fcn.004405d0
add esp, 4
test eax, eax
je 0x40c735
cmp eax, 0x669
je 0x40c735
cmp eax, 0xbc2
jne 0x40c8a1
cmp byte [edi + 0x334], 0
je 0x40c8a1
mov ecx, edi
call fcn.0040cb60
cmp eax, 9
jl 0x40c8a1
cmp eax, 0xc
jle 0x40c781
cmp eax, 0xd
jne 0x40c8a1
push 0x465828
lea ecx, [edi + 4]
call fcn.00417500
test al, al
jne 0x40c8a1
mov ecx, edi
call fcn.0040ba00
jmp 0x40c8a1
mov ecx, edi
call fcn.0040b390
jmp 0x40c8a1
push str.IIF_EXITCODE
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.004174a0
push eax
call fcn.004405d0
add esp, 4
cmp eax, 0xbc2
jne 0x40c906
add edi, 0x238
cmp dword [edi + 0x14], 8
jb 0x40c8d3
mov edi, dword [edi]
test edi, edi
je 0x40c8ef
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
test ax, ax
setne al
test al, al
je 0x40c8ef
push str.Created_reboot_lock
jmp 0x40c8f4
push str.Failed_to_create_reboot_lock
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0xc
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.00436666
mov esp, ebp
pop ebp
ret