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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595953
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x194
mov eax, dword [0x6001c0]
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.0056eec0
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.00405480
mov byte [ebp - 4], 2
push 0x5a85f4
push 0x5a85f8
lea ecx, [ebp - 0xac]
call fcn.004091c0
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0x5a85fc
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.00405010
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.00405320
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov ecx, 0x604c40
call fcn.00415c40
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.0040a040
mov ecx, eax
call fcn.00407360
movzx eax, al
test eax, eax
jne 0x402d86
push 0x3e8
lea ecx, [ebp - 0xb0]
call fcn.00405a80
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.00408ec0
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.0040a040
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.00405320
add esp, 0x10
jmp 0x402d77
lea ecx, [ebp - 0xb0]
call fcn.0040a040
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.00405320
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.004023e0
lea ecx, [ebp - 0x98]
call fcn.00405a40
push eax
push str.start_:__s
call fcn.00435650
add esp, 8
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.uiScriptTest
call fcn.00401f50
mov ecx, 0x604bc8
call fcn.00427540
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.00405ab0
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 [0x604b94], 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 0x5a8690
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 0x5a8698
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 0x347
mov ecx, dword [ebp - 0xf8]
call fcn.00402790
push eax
mov eax, dword [ebp - 0x94]
push eax
call fcn.004335f0
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 0x5a86c8
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 0x350
mov ecx, dword [ebp - 0x104]
call fcn.00402790
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.004335f0
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.00405a40
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 0x5a8710
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 0x365
mov ecx, dword [ebp - 0x110]
call fcn.00402790
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.004335f0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.004023e0
mov edx, dword [0x604b80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5a8740
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [0x604b80], eax
mov dword [ebp - 0x84], 0
push 0x6c
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.0056eec0
add esp, 0xc
mov dword [ebp - 0x74], 0x2000
push 0x70
lea ecx, [ebp - 0x84]
push ecx
push 9
mov edx, dword [0x604b80]
push edx
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, dword [0x604b80]
push ecx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov byte [ebp - 0x8e], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x60], 0
je 0x40335f
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push str.starting_UI_Script
call fcn.004020c0
call fcn.004356c0
add esp, 4
mov dword [ebp - 0xa8], 0
jmp 0x4030bc
mov eax, dword [ebp - 0xa8]
add eax, 1
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00405ab0
cmp dword [ebp - 0xa8], eax
jge 0x40335f
mov ecx, dword [ebp + 8]
add ecx, 0x64
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0xa8]
push edx
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 0x5a8770
mov ecx, dword [ebp - 0x8c]
add ecx, 8
call fcn.00402650
mov eax, dword [ebp - 0x8c]
imul ecx, dword [eax + 0xc], 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edx, dword [ecx*4 + 0x5a8b20]
push edx
mov eax, dword [ebp - 0xa8]
add eax, 1
push eax
push 0x5a8774
call fcn.00435650
add esp, 0x14
mov dword [ebp - 0xbc], 0
jmp 0x403183
mov ecx, dword [ebp - 0xbc]
add ecx, 1
mov dword [ebp - 0xbc], ecx
cmp dword [ebp - 0xbc], 0xa
jae 0x403218
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00431b40
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4031b8
mov byte [ebp - 4], 8
jmp 0x403218
jmp 0x4031e2
mov dword [ebp - 4], 8
jmp 0x4031f4
jmp 0x4031fd
jmp 0x403208
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403174
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x8c]
push eax
call fcn.004311d0
add esp, 4
push 0x5a8798
mov ecx, dword [ebp - 0x8c]
add ecx, 8
call fcn.00402650
jmp 0x4032d2
mov dword [ebp - 4], 8
jmp 0x4032e4
jmp 0x4032ed
push 0x5a87a0
mov ecx, dword [ebp - 0x8c]
add ecx, 8
push ecx
call fcn.004026d0
add esp, 8
movzx edx, al
test edx, edx
je 0x403346
mov byte [ebp - 0x8e], 1
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 8]
push ecx
push str.failed:__s
call fcn.00435650
add esp, 8
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0x10], 0
jne 0x403346
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.004023e0
jmp 0x40335f
call fcn.0040a620
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.004023e0
jmp 0x4030ad
movzx eax, byte [ebp - 0x85]
test eax, eax
je 0x403384
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.USER32.dll_CloseDesktop]
movzx eax, byte [ebp - 0x8e]
test eax, eax
je 0x403424
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.00427540
mov byte [ebp - 0x9c], al
movzx ecx, byte [ebp - 0x9c]
test ecx, ecx
jne 0x4033dd
push 0
mov edx, dword [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.process_terminated
call fcn.00435650
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.00427540
mov byte [ebp - 0x9d], al
movzx eax, byte [ebp - 0x9d]
test eax, eax
je 0x40341a
push str.ignore_action_failure_and_continue_installation
call fcn.00435650
add esp, 4
jmp 0x403424
mov dword [0x604b98], 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.00427750
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0xd0], ecx
imul edx, dword [ebp - 0xd0], 0x3c
imul eax, edx, 0x3e8
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x102
jne 0x403498
mov edx, dword [ebp - 0xd0]
push edx
push str.timeout__d_min._was_reached_but_the_process_still_active.
call fcn.00435650
add esp, 8
jmp 0x4034dc
mov eax, dword [ebp - 0xb4]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0xb4]
cmp dword [edx + 0x10], 0
je 0x4034d2
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 0x10]
push ecx
push str.process_was_completed_with_exit_code:__d
call fcn.00435650
add esp, 8
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xdc]
push eax
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.00569e84
mov esp, ebp
pop ebp
ret 4