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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589f74
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5f31c0]
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.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4031b4
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.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4031b4
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.004049c0
push 0x59bfec
push 0x59c87c
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 6
call fcn.004095c0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 7
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4031b4
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.00403ed0
test al, al
jne 0x402871
push 4
push str..msi
lea ecx, [ebp - 0xa4]
call fcn.00409f30
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
push eax
call fcn.00403fb0
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 0x4031be
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x4028c2
push edi
lea ecx, [ebp - 0x8c]
call fcn.00408b40
mov esi, dword [ebp - 0x8c]
lea eax, [edi + 1]
push eax
push esi
call fcn.00566f33
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0xa8], edx
cmp edi, dword [edx + 8]
jg 0x4031be
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 0x402902
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x402940
cmp dword [esi - 0xc], 0
jge 0x402913
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x402940
push eax
push esi
call fcn.00562a29
mov edx, dword [ebp - 0xa8]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x402934
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x402940
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 0x402960
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 0x402981
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, dword [ebp - 0xa8]
jne 0x4029b6
push dword [ebp - 0xb0]
lea eax, [ebp - 0x94]
push 0x59c880
push eax
call fcn.00404820
add esp, 0xc
lea eax, [ebp - 0x94]
mov ecx, 0x5f7c40
push eax
call fcn.004154d0
jmp 0x4029c8
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x94]
call fcn.00402490
mov esi, dword [ebp - 0x9c]
lea eax, [esi + 0x38]
mov ecx, eax
mov dword [ebp - 0x90], eax
call fcn.0040a060
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x402b0b
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 0x402a1a
push 0x3e8
lea ecx, [ebp - 0xa0]
call fcn.00408b40
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx - 8], 0x3e8
jl 0x4031be
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 0x402a5f
xor ecx, ecx
jmp 0x402a7b
push dword [eax - 8]
push eax
call fcn.00566c08
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4031be
mov eax, dword [ebp - 0xa0]
cmp ecx, dword [eax - 8]
jg 0x4031be
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.00403fb0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x90], esi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.0040a060
mov ecx, dword [ebp - 0xa8]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x94]
push esi
cmp dword [ebp - 0x8c], ecx
jne 0x402adc
push str._s__s
jmp 0x402ae1
push str.__s___s
push eax
call fcn.00404820
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 0x402b05
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 0x402b2b
push dword [eax - 0xc]
lea ecx, [ebp - 0x94]
call fcn.00404760
mov eax, dword [ebp - 0x94]
push eax
push str.start_:__s
call fcn.00428fe0
add esp, 8
push 0
push ecx
mov ecx, esp
push str.uiScriptTest
call fcn.00401f10
mov ecx, 0x5f7bc8
call fcn.0041ebd0
cmp dword [esi + 0x6c], 0
je 0x402b65
cmp dword [esi + 0x60], 0
mov byte [ebp - 0x85], 1
jne 0x402b6c
mov byte [ebp - 0x85], 0
test al, al
je 0x402b85
cmp dword [0x5f7b94], 0
jne 0x402b85
mov byte [ebp - 0x85], 0
jmp 0x402c87
cmp byte [ebp - 0x85], 0
je 0x402c87
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 0x59c908
mov dword [ebp - 0xb8], eax
call dword [sym.imp.USER32.dll_CreateDesktopW]
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x402c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.004020a0
push 0x300
push dword [eax]
mov byte [ebp - 4], 0xd
push esi
call fcn.004279c0
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 0x402c14
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 0x402c7d
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.004020a0
push 0x309
push dword [eax]
mov byte [ebp - 4], 0xe
push esi
call fcn.004279c0
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 0x402c7d
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 0x402ca7
push dword [eax - 0xc]
lea ecx, [ebp - 0x94]
call fcn.00404760
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 0x402d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x85], 0
mov esi, eax
je 0x402cee
push dword [ebp - 0xac]
call dword [sym.imp.USER32.dll_CloseDesktop]
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
call fcn.004020a0
push 0x31e
push dword [eax]
mov byte [ebp - 4], 0xf
push esi
call fcn.004279c0
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 0x402d33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x5f7b80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x59c928
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 [0x5f7b80], esi
push 0
push eax
call fcn.00563630
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 [0x5f7b80]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov esi, dword [ebp - 0x9c]
mov byte [ebp - 0x95], 0
cmp dword [esi + 0x60], 0
je 0x402fef
push ecx
mov ecx, esp
push str.starting_UI_Script
call fcn.004021a0
call fcn.004290e0
add esp, 4
xor edi, edi
mov dword [ebp - 0x90], edi
cmp edi, dword [esi + 0x6c]
jge 0x4030b3
test edi, edi
js 0x4031c8
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.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x4031b4
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 0x59c038
call fcn.00409f30
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 + 0x59bda0]
lea eax, [edi + 1]
push eax
push str.step_d:__s__s__s
call fcn.00428fe0
add esp, 0x14
xor edi, edi
mov dword [ebp - 0xa8], edi
cmp edi, 0xa
jae 0x402e78
push esi
mov byte [ebp - 4], 0x13
call fcn.004263d0
add esp, 4
test eax, eax
je 0x402ed9
push esi
or edi, 0xffffffff
mov byte [ebp - 4], 0x15
call fcn.00425830
add esp, 4
lea ecx, [esi + 8]
push 2
push 0x59c97c
call fcn.00409f30
jmp 0x402f5b
push 0x3e8
mov dword [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x402e5c
mov dword [ebp - 4], 0x12
mov eax, dword [esi + 8]
mov ecx, 0x59c97c
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402f96
test dx, dx
je 0x402f92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402f96
add eax, 4
add ecx, 4
test dx, dx
jne 0x402f70
xor eax, eax
jmp 0x402f9b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 0x12
test eax, eax
je 0x40307b
push dword [esi + 8]
mov byte [ebp - 0x95], 1
push str.failed:__s
call fcn.00428fe0
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x40307b
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 0x402fe9
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 0x403010
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 0x4030c5
push 0
push ecx
mov ecx, esp
push str.keepProcessAlive
call fcn.00401f10
mov ecx, esi
call fcn.0041ebd0
test al, al
jne 0x403052
push 0
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.process_terminated
call fcn.00428fe0
add esp, 4
push 0
push ecx
mov ecx, esp
push str.ignoreFailure
call fcn.00401f10
mov ecx, esi
call fcn.0041ebd0
test al, al
je 0x4030bb
push str.ignore_action_failure_and_continue_installation
call fcn.00428fe0
add esp, 4
jmp 0x4030c5
call fcn.0040a510
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 0x4030a1
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 0x402dc7
or edi, 0xffffffff
jmp 0x402fef
mov dword [0x5f7b98], 1
push 0
push 0x78
push ecx
mov ecx, esp
push str.waitTimeout
call fcn.00401f10
mov ecx, esi
call fcn.0041ee00
mov esi, eax
imul ecx, esi, 0xea60
push ecx
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403101
push esi
push str.timeout__d_min._was_reached_but_the_process_still_active.
jmp 0x403123
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 0x40312b
push eax
push str.process_was_completed_with_exit_code:__d
call fcn.00428fe0
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 0x40315e
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 0x40317b
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 0x403196
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.0055e0c1
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403c70
push 0x80070057
call fcn.00403c70
call fcn.0042a442
int3