Function at 0x401d80
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462144
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x47e700]
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
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 4], 1
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x402854
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 2
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb8], 0
movlpd qword [ebp - 0x11c], xmm0
movlpd qword [ebp - 0x114], xmm0
movlpd qword [ebp - 0x10c], xmm0
movlpd qword [ebp - 0x104], xmm0
movlpd qword [ebp - 0xfc], xmm0
movlpd qword [ebp - 0xf4], xmm0
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0x120], 0x44
mov byte [ebp - 4], 4
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x402854
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x94], eax
push esi
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.00404060
push 0x4668cc
push 0x46715c
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 6
call fcn.00408c70
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 7
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x402854
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa4], eax
push str..msi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 8
call fcn.00403570
test al, al
jne 0x401f11
push 4
push str..msi
lea ecx, [ebp - 0xa4]
call fcn.004095e0
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
push eax
call fcn.00403650
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x8c], esi
mov edi, dword [eax + 4]
mov byte [ebp - 4], 0xb
test edi, edi
js 0x40285e
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x401f62
push edi
lea ecx, [ebp - 0x8c]
call fcn.004081f0
mov esi, dword [ebp - 0x8c]
lea eax, [edi + 1]
push eax
push esi
call fcn.00440c8e
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0xa8], edx
cmp edi, dword [edx + 8]
jg 0x40285e
xor eax, eax
mov dword [edx + 4], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0xa4]
mov edi, dword [edx + 4]
test eax, eax
jne 0x401fa2
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x401fe0
cmp dword [esi - 0xc], 0
jge 0x401fb3
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x401fe0
push eax
push esi
call fcn.0043c7ee
mov edx, dword [ebp - 0xa8]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x401fd4
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x401fe0
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0x8c], ecx
mov esi, ecx
lea eax, [edi - 4]
or edi, 0xffffffff
mov dword [ebp - 0xa8], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402000
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa4]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402021
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, dword [ebp - 0xa8]
jne 0x402056
push dword [ebp - 0xb0]
lea eax, [ebp - 0x94]
push 0x467160
push eax
call fcn.00403ec0
add esp, 0xc
lea eax, [ebp - 0x94]
mov ecx, 0x4801f0
push eax
call fcn.00414790
jmp 0x402068
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x94]
call fcn.00401b30
mov esi, dword [ebp - 0x9c]
lea eax, [esi + 0x38]
mov ecx, eax
mov dword [ebp - 0x90], eax
call fcn.00409710
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x4021ab
mov ecx, dword [ebp - 0xa0]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x3e8
or eax, edx
jge 0x4020ba
push 0x3e8
lea ecx, [ebp - 0xa0]
call fcn.004081f0
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx - 8], 0x3e8
jl 0x40285e
mov dword [ecx - 0xc], 0x3e8
xor edx, edx
mov eax, dword [ebp - 0xa0]
push 0x3e8
push ecx
mov word [eax + 0x7d0], dx
mov eax, dword [ebp - 0x90]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x4020ff
xor ecx, ecx
jmp 0x40211b
push dword [eax - 8]
push eax
call fcn.00440963
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40285e
mov eax, dword [ebp - 0xa0]
cmp ecx, dword [eax - 8]
jg 0x40285e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0xa0]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x94]
add eax, 0xfffffff0
push eax
call fcn.00403650
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x90], esi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.00409710
mov ecx, dword [ebp - 0xa8]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x94]
push esi
cmp dword [ebp - 0x8c], ecx
jne 0x40217c
push str._s__s
jmp 0x402181
push str.__s___s
push eax
call fcn.00403ec0
add esp, 0x10
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4021a5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x94]
cmp dword [eax - 4], 1
jle 0x4021cb
push dword [eax - 0xc]
lea ecx, [ebp - 0x94]
call fcn.00403e00
mov eax, dword [ebp - 0x94]
push eax
push str.start_:__s
call fcn.004282a0
add esp, 8
push 0
push ecx
mov ecx, esp
push str.uiScriptTest
call fcn.004015b0
mov ecx, 0x480178
call fcn.0041de90
cmp dword [esi + 0x6c], 0
je 0x402205
cmp dword [esi + 0x60], 0
mov byte [ebp - 0x85], 1
jne 0x40220c
mov byte [ebp - 0x85], 0
test al, al
je 0x402225
cmp dword [0x480144], 0
jne 0x402225
mov byte [ebp - 0x85], 0
jmp 0x402327
cmp byte [ebp - 0x85], 0
je 0x402327
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0
push 0x2000000
push 0
push 0
push 0
push 0x4671e8
mov dword [ebp - 0xb8], eax
call dword [sym.imp.USER32.dll_CreateDesktopW]
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x4022b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.00401740
push 0x300
push dword [eax]
mov byte [ebp - 4], 0xd
push esi
call fcn.00426c80
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4022b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xac]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x40231d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseDesktop]
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
call fcn.00401740
push 0x309
push dword [eax]
mov byte [ebp - 4], 0xe
push esi
call fcn.00426c80
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40231d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x118], str.WinSta0ib
mov eax, dword [ebp - 0x94]
cmp dword [eax - 4], 1
jle 0x402347
push dword [eax - 0xc]
lea ecx, [ebp - 0x94]
call fcn.00403e00
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0x1000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4023d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x85], 0
mov esi, eax
je 0x40238e
push dword [ebp - 0xac]
call dword [sym.imp.USER32.dll_CloseDesktop]
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
call fcn.00401740
push 0x31e
push dword [eax]
mov byte [ebp - 4], 0xf
push esi
call fcn.00426c80
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4023d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x480130]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x467208
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, eax
mov dword [ebp - 0x84], 0
push 0x6c
lea eax, [ebp - 0x80]
mov dword [0x480130], esi
push 0
push eax
call fcn.0043d3f0
add esp, 0xc
mov dword [ebp - 0x74], 0x2000
lea eax, [ebp - 0x84]
push 0x70
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
push dword [ebp - 0xd0]
push dword [0x480130]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov esi, dword [ebp - 0x9c]
mov byte [ebp - 0x95], 0
cmp dword [esi + 0x60], 0
je 0x40268f
push ecx
mov ecx, esp
push str.starting_UI_Script
call fcn.00401840
call fcn.004283a0
add esp, 4
xor edi, edi
mov dword [ebp - 0x90], edi
cmp edi, dword [esi + 0x6c]
jge 0x402753
test edi, edi
js 0x402868
mov eax, dword [ebp - 0xb4]
mov esi, edi
shl esi, 6
add esi, dword [eax + 0x68]
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 0x11
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x402854
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa4], eax
push 1
lea ecx, [esi + 8]
mov byte [ebp - 4], 0x12
push 0x466918
call fcn.004095e0
imul eax, dword [esi + 0xc], 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x20]
mov eax, dword [esi]
push dword [esi + 0x24]
push dword [eax*4 + 0x4666c0]
lea eax, [edi + 1]
push eax
push str.step_d:__s__s__s
call fcn.004282a0
add esp, 0x14
xor edi, edi
mov dword [ebp - 0xa8], edi
cmp edi, 0xa
jae 0x402518
push esi
mov byte [ebp - 4], 0x13
call fcn.00425690
add esp, 4
test eax, eax
je 0x402579
push esi
or edi, 0xffffffff
mov byte [ebp - 4], 0x15
call fcn.00424af0
add esp, 4
lea ecx, [esi + 8]
push 2
push 0x46725c
call fcn.004095e0
jmp 0x4025fb
push 0x3e8
mov dword [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x4024fc
mov dword [ebp - 4], 0x12
mov eax, dword [esi + 8]
mov ecx, 0x46725c
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402636
test dx, dx
je 0x402632
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402636
add eax, 4
add ecx, 4
test dx, dx
jne 0x402610
xor eax, eax
jmp 0x40263b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 0x12
test eax, eax
je 0x40271b
push dword [esi + 8]
mov byte [ebp - 0x95], 1
push str.failed:__s
call fcn.004282a0
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x40271b
mov edx, dword [ebp - 0xa4]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402689
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x9c]
cmp byte [ebp - 0x85], 0
je 0x4026b0
push dword [ebp - 0xb8]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push dword [ebp - 0xac]
call dword [sym.imp.USER32.dll_CloseDesktop]
cmp byte [ebp - 0x95], 0
je 0x402765
push 0
push ecx
mov ecx, esp
push str.keepProcessAlive
call fcn.004015b0
mov ecx, esi
call fcn.0041de90
test al, al
jne 0x4026f2
push 0
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.process_terminated
call fcn.004282a0
add esp, 4
push 0
push ecx
mov ecx, esp
push str.ignoreFailure
call fcn.004015b0
mov ecx, esi
call fcn.0041de90
test al, al
je 0x40275b
push str.ignore_action_failure_and_continue_installation
call fcn.004282a0
add esp, 4
jmp 0x402765
call fcn.00409bc0
mov edx, dword [ebp - 0xa4]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402741
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x90]
mov esi, dword [ebp - 0x9c]
inc edi
jmp 0x402467
or edi, 0xffffffff
jmp 0x40268f
mov dword [0x480148], 1
push 0
push 0x78
push ecx
mov ecx, esp
push str.waitTimeout
call fcn.004015b0
mov ecx, esi
call fcn.0041e0c0
mov esi, eax
imul ecx, esi, 0xea60
push ecx
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4027a1
push esi
push str.timeout__d_min._was_reached_but_the_process_still_active.
jmp 0x4027c3
mov esi, dword [ebp - 0xc0]
add esi, 0x10
push esi
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi]
test eax, eax
je 0x4027cb
push eax
push str.process_was_completed_with_exit_code:__d
call fcn.004282a0
add esp, 8
push dword [ebp - 0xd0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xcc]
call esi
mov edx, dword [ebp - 0xb0]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4027fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x94]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40281b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x402836
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00438287
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403310
push 0x80070057
call fcn.00403310
call fcn.00429c0d
int3