Function at 0x40f950
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0xc], 5
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 8]
mov dword [0x418b08], eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40fa2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00401e10
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x40fa0d
mov dword [ebp - 0x2c], 0x80004005
mov eax, dword [ebp - 0x2c]
push eax
push 0x460
push str.._setupexe.cpp
call fcn.00402f4c
jmp 0x40ffe5
mov dword [ebp - 0x44], 1
jmp 0x40fa3c
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 4]
jge 0x40fe68
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
movzx eax, word [edx]
cmp eax, 0x2d
je 0x40fa6e
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
movzx ecx, word [eax]
cmp ecx, 0x2f
jne 0x40fe4c
push 0xffffffffffffffff
push 0x414168
push 0xffffffffffffffff
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
add ecx, 2
push ecx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40fab8
push 0xffffffffffffffff
push str.extract
push 0xffffffffffffffff
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
add ecx, 2
push ecx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fafb
mov edx, dword [ebp - 0x44]
add edx, 1
cmp edx, dword [ebp - 4]
jl 0x40fada
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fada
jmp 0x40ffe5
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x40], eax
jmp 0x40fe4a
push 0xffffffffffffffff
push 0x414180
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fb63
mov ecx, dword [ebp - 0x44]
add ecx, 1
cmp ecx, dword [ebp - 4]
jl 0x40fb42
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fb42
jmp 0x40ffe5
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x40], edx
jmp 0x40fe4a
push 0xffffffffffffffff
push str.msicl
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
add edx, 2
push edx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fbbb
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402528
push 0
push 0x414194
lea edx, [ebp - 0x3c]
push edx
call fcn.00402528
jmp 0x40fe4a
push 0xffffffffffffffff
push 0x414198
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
add edx, 2
push edx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fbec
mov dword [ebp - 0xc], 2
jmp 0x40fe4a
push 0xffffffffffffffff
push str.passive
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
add edx, 2
push edx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fc1d
mov dword [ebp - 0xc], 3
jmp 0x40fe4a
push 0xffffffffffffffff
push str.norestart
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
add edx, 2
push edx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fc57
push 0
push str.REBOOTReallySuppress
lea eax, [ebp - 0x3c]
push eax
call fcn.00402528
jmp 0x40fe4a
push 0xffffffffffffffff
push str.forcerestart
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fc91
push 0
push str.REBOOTForce
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402528
jmp 0x40fe4a
push 0xffffffffffffffff
push str.promptrestart
push 0xffffffffffffffff
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
add ecx, 2
push ecx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fccb
push 0
push str.REBOOTPROMPT
lea edx, [ebp - 0x3c]
push edx
call fcn.00402528
jmp 0x40fe4a
push 0xffffffffffffffff
push str.uninstall
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
add edx, 2
push edx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fd09
cmp dword [ebp - 0xc], 5
jne 0x40fcfd
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x20], 7
jmp 0x40fe4a
push 0xffffffffffffffff
push 0x414280
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
add edx, 2
push edx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fd51
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004024ae
jmp 0x40fe4a
push 0xffffffffffffffff
push 0x414288
push 0xffffffffffffffff
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
add ecx, 2
push ecx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fdbb
mov edx, dword [ebp - 0x44]
add edx, 1
cmp edx, dword [ebp - 4]
jl 0x40fd98
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fd98
jmp 0x40ffe5
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00403a20
add esp, 4
mov dword [ebp - 0x24], eax
jmp 0x40fe4a
push 0xffffffffffffffff
push 0x414294
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40fe2a
push 0xffffffffffffffff
push 0x414298
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40fe2a
push 0xffffffffffffffff
push 0x41429c
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40fe33
mov dword [ebp - 0x28], 1
jmp 0x40fe4a
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fe4a
jmp 0x40ffe5
jmp 0x40fe63
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fe63
jmp 0x40ffe5
jmp 0x40fa33
cmp dword [ebp - 0xc], 3
jne 0x40fe90
cmp dword [ebp - 0x3c], 0
je 0x40fe90
push 0x4142a8
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00401df0
add esp, 8
test eax, eax
je 0x40fe90
mov dword [ebp - 0xc], 2
cmp dword [ebp - 0x28], 0
je 0x40fefc
lea edx, [ebp - 0x10]
push edx
push 0xc739
mov eax, dword [0x418b08]
push eax
call fcn.0040281c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40febd
jmp 0x40ffe5
lea ecx, [ebp - 0x34]
push ecx
push 0x7d5
mov edx, dword [0x418b08]
push edx
call fcn.0040281c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40fee5
jmp 0x40ffe5
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40ffe5
cmp dword [ebp - 0x1c], 0
je 0x40ff26
mov edx, dword [ebp - 0x40]
push edx
call fcn.0040e110
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40ff21
jmp 0x40ffe5
jmp 0x40ffe5
cmp dword [ebp - 0x14], 0
je 0x40ff88
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
push ecx
push str.MANIFEST
push 0
call fcn.00402892
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40ff61
jmp 0x40ffe5
mov edx, dword [ebp - 0x50]
add edx, 4
mov dword [ebp - 0x48], edx
push 2
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004029aa
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40ff86
jmp 0x40ffe5
jmp 0x40ffe5
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x38]
push eax
push 0xc73a
push 0
call fcn.00402892
mov dword [ebp - 0x2c], eax
push 0x716
call fcn.00401e10
add esp, 4
cmp eax, dword [ebp - 0x2c]
jne 0x40ffb8
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
jge 0x40ffc2
jmp 0x40ffe5
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0040f230
add esp, 0x18
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x3c], 0
je 0x40fff4
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00401f72
cmp dword [ebp - 0x10], 0
je 0x410003
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401f72
cmp dword [ebp - 0x34], 0
je 0x410012
mov eax, dword [ebp - 0x34]
push eax
call fcn.00401f72
cmp dword [ebp - 8], 0
je 0x410021
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401f72
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
mov esp, ebp
pop ebp
ret 0x10