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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e8b4
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5fb1a0]
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 - 0xd0], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xbc], esi
mov dword [ebp - 4], 1
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x403202
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa4], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 2
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb4], 0
movlpd qword [ebp - 0x12c], xmm0
movlpd qword [ebp - 0x124], xmm0
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
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0x130], 0x44
mov byte [ebp - 4], 4
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x403202
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.004049d0
push 0x5a0fec
push 0x5a187c
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 6
call fcn.004095d0
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 7
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x403202
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
push str..msi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.00403f20
test al, al
jne 0x4028a1
push 4
push str..msi
lea ecx, [ebp - 0xa0]
call fcn.00409f20
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
push eax
call fcn.00404000
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x8c], esi
mov edi, dword [esi - 0xc]
mov byte [ebp - 4], 0xb
test edi, edi
js 0x40320c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4028f2
push edi
lea ecx, [ebp - 0x8c]
call fcn.00408b50
mov esi, dword [ebp - 0x8c]
lea eax, [edi + 1]
push eax
push esi
call fcn.00567458
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x90], edx
cmp edi, dword [edx + 8]
jg 0x40320c
xor eax, eax
mov dword [edx + 4], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0xa0]
mov edi, dword [edx + 4]
test eax, eax
jne 0x402932
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x402970
cmp dword [esi - 0xc], 0
jge 0x402943
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x402970
push eax
push esi
call fcn.00562f40
mov edx, dword [ebp - 0x90]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x402964
or esi, 0xffffffff
mov dword [ebp - 0x8c], esi
jmp 0x402970
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0x8c], ecx
mov esi, ecx
lea eax, [edi - 4]
or edi, 0xffffffff
mov dword [ebp - 0x90], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402990
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa0]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4029b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, dword [ebp - 0x90]
jne 0x4029e6
push dword [ebp - 0xb0]
lea eax, [ebp - 0x94]
push 0x5a1880
push eax
call fcn.00404830
add esp, 0xc
lea eax, [ebp - 0x94]
mov ecx, 0x5ffc64
push eax
call fcn.004153b0
jmp 0x4029f8
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x94]
call fcn.004024c0
mov esi, dword [ebp - 0x9c]
lea eax, [esi + 0x38]
mov ecx, eax
mov dword [ebp - 0xa0], eax
call fcn.0040a050
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x402b3b
mov ecx, dword [ebp - 0xa4]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x3e8
or eax, edx
jge 0x402a4a
push 0x3e8
lea ecx, [ebp - 0xa4]
call fcn.00408b50
mov ecx, dword [ebp - 0xa4]
cmp dword [ecx - 8], 0x3e8
jl 0x40320c
mov dword [ecx - 0xc], 0x3e8
xor edx, edx
mov eax, dword [ebp - 0xa4]
push 0x3e8
push ecx
mov word [eax + 0x7d0], dx
mov eax, dword [ebp - 0xa0]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x402a8f
xor ecx, ecx
jmp 0x402aab
push dword [eax - 8]
push eax
call fcn.0056712f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40320c
mov eax, dword [ebp - 0xa4]
cmp ecx, dword [eax - 8]
jg 0x40320c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0xa4]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x94]
add eax, 0xfffffff0
push eax
call fcn.00404000
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xa8], esi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
call fcn.0040a050
mov ecx, dword [ebp - 0x90]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x94]
push esi
cmp dword [ebp - 0x8c], ecx
jne 0x402b0c
push str._s__s
jmp 0x402b11
push str.__s___s
push eax
call fcn.00404830
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 0x402b35
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 0x402b5b
push dword [eax - 0xc]
lea ecx, [ebp - 0x94]
call fcn.00404770
mov eax, dword [ebp - 0x94]
push eax
push str.start_:__s
call fcn.004290c0
add esp, 8
push 0
push ecx
mov ecx, esp
push str.uiScriptTest
call fcn.00401f40
mov ecx, 0x5ffc98
call fcn.0041e2a0
cmp dword [esi + 0x6c], 0
lea ecx, [esi + 0x6c]
mov dword [ebp - 0xb8], ecx
je 0x402b9e
cmp dword [esi + 0x60], 0
mov byte [ebp - 0x85], 1
jne 0x402ba5
mov byte [ebp - 0x85], 0
test al, al
je 0x402bbe
cmp dword [0x5ffc34], 0
jne 0x402bbe
mov byte [ebp - 0x85], 0
jmp 0x402cc0
cmp byte [ebp - 0x85], 0
je 0x402cc0
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 0x5a1908
mov dword [ebp - 0xb4], eax
call dword [sym.imp.USER32.dll_CreateDesktopW]
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x402c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.004020d0
push 0x2c9
push dword [eax]
mov byte [ebp - 4], 0xd
push esi
call fcn.004277f0
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 0x402c4d
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 0x402cb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseDesktop]
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
call fcn.004020d0
push 0x2d2
push dword [eax]
mov byte [ebp - 4], 0xe
push esi
call fcn.004277f0
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 0x402cb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x128], str.WinSta0ib
mov eax, dword [ebp - 0x94]
cmp dword [eax - 4], 1
jle 0x402ce0
push dword [eax - 0xc]
lea ecx, [ebp - 0x94]
call fcn.00404770
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x130]
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 0x402d6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x85], 0
mov esi, eax
je 0x402d27
push dword [ebp - 0xac]
call dword [sym.imp.USER32.dll_CloseDesktop]
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x90]
call fcn.004020d0
push 0x2e7
push dword [eax]
mov byte [ebp - 4], 0xf
push esi
call fcn.004277f0
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 0x402d6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x5ffc20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5a1928
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x70
push 0
push eax
mov dword [0x5ffc20], esi
call fcn.00563b50
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 - 0xe0]
push dword [0x5ffc20]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov esi, dword [ebp - 0x9c]
mov byte [ebp - 0x95], 0
cmp dword [esi + 0x60], 0
je 0x403049
push ecx
mov ecx, esp
push str.starting_UI_Script
call fcn.004021d0
call fcn.00429200
add esp, 4
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 0xb8]
cmp esi, dword [eax]
jge 0x403043
test esi, esi
js 0x403216
mov eax, dword [ebp - 0xbc]
mov edi, esi
shl edi, 6
add edi, dword [eax + 0x68]
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 0x11
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x403202
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 0x12
push 1
push 0x5a1038
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xcc], ecx
call fcn.00409f20
imul eax, dword [edi + 0xc], 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 0x20]
mov eax, dword [edi]
lea ecx, [esi + 1]
push dword [edi + 0x24]
mov dword [ebp - 0xa8], ecx
push dword [eax*4 + 0x5a0da0]
push ecx
push str.step_d:__s__s__s
call fcn.004290c0
add esp, 0x14
xor esi, esi
mov dword [ebp - 0x90], esi
cmp esi, 0xa
jae 0x402ec8
push edi
mov byte [ebp - 4], 0x13
call fcn.004261c0
add esp, 4
test eax, eax
je 0x402f2c
push edi
or esi, 0xffffffff
mov byte [ebp - 4], 0x15
call fcn.00425620
mov ecx, dword [ebp - 0xc0]
add esp, 4
push 2
push 0x5a197c
call fcn.00409f20
jmp 0x402fae
push 0x3e8
mov dword [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x402eac
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0xc8]
mov ecx, 0x5a197c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402fe8
test dx, dx
je 0x402fe4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402fe8
add eax, 4
add ecx, 4
test dx, dx
jne 0x402fc2
xor eax, eax
jmp 0x402fed
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 0x12
test eax, eax
je 0x4030d5
mov eax, dword [ebp - 0xcc]
mov byte [ebp - 0x95], 1
push dword [eax]
push str.failed:__s
call fcn.004290c0
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x4030d5
mov edx, dword [ebp - 0xa0]
mov eax, esi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403040
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov esi, dword [ebp - 0x9c]
cmp byte [ebp - 0x85], 0
je 0x40306a
push dword [ebp - 0xb4]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push dword [ebp - 0xac]
call dword [sym.imp.USER32.dll_CloseDesktop]
cmp byte [ebp - 0x95], 0
je 0x403113
push 0
push ecx
mov ecx, esp
push str.keepProcessAlive
call fcn.00401f40
mov ecx, esi
call fcn.0041e2a0
test al, al
jne 0x4030ac
push 0
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.process_terminated
call fcn.004290c0
add esp, 4
push 0
push ecx
mov ecx, esp
push str.ignoreFailure
call fcn.00401f40
mov ecx, esi
call fcn.0041e2a0
test al, al
je 0x403109
push str.ignore_action_failure_and_continue_installation
call fcn.004290c0
add esp, 4
jmp 0x403113
call fcn.0040a500
mov edx, dword [ebp - 0xa0]
mov eax, esi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4030fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa8]
or edi, 0xffffffff
jmp 0x402e00
mov dword [0x5ffc38], 1
push 0
push 0x78
push ecx
mov ecx, esp
push str.waitTimeout
call fcn.00401f40
mov ecx, esi
call fcn.0041e4d0
mov esi, eax
imul ecx, esi, 0xea60
push ecx
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40314f
push esi
push str.timeout__d_min._was_reached_but_the_process_still_active.
jmp 0x403171
mov esi, dword [ebp - 0xd0]
add esi, 0x10
push esi
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi]
test eax, eax
je 0x403179
push eax
push str.process_was_completed_with_exit_code:__d
call fcn.004290c0
add esp, 8
push dword [ebp - 0xe0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xdc]
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 0x4031ac
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 0x4031c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4031e4
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.0055e52e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403cc0
push 0x80070057
call fcn.00403cc0
call fcn.0042a6ab
int3