Function at 0x4a0060
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51a971
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push eax
call fcn.004ca510
add esp, 4
test eax, eax
jne 0x4a00a8
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
add esp, 0x290
ret
call fcn.005118aa
mov eax, dword [eax + 4]
push 0x5b764c
push str.EditorCompiler
lea ecx, [esp + 0x10]
push str.settings
push ecx
mov ecx, eax
call fcn.00512a6e
mov edx, dword [esp + 8]
xor ebx, ebx
mov dword [esp + 0x290], ebx
mov eax, dword [edx - 8]
cmp eax, 1
jle 0x4a04d9
push ebx
lea ecx, [esp + 0xc]
call fcn.004fc330
push eax
call fcn.004ca510
add esp, 4
test eax, eax
jne 0x4a0142
push ebx
lea ecx, [esp + 0xc]
call fcn.004fc330
push eax
push str.The_configured_virtual_compiler___s__ncannot_be_found.__Please_make_sure_nyou_have_specified_a_proper_path_and_nthe_file_exists.__Select_the_configure_button_nto_configure_your_virtual_compiler.
call fcn.004cd2a0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x290], 0xffffffff
call fcn.004fc001
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
add esp, 0x290
ret
push ebp
push esi
push edi
push ebx
lea ecx, [esp + 0x18]
call fcn.004fc330
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x190]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005118aa
mov eax, dword [eax + 4]
push 3
push str.EditorVCWarningLevel
push str.settings
mov ecx, eax
call fcn.00512a02
mov esi, eax
cmp esi, ebx
jl 0x4a019b
cmp esi, 4
jle 0x4a01a0
mov esi, 3
call fcn.005118aa
mov eax, dword [eax + 4]
push 2
push str.EditorVCDebugLevel
push str.settings
mov ecx, eax
call fcn.00512a02
mov ebp, eax
cmp ebp, ebx
jl 0x4a01c6
cmp ebp, 2
jle 0x4a01cb
mov ebp, 2
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x30], ecx
xor eax, eax
mov dword [esp + 0x34], ecx
mov ecx, 0x10
lea edi, [esp + 0x50]
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], edx
push ebx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], ebx
call edi
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x54de98]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 0x101
mov word [esp + 0x7c], bx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x190]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x2a0], 1
call fcn.004fc13e
push 0x54cfd4
lea ecx, [esp + 0x14]
call fcn.004fc2dc
push 0x54cfd0
lea ecx, [esp + 0x14]
call fcn.004fc2dc
mov edi, dword [esp + 0x2a4]
lea ecx, [esp + 0x10]
push edi
call fcn.004fc2dc
push 0x54cfd0
lea ecx, [esp + 0x14]
call fcn.004fc2dc
push str.__dir
lea ecx, [esp + 0x14]
call fcn.004fc2dc
push 0x8740fc
lea ecx, [esp + 0x14]
call fcn.004fc2dc
cmp byte [edi + 0x104], bl
jne 0x4a030c
push str.__level
lea ecx, [esp + 0x14]
call fcn.004fc2dc
cmp esi, 4
ja case.0x4a0311.3
jmp dword [esi*4 + 0x4a0518]
push str.__w_0
jmp 0x4a0339
push str.__w_1
jmp 0x4a0339
push str.__w_2
jmp 0x4a0339
push str.__w_4
jmp 0x4a0339
push str.__w_3
lea ecx, [esp + 0x14]
call fcn.004fc2dc
dec ebp
je 0x4a034f
dec ebp
jne 0x4a035d
push str.__d_c7
jmp 0x4a0354
push str.__d_coff
lea ecx, [esp + 0x14]
call fcn.004fc2dc
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
lea ecx, [esp + 0x34]
call fcn.004fc330
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [0x54de98]
mov dword [esp + 0x38], ecx
mov byte [esp + 0x29c], 2
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push ebx
push edx
lea eax, [esp + 0x98]
push 0x100
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x4a0467
mov esi, dword [esp + 0x28]
mov eax, dword [edi + 0x108]
cmp eax, ebx
mov byte [esp + esi + 0x90], bl
je 0x4a03a6
mov al, byte [esp + 0x90]
xor edx, edx
cmp al, bl
lea ecx, [esp + 0x90]
je 0x4a0402
cmp al, 0xa
jne 0x4a03fa
inc edx
mov al, byte [ecx + 1]
inc ecx
cmp al, bl
jne 0x4a03f5
push 0xfe
lea edx, [edx + esi + 1]
push str.D:descent3maineditorScriptCompilerAPI.cpp
push edx
call fcn.004cb090
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4a03a6
mov cl, byte [esp + 0x90]
lea edx, [esp + 0x90]
cmp cl, bl
je 0x4a0450
mov cl, byte [edx]
cmp cl, 0xa
jne 0x4a0440
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
jmp 0x4a0447
cmp cl, 0xd
je 0x4a0448
mov byte [eax], cl
inc eax
mov cl, byte [edx + 1]
inc edx
cmp cl, bl
jne 0x4a0431
push esi
mov byte [eax], bl
call dword [edi + 0x108]
push esi
call fcn.004cb110
add esp, 8
jmp 0x4a03a6
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
push ecx
call ebp
mov edx, dword [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x24]
push eax
call ebp
lea ecx, [esp + 0x38]
mov byte [esp + 0x29c], 1
call fcn.004fc001
lea ecx, [esp + 0x10]
mov byte [esp + 0x29c], bl
call fcn.004fc001
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], 0xffffffff
call fcn.004fc001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
add esp, 0x290
ret
push str.You_havent_configured_a_virtual_compiler_to_use._nPlease_select_the_configure_option_nto_configure_a_virtual_compiler_to_use.
call fcn.004cd2a0
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x290], 0xffffffff
call fcn.004fc001
mov ecx, dword [esp + 0x288]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret