Function at 0x42f740
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x370], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x390], ecx
mov dword [ebp - 0x374], 0
call fcn.0040c758
mov edx, dword [ebp - 0x370]
mov esi, eax
mov eax, dword [edx + 0x2c]
add esp, 4
cmp eax, esi
je 0x42f7a8
push eax
call fcn.00402cae
mov eax, dword [ebp - 0x370]
add esp, 4
mov dword [eax + 0x2c], esi
push edi
call fcn.0040c758
add esp, 4
mov dword [ebp - 0x374], eax
test ebx, ebx
je 0x42f7cc
push ebx
call fcn.0040c758
add esp, 4
mov dword [ebp - 0x36c], eax
jmp 0x42f7d6
mov dword [ebp - 0x36c], 0
mov eax, dword [0x52513c]
mov dword [ebp - 0x378], 0x40c
test eax, eax
je 0x42f7f8
cmp byte [eax + 0x44], 0
je 0x42f7f8
mov byte [ebp - 0x365], 1
jmp 0x42f813
mov byte [ebp - 0x365], 0
call fcn.00407480
cmp eax, 5
jge 0x42f813
mov dword [ebp - 0x378], 0x100040c
push 0x40
lea ecx, [ebp - 0x3d0]
push 0
mov esi, 0x44
push ecx
mov dword [ebp - 0x3d4], esi
call fcn.004b8020
add esp, 0xc
test ebx, ebx
je 0x42f841
mov edx, dword [ebp - 0x36c]
mov dword [ebp - 0x3cc], edx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x418], esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004b8020
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x3ec], 1
je 0x42f9e0
or dword [ebp - 0x3a8], 1
mov eax, str.type
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x3c], 0
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42f8a0
sub eax, ecx
push eax
push str.type
lea ecx, [ebp - 0x3c]
call fcn.004076f0
xor edx, edx
mov eax, edi
mov word [ebp - 0x20], dx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42f8d0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00405fe0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.00453940
add esp, 8
mov ecx, eax
call fcn.004077f0
mov ecx, str.compute_only_renderer
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42f913
sub ecx, esi
mov esi, dword [eax + 0x10]
mov ebx, ecx
mov ecx, esi
cmp ecx, esi
jae 0x42f927
mov ecx, esi
cmp esi, ebx
jb 0x42f92f
mov ecx, ebx
cmp dword [eax + 0x14], 0x10
jb 0x42f937
mov eax, dword [eax]
push ecx
push str.compute_only_renderer
push eax
call fcn.00407f60
xor edi, edi
add esp, 0xc
cmp eax, edi
jne 0x42f95e
cmp esi, ebx
jae 0x42f955
or eax, 0xffffffff
jmp 0x42f95c
xor eax, eax
cmp esi, ebx
setne al
cmp eax, edi
mov esi, 0x10
sete bl
cmp dword [ebp - 0x44], esi
jb 0x42f977
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406ca9
add esp, 4
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x58], 0
call fcn.00435650
cmp dword [ebp - 0xc], 8
jb 0x42f9a2
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ca9
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], ax
cmp dword [ebp - 0x28], esi
jb 0x42f9c3
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
add esp, 4
test bl, bl
je 0x42f9d2
xor edx, edx
mov word [ebp - 0x3a4], dx
jmp 0x42f9e0
mov ax, word [ebp - 0x3e8]
mov word [ebp - 0x3a4], ax
xor ebx, ebx
cmp byte [0x5240a4], bl
je 0x42f9ff
mov eax, dword [0x5240a8]
test eax, eax
je 0x42f9ff
or dword [ebp - 0x378], 0x400
mov ebx, eax
lea ecx, [ebp - 0x388]
call fcn.0041c460
mov esi, dword [ebp - 0x370]
mov edi, dword [esi + 0x10]
add esi, 0x10
lea ecx, [ebp - 0x388]
call fcn.0042d380
mov edx, dword [ebp - 0x378]
push eax
mov eax, dword [ebp - 0x38c]
lea ecx, [ebp - 0x3d4]
push ecx
push 0
push ebx
mov ebx, dword [ebp - 0x374]
push edx
push 0
push 0
push 0
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x42faa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x388]
call fcn.00430480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x36c]
test eax, eax
je 0x42fa80
push eax
call fcn.00402cae
add esp, 4
test ebx, ebx
je 0x42fa8d
push ebx
call fcn.00402cae
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
test eax, eax
je 0x42fadb
cmp eax, 0xffffffff
je 0x42fadb
call fcn.00413750
mov ecx, dword [ebp + 4]
mov edx, dword [esi]
push eax
push ecx
push esi
push edx
call fcn.004152b0
mov eax, dword [esi]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42fad5
call fcn.00436ed0
mov dword [esi], 0
mov eax, dword [ebp - 0x388]
push eax
call fcn.0042fc50
mov esi, dword [ebp - 0x370]
add esp, 4
cmp byte [ebp - 0x365], 0
jne 0x42fb2a
mov ecx, dword [ebp - 0x388]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x42fb2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x388]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x42fa5a
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x384]
push eax
lea edx, [ebp - 0x374]
push edx
mov dword [ebp - 0x374], ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x42fb67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x388]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x42fa5a
lea ecx, [esi + 0x14]
call fcn.00415190
mov edx, dword [ebp - 0x384]
lea ecx, [ebp - 0x364]
push ecx
push edx
mov dword [ebp - 0x364], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x42fbad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x388]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x42fa5a
mov edi, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x388]
push ecx
mov ecx, dword [ebp - 0x390]
call fcn.0042fcf0
test al, al
jne 0x42fbe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x388]
push 0
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x42fa5a
mov eax, dword [ebp - 0x38c]
push edi
push eax
call fcn.004303d0
add esp, 8
lea ecx, [ebp - 0x388]
push ecx
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.00430430
lea ecx, [ebp - 0x388]
call fcn.00430480
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x36c]
test eax, eax
je 0x42fc2c
push eax
call fcn.00402cae
add esp, 4
test ebx, ebx
je 0x42fc39
push ebx
call fcn.00402cae
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret 0x10