Function at 0x40d570
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 [0x41295c], 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 0x40d64a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
call section..text
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x40d62d
mov dword [ebp - 0x2c], 0x80004005
mov eax, dword [ebp - 0x2c]
push eax
push 0x468
push str.._setupexe.cpp
call fcn.0040a8b0
jmp 0x40dbde
mov dword [ebp - 0x44], 1
jmp 0x40d65c
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 4]
jge 0x40da88
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
movzx eax, word [edx]
cmp eax, 0x2d
je 0x40d68e
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
movzx ecx, word [eax]
cmp ecx, 0x2f
jne 0x40da6c
push 0xffffffffffffffff
push 0x40fda0
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 0x40d6d8
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 0x40d71b
mov edx, dword [ebp - 0x44]
add edx, 1
cmp edx, dword [ebp - 4]
jl 0x40d6fa
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40d6fa
jmp 0x40dbde
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 0x40da6a
push 0xffffffffffffffff
push 0x40fdb8
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 0x40d783
mov ecx, dword [ebp - 0x44]
add ecx, 1
cmp ecx, dword [ebp - 4]
jl 0x40d762
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40d762
jmp 0x40dbde
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 0x40da6a
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 0x40d7db
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.0040b730
push 0
push 0x40fdcc
lea edx, [ebp - 0x3c]
push edx
call fcn.0040b730
jmp 0x40da6a
push 0xffffffffffffffff
push 0x40fdd0
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 0x40d80c
mov dword [ebp - 0xc], 2
jmp 0x40da6a
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 0x40d83d
mov dword [ebp - 0xc], 3
jmp 0x40da6a
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 0x40d877
push 0
push str.REBOOTReallySuppress
lea eax, [ebp - 0x3c]
push eax
call fcn.0040b730
jmp 0x40da6a
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 0x40d8b1
push 0
push str.REBOOTForce
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0040b730
jmp 0x40da6a
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 0x40d8eb
push 0
push str.REBOOTPROMPT
lea edx, [ebp - 0x3c]
push edx
call fcn.0040b730
jmp 0x40da6a
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 0x40d929
cmp dword [ebp - 0xc], 5
jne 0x40d91d
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x20], 7
jmp 0x40da6a
push 0xffffffffffffffff
push 0x40feb8
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 0x40d971
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.0040b5d0
jmp 0x40da6a
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 0x40d9db
mov edx, dword [ebp - 0x44]
add edx, 1
cmp edx, dword [ebp - 4]
jl 0x40d9b8
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40d9b8
jmp 0x40dbde
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.0040153d
add esp, 4
mov dword [ebp - 0x24], eax
jmp 0x40da6a
push 0xffffffffffffffff
push 0x40fecc
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 0x40da4a
push 0xffffffffffffffff
push 0x40fed0
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 0x40da4a
push 0xffffffffffffffff
push 0x40fed4
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 0x40da53
mov dword [ebp - 0x28], 1
jmp 0x40da6a
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40da6a
jmp 0x40dbde
jmp 0x40da83
mov dword [ebp - 0x2c], 0x80070057
cmp dword [ebp - 0x2c], 0
jge 0x40da83
jmp 0x40dbde
jmp 0x40d653
cmp dword [ebp - 0x28], 0
je 0x40daf5
lea ecx, [ebp - 0x10]
push ecx
push 0xc739
mov edx, dword [0x41295c]
push edx
call fcn.0040b9e0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40dab6
jmp 0x40dbde
lea eax, [ebp - 0x34]
push eax
push 0x7d5
mov ecx, dword [0x41295c]
push ecx
call fcn.0040b9e0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40dade
jmp 0x40dbde
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 0x40dbde
cmp dword [ebp - 0x1c], 0
je 0x40db1f
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0040c640
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40db1a
jmp 0x40dbde
jmp 0x40dbde
cmp dword [ebp - 0x14], 0
je 0x40db81
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.0040b850
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40db5a
jmp 0x40dbde
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.0040baa0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x40db7f
jmp 0x40dbde
jmp 0x40dbde
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0xc73a
push 0
call fcn.0040b850
mov dword [ebp - 0x2c], eax
push 0x716
call section..text
add esp, 4
cmp eax, dword [ebp - 0x2c]
jne 0x40dbb1
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
jge 0x40dbbb
jmp 0x40dbde
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.0040ce60
add esp, 0x18
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x3c], 0
je 0x40dbed
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040b3b0
cmp dword [ebp - 0x10], 0
je 0x40dbfc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040b3b0
cmp dword [ebp - 0x34], 0
je 0x40dc0b
mov edx, dword [ebp - 0x34]
push edx
call fcn.0040b3b0
cmp dword [ebp - 8], 0
je 0x40dc1a
mov eax, dword [ebp - 8]
push eax
call fcn.0040b3b0
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
mov esp, ebp
pop ebp
ret 0x10