Function at 0x471274
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x648b1e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x758f44]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x74]
mov edi, dword [ebp + 0x7c]
mov dword [ebp - 0x18], eax
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x18], eax
call fcn.00471180
xor edx, edx
xor ecx, ecx
inc edx
movzx ecx, cl
cmp eax, edx
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
lea ecx, [ebp - 0x180]
call fcn.00474a7f
xor eax, eax
lea ecx, [ebp - 0x180]
mov edx, str.msiexec.exe__i__
mov dword [ebp - 4], eax
call fcn.004752ac
mov edx, dword [ebp - 0x18]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0048a63e
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0047546d
mov edx, edi
lea ecx, [ebp + 0x50]
mov esi, eax
call fcn.0048a63e
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0047546d
mov edx, str.___quiet__norestart
mov ecx, eax
call fcn.004752ac
lea ecx, [ebp + 0x50]
call fcn.004510b9
xor eax, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], al
call fcn.004510b9
cmp byte [ebx + 0x14], 0
je 0x47135b
mov edx, str._AUTOSTART_WITH_WINDOWSfalse
lea ecx, [ebp - 0x180]
call fcn.004752ac
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c4]
push eax
call fcn.0060ecf0
add esp, 0xc
mov dword [ebp - 0x1c4], esi
lea eax, [ebp + 0x38]
lea ecx, [ebp - 0x17c]
push eax
call fcn.00474f05
push 2
pop ecx
mov byte [ebp - 4], 3
call fcn.00488e9b
test al, al
je 0x47144e
push ecx
lea ecx, [ebp - 0xe8]
call fcn.004506fd
mov edx, str.Start_spark_silent_install:
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe8]
call fcn.00451714
lea edx, [ebp + 0x38]
mov esi, eax
lea ecx, [ebp + 8]
call fcn.0048a4b7
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.0045195f
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.004511a7
sub esp, 0x18
mov ecx, 0x6f9774
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0044ff43
sub esp, 0x18
mov byte [ebp - 4], 6
mov eax, esp
mov dword [ebp - 0x20], esp
mov ecx, 0x6f9720
push eax
call fcn.0047353a
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x1c], eax
push eax
call fcn.00450fef
push 2
mov edx, 0x82
mov byte [ebp - 4], 4
pop ecx
call fcn.00488e21
add esp, 0x48
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.0044ec83
mov edx, dword [ebp - 0x18]
lea ecx, [ebp + 0x20]
call fcn.0048a63e
mov byte [ebp - 4], 8
lea edx, [ebp - 0x30]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push edx
cmovae eax, dword [ebp + 0x20]
lea edx, [ebp - 0x1c4]
cmp dword [ebp + 0x4c], 8
lea ecx, [ebp + 0x38]
push edx
cmovae ecx, dword [ebp + 0x38]
push eax
push ebx
push 0x8000020
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x4715a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop ecx
mov edi, eax
call fcn.00488e9b
test al, al
je 0x47156f
push ecx
lea ecx, [ebp - 0xe8]
call fcn.004506fd
mov edx, str.Unable_to_launch_Spark_MSI:
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe8]
call fcn.00451714
lea edx, [ebp + 0x38]
mov esi, eax
lea ecx, [ebp + 8]
call fcn.0048a4b7
mov edx, eax
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.0045195f
mov edx, str._Error_code:
mov ecx, eax
call fcn.00451714
push edi
mov ecx, eax
call fcn.00455eec
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.004511a7
sub esp, 0x18
mov ecx, 0x6f9774
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0044ff43
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov eax, esp
mov dword [ebp - 0x20], esp
mov ecx, 0x6f9720
push eax
call fcn.0047353a
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov eax, esp
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
push 5
mov edx, 0x8a
mov byte [ebp - 4], 9
pop ecx
call fcn.00488e21
add esp, 0x48
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.0044ec83
push str.MSI_failed_to_install
lea ecx, [ebp + 0x50]
call fcn.0044ea89
mov esi, dword [ebp + 4]
lea eax, [ebp + 0x50]
push edi
push eax
push 7
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00470f60
mov eax, dword [ebp - 0x14]
mov byte [ebp + 6], al
mov byte [ebp + 7], 1
mov cx, word [ebp + 6]
mov word [esi + 0x22], cx
jmp 0x471729
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
jmp 0x4715ce
cmp dword [ebp - 0x4c], 0x12
je 0x4715e1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4715b4
push 0x1cff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x30]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x4715ce
lea eax, [ebp]
mov dword [ebp], ebx
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
xor ebx, ebx
cmp dword [ebp], ebx
push 2
pop ecx
sete bl
call fcn.00488e9b
test al, al
je 0x4716c4
push ecx
lea ecx, [ebp - 0xe8]
call fcn.004506fd
mov edx, str.Spark_Install_succeeded:
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xe8]
call fcn.00451714
push ebx
mov ecx, eax
call fcn.0047401d
mov edx, str.__Exit_Code:
mov ecx, eax
call fcn.00451714
push dword [ebp]
mov ecx, eax
call fcn.00455eec
sub esp, 0x18
mov ecx, 0x6f9774
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0044ff43
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov eax, esp
mov dword [ebp - 0x20], esp
mov ecx, 0x6f9720
push eax
call fcn.0047353a
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov eax, esp
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
push 2
mov edx, 0xaa
mov byte [ebp - 4], 0xe
pop ecx
call fcn.00488e21
add esp, 0x48
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.0044ec83
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp]
lea ecx, [ebp + 0x50]
test ebx, ebx
jne 0x4716f7
push str.MSI_failed_to_install
call fcn.0044ea89
push esi
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 0x11
push eax
push 7
jmp 0x47170d
push str.Install_finished_successfully
call fcn.0044ea89
push esi
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 0x12
push eax
xor eax, eax
push eax
mov esi, dword [ebp + 4]
mov ecx, esi
call fcn.00470f60
mov eax, dword [ebp - 0x14]
mov byte [ebp + 6], al
mov byte [ebp + 7], 1
mov ax, word [ebp + 6]
mov word [esi + 0x22], ax
lea ecx, [ebp + 0x50]
call fcn.004511a7
lea ecx, [ebp + 0x20]
call fcn.004510b9
lea ecx, [ebp + 0x38]
call fcn.004510b9
lea ecx, [ebp - 0x180]
call fcn.004717ba
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.005f9dd5
add ebp, 0x6c
leave
ret 0xc