Function at 0x40f940
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 0x40fa1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00401df0
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x40f9fd
mov dword [ebp - 0x2c], 0x80004005
mov eax, dword [ebp - 0x2c]
push eax
push 0x46a
push str.._setupexe.cpp
call fcn.00402f2c
jmp 0x40ffae
mov dword [ebp - 0x44], 1
jmp 0x40fa2c
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 4]
jge 0x40fe58
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
movzx eax, word [edx]
cmp eax, 0x2d
je 0x40fa5e
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
movzx ecx, word [eax]
cmp ecx, 0x2f
jne 0x40fe3c
push 0xffffffffffffffff
push 0x41417c
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 0x40faa8
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 0x40faeb
mov edx, dword [ebp - 0x44]
add edx, 1
cmp edx, dword [ebp - 4]
jl 0x40faca
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40faca
jmp 0x40ffae
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 0x40fe3a
push 0xffffffffffffffff
push 0x414194
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 0x40fb53
mov ecx, dword [ebp - 0x44]
add ecx, 1
cmp ecx, dword [ebp - 4]
jl 0x40fb32
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fb32
jmp 0x40ffae
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 0x40fe3a
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 0x40fbab
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.00402508
push 0
push 0x4141a8
lea edx, [ebp - 0x3c]
push edx
call fcn.00402508
jmp 0x40fe3a
push 0xffffffffffffffff
push 0x4141ac
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 0x40fbdc
mov dword [ebp - 0xc], 2
jmp 0x40fe3a
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 0x40fc0d
mov dword [ebp - 0xc], 3
jmp 0x40fe3a
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 0x40fc47
push 0
push str.REBOOTReallySuppress
lea eax, [ebp - 0x3c]
push eax
call fcn.00402508
jmp 0x40fe3a
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 0x40fc81
push 0
push str.REBOOTForce
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402508
jmp 0x40fe3a
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 0x40fcbb
push 0
push str.REBOOTPROMPT
lea edx, [ebp - 0x3c]
push edx
call fcn.00402508
jmp 0x40fe3a
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 0x40fcf9
cmp dword [ebp - 0xc], 5
jne 0x40fced
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x20], 7
jmp 0x40fe3a
push 0xffffffffffffffff
push 0x414294
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 0x40fd41
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.0040248e
jmp 0x40fe3a
push 0xffffffffffffffff
push str.lang
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 0x40fdab
mov edx, dword [ebp - 0x44]
add edx, 1
cmp edx, dword [ebp - 4]
jl 0x40fd88
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fd88
jmp 0x40ffae
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.00403a00
add esp, 4
mov dword [ebp - 0x24], eax
jmp 0x40fe3a
push 0xffffffffffffffff
push 0x4142a8
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 0x40fe1a
push 0xffffffffffffffff
push 0x4142ac
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 0x40fe1a
push 0xffffffffffffffff
push 0x4142b0
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 0x40fe23
mov dword [ebp - 0x28], 1
jmp 0x40fe3a
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fe3a
jmp 0x40ffae
jmp 0x40fe53
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40fe53
jmp 0x40ffae
jmp 0x40fa23
cmp dword [ebp - 0x28], 0
je 0x40fec5
lea ecx, [ebp - 0x10]
push ecx
push 0xc739
mov edx, dword [0x418b08]
push edx
call fcn.004027fc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40fe86
jmp 0x40ffae
lea eax, [ebp - 0x34]
push eax
push 0x7d5
mov ecx, dword [0x418b08]
push ecx
call fcn.004027fc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40feae
jmp 0x40ffae
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40ffae
cmp dword [ebp - 0x1c], 0
je 0x40feef
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0040e090
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40feea
jmp 0x40ffae
jmp 0x40ffae
cmp dword [ebp - 0x14], 0
je 0x40ff51
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
push str.MANIFEST
push 0
call fcn.00402872
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40ff2a
jmp 0x40ffae
mov ecx, dword [ebp - 0x50]
add ecx, 4
mov dword [ebp - 0x48], ecx
push 2
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040298a
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40ff4f
jmp 0x40ffae
jmp 0x40ffae
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0xc73a
push 0
call fcn.00402872
mov dword [ebp - 0x2c], eax
push 0x716
call fcn.00401df0
add esp, 4
cmp eax, dword [ebp - 0x2c]
jne 0x40ff81
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
jge 0x40ff8b
jmp 0x40ffae
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0040f1b0
add esp, 0x18
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ffbd
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00401f52
cmp dword [ebp - 0x10], 0
je 0x40ffcc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401f52
cmp dword [ebp - 0x34], 0
je 0x40ffdb
mov edx, dword [ebp - 0x34]
push edx
call fcn.00401f52
cmp dword [ebp - 8], 0
je 0x40ffea
mov eax, dword [ebp - 8]
push eax
call fcn.00401f52
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
mov esp, ebp
pop ebp
ret 0x10