Function at 0x4a0029
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push 0x118
mov eax, 0x524a26
call fcn.004d8af2
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x100
push esi
push esi
push str.InstallerDesktop
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xc4], ebx
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
mov dword [ebp - 0xb4], edi
mov dword [ebp - 4], esi
test edi, edi
jne 0x4a00c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x4c67
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0xc0]
call fcn.00406620
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0xb8]
add ecx, 0xfffffff0
call fcn.00407189
jmp 0x4a05b1
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
lea ecx, [ebp - 0xa0]
call fcn.0040687a
mov eax, dword [0x57d3ec]
add eax, 0x54
mov byte [ebp - 0x95], 1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 4
call fcn.0044f24f
mov ecx, dword [eax + 0x60]
sub ecx, 0x10
call fcn.004070e7
lea esi, [eax + 0x10]
mov dword [ebp - 0xd8], esi
lea ecx, [ebp - 0x95]
mov byte [ebp - 4], 6
call fcn.0044f694
push ecx
add esi, 0xfffffff0
mov ebx, esp
mov dword [ebp - 0xa4], ebx
mov ecx, esi
mov dword [ebp - 0xa4], esi
call fcn.004070e7
add eax, 0x10
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0xc0]
mov dword [ebx], eax
call fcn.00463633
pop ecx
mov byte [ebp - 4], 7
cmp dword [ebp - 0xc0], 0
jge 0x4a0236
cmp dword [ebp - 0xbc], 0
mov eax, 0x4c71
cmovne eax, dword [ebp - 0xbc]
push eax
push dword [ebp - 0xc0]
push ecx
mov ecx, dword [ebp - 0xb8]
mov esi, esp
mov dword [ebp - 0xb0], esi
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0xd0]
mov dword [esi], eax
call fcn.00406620
mov ebx, dword [ebp - 0xa8]
lea eax, [ebp - 0xd0]
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0040121b
mov ecx, dword [ebp - 0xc8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0xb8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0xa4]
call fcn.00407189
mov ecx, dword [ebp - 0xa0]
lea ecx, [ecx - 0x10]
call fcn.00407189
cmp dword [ebp - 0x90], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4a0218
push dword [ebp - 0x90]
call esi
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x94], 0
je 0x4a0230
push dword [ebp - 0x94]
call esi
and dword [ebp - 0x94], 0
push edi
jmp 0x4a05ab
mov ecx, dword [ebp - 0xb8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00407189
mov esi, str.__switch
push esi
call fcn.004ddaa2
pop ecx
push eax
push esi
lea ecx, [ebp - 0xa0]
call fcn.004d5d16
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.004d9f30
add esp, 0xc
mov dword [ebp - 0x124], esi
lea ecx, [ebp - 0xa4]
push str.winsta0_
call fcn.00406fea
push str.InstallerDesktop
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x9c]
call fcn.00409442
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 4], 1
jle 0x4a02dd
push dword [eax - 0xc]
lea ecx, [ebp - 0x9c]
call fcn.00406d8c
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0x11c], eax
cmp dword [edi - 4], 1
jle 0x4a0303
push dword [edi - 0xc]
lea ecx, [ebp - 0xa0]
call fcn.00406d8c
mov edi, dword [ebp - 0xa0]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push ebx
push 0x1000004
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4a03d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x4c85
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0xd0]
call fcn.00406620
mov ebx, dword [ebp - 0xa8]
lea eax, [ebp - 0xd0]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.0040121b
mov ecx, dword [ebp - 0xc8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x90], 0
je 0x4a03bc
push dword [ebp - 0x90]
call esi
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x94], 0
je 0x4a05a5
push dword [ebp - 0x94]
call esi
jmp 0x4a059e
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0xac]
call fcn.004977e7
push 0x70
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.004d9f30
add esp, 0xc
mov dword [ebp - 0x74], ebx
push dword [ebp - 0xac]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, eax
mov dword [ebp - 0xc4], ebx
test esi, esi
je 0x4a0502
push 0x70
lea eax, [ebp - 0x84]
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x4a0502
push dword [ebp - 0x94]
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4a0502
mov ebx, dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [ebp - 0xc4]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4a0502
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xb4]
call dword [sym.imp.USER32.dll_SwitchDesktop]
test eax, eax
jne 0x4a04eb
call fcn.00406710
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push 0x4ca3
push ebx
push ecx
mov ecx, esp
call fcn.0040687a
mov ebx, dword [ebp - 0xa8]
mov ecx, ebx
call fcn.00406620
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [ebp - 0xac]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
jmp 0x4a03a4
mov ebx, dword [ebp - 0xa8]
and dword [ebx], 0
lea ecx, [ebx + 8]
and dword [ebx + 4], 0
call fcn.0040687a
jmp 0x4a04b9
call fcn.00406710
push 0
push dword [ebp - 0x94]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x4c9b
push ebx
push ecx
mov ecx, esp
call fcn.0040687a
mov ebx, dword [ebp - 0xa8]
mov ecx, ebx
call fcn.00406620
test esi, esi
je 0x4a0549
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xac]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
cmp dword [ebp - 0x90], 0
je 0x4a0589
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x94], 0
je 0x4a05a5
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x94], 0
push dword [ebp - 0xb4]
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, ebx
call fcn.004d8aa1
ret 4