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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597633
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x194
mov eax, dword [0x6031c0]
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 dword [ebp - 0xb4], ecx
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0xb0]
call fcn.00402220
mov dword [ebp - 4], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xcc], 0
push 0x44
push 0
lea eax, [ebp - 0x1a4]
push eax
call fcn.0056f490
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x1a4], 0x44
lea ecx, [ebp - 0x98]
call fcn.00402220
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00405830
mov byte [ebp - 4], 2
push 0x5aa3ac
push 0x5aa6dc
lea ecx, [ebp - 0xac]
call fcn.004097e0
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0x5aa6e0
call fcn.004020c0
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
lea edx, [ebp - 0xac]
push edx
call fcn.00401fd0
mov byte [ebp - 4], 2
call fcn.004053c0
add esp, 8
mov byte [ebp - 0x99], al
mov al, byte [ebp - 0x99]
mov byte [ebp - 0x8d], al
movzx ecx, byte [ebp - 0x8d]
test ecx, ecx
je 0x402c56
mov edx, dword [ebp - 0xac]
push edx
push str._SystemFolder_msiexec.exe__i___s_
lea eax, [ebp - 0x98]
push eax
call fcn.004056d0
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov ecx, 0x607c40
call fcn.004150c0
jmp 0x402c68
lea edx, [ebp - 0xac]
push edx
lea ecx, [ebp - 0x98]
call fcn.004025b0
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.0040a530
mov ecx, eax
call fcn.00407980
movzx eax, al
test eax, eax
jne 0x402d86
push 0x3e8
lea ecx, [ebp - 0xb0]
call fcn.00405e30
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.00402790
mov dword [ebp - 0x138], eax
push 0x3e8
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xb0]
call fcn.004094e0
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00401fd0
mov byte [ebp - 4], 4
movzx ecx, byte [ebp - 0x8d]
test ecx, ecx
je 0x402d36
lea ecx, [ebp - 0xb0]
call fcn.0040a530
mov edx, dword [eax]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe4]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
push str._s__s
lea eax, [ebp - 0x98]
push eax
call fcn.004056d0
add esp, 0x10
jmp 0x402d77
lea ecx, [ebp - 0xb0]
call fcn.0040a530
mov ecx, dword [eax]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
push str.__s___s
lea edx, [ebp - 0x98]
push edx
call fcn.004056d0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.004023e0
lea ecx, [ebp - 0x98]
call fcn.00405df0
push eax
push str.start_:__s
call fcn.00435d80
add esp, 8
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.uiScriptTest
call fcn.00401f50
mov ecx, 0x607bc8
call fcn.004278a0
mov byte [ebp - 0x9a], al
mov al, byte [ebp - 0x9a]
mov byte [ebp - 0x9b], al
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00405e60
test eax, eax
je 0x402df4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x60], 0
je 0x402df4
mov dword [ebp - 0xc0], 1
jmp 0x402dfe
mov dword [ebp - 0xc0], 0
mov dl, byte [ebp - 0xc0]
mov byte [ebp - 0x85], dl
movzx eax, byte [ebp - 0x9b]
test eax, eax
je 0x402e25
cmp dword [0x607b94], 0
jne 0x402e25
mov byte [ebp - 0x85], 0
movzx ecx, byte [ebp - 0x85]
test ecx, ecx
je 0x402f58
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 0xcc], eax
push 0
push 0x2000000
push 0
push 0
push 0
push 0x5aa778
call dword [sym.imp.USER32.dll_CreateDesktopW]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x402ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
push 0x5aa780
lea ecx, [ebp - 0xfc]
call fcn.00402040
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], edx
mov byte [ebp - 4], 5
push 0x353
mov ecx, dword [ebp - 0xf8]
call fcn.00402790
push eax
mov eax, dword [ebp - 0x94]
push eax
call fcn.00433d50
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xfc]
call fcn.004023e0
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x402f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.USER32.dll_CloseDesktop]
push 0x5aa7b0
lea ecx, [ebp - 0x108]
call fcn.00402040
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 6
push 0x35c
mov ecx, dword [ebp - 0x104]
call fcn.00402790
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00433d50
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x108]
call fcn.004023e0
mov dword [ebp - 0x19c], str.WinSta0ib
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x1a4]
push eax
push 0
push 0
push 0x1000000
push 0
push 0
push 0
lea ecx, [ebp - 0x98]
call fcn.00405df0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403006
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
movzx ecx, byte [ebp - 0x85]
test ecx, ecx
je 0x402fb1
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.USER32.dll_CloseDesktop]
push 0x5aa7f8
lea ecx, [ebp - 0x114]
call fcn.00402040
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 7
push 0x371
mov ecx, dword [ebp - 0x110]
call fcn.00402790
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00433d50
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.004023e0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x60], 0
jne 0x40301e
push 0xffffffffffffffff
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x607b80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5aa828
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [0x607b80], eax
mov dword [ebp - 0x84], 0
push 0x6c
push 0
lea edx, [ebp - 0x80]
push edx
call fcn.0056f490
add esp, 0xc
mov dword [ebp - 0x74], 0x2000
push 0x70
lea eax, [ebp - 0x84]
push eax
push 9
mov ecx, dword [0x607b80]
push ecx
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [0x607b80]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov byte [ebp - 0x8e], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x60], 0
je 0x403376
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push str.starting_UI_Script
call fcn.004020c0
call fcn.00435df0
add esp, 4
mov dword [ebp - 0xa8], 0
jmp 0x4030d3
mov edx, dword [ebp - 0xa8]
add edx, 1
mov dword [ebp - 0xa8], edx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00405e60
cmp dword [ebp - 0xa8], eax
jge 0x403376
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0x118]
call fcn.00402770
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0xc8]
call fcn.00402220
mov byte [ebp - 4], 8
push 0x5aa858
mov ecx, dword [ebp - 0x8c]
add ecx, 8
call fcn.00402650
mov edx, dword [ebp - 0x8c]
imul eax, dword [edx + 0xc], 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [eax*4 + 0x5aac08]
push ecx
mov edx, dword [ebp - 0xa8]
add edx, 1
push edx
push 0x5aa85c
call fcn.00435d80
add esp, 0x14
mov dword [ebp - 0xbc], 0
jmp 0x40319a
mov eax, dword [ebp - 0xbc]
add eax, 1
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0xa
jae 0x40322f
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.004322a0
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4031cf
mov byte [ebp - 4], 8
jmp 0x40322f
jmp 0x4031f9
mov dword [ebp - 4], 8
jmp 0x40320b
jmp 0x403214
jmp 0x40321f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40318b
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00431930
add esp, 4
push 0x5aa880
mov ecx, dword [ebp - 0x8c]
add ecx, 8
call fcn.00402650
jmp 0x4032e9
mov dword [ebp - 4], 8
jmp 0x4032fb
jmp 0x403304
push 0x5aa888
mov eax, dword [ebp - 0x8c]
add eax, 8
push eax
call fcn.004026d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40335d
mov byte [ebp - 0x8e], 1
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 8]
push eax
push str.failed:__s
call fcn.00435d80
add esp, 8
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x10], 0
jne 0x40335d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.004023e0
jmp 0x403376
call fcn.0040ab10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.004023e0
jmp 0x4030c4
movzx edx, byte [ebp - 0x85]
test edx, edx
je 0x40339b
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.USER32.dll_CloseDesktop]
movzx edx, byte [ebp - 0x8e]
test edx, edx
je 0x40343b
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push str.keepProcessAlive
call fcn.00401f50
mov ecx, dword [ebp + 8]
call fcn.004278a0
mov byte [ebp - 0x9c], al
movzx eax, byte [ebp - 0x9c]
test eax, eax
jne 0x4033f4
push 0
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.process_terminated
call fcn.00435d80
add esp, 4
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x154], esp
push str.ignoreFailure
call fcn.00401f50
mov ecx, dword [ebp + 8]
call fcn.004278a0
mov byte [ebp - 0x9d], al
movzx edx, byte [ebp - 0x9d]
test edx, edx
je 0x403431
push str.ignore_action_failure_and_continue_installation
call fcn.00435d80
add esp, 4
jmp 0x40343b
mov dword [0x607b98], 1
push 0
push 0x78
push ecx
mov ecx, esp
mov dword [ebp - 0x158], esp
push str.waitTimeout
call fcn.00401f50
mov ecx, dword [ebp + 8]
call fcn.00427ab0
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xd0], eax
imul ecx, dword [ebp - 0xd0], 0x3c
imul edx, ecx, 0x3e8
push edx
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x102
jne 0x4034af
mov ecx, dword [ebp - 0xd0]
push ecx
push str.timeout__d_min._was_reached_but_the_process_still_active.
call fcn.00435d80
add esp, 8
jmp 0x4034f3
mov edx, dword [ebp - 0xb4]
add edx, 0x10
push edx
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0xb4]
cmp dword [ecx + 0x10], 0
je 0x4034e9
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx + 0x10]
push eax
push str.process_was_completed_with_exit_code:__d
call fcn.00435d80
add esp, 8
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.004023e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.004023e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.004023e0
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.0056a45e
mov esp, ebp
pop ebp
ret 4