Function at 0x140009980
Capabilities:
Create process on windows
Resume thread
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
movsxd rax, ecx
lea rdx, str.TRUE
lea rcx, str.VRAYMAYASPAWNER
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, qword [0x140029e08]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ebx, dword [rdi + 0x28]
test ebx, ebx
jns 0x1400099cc
call fcn.14000b720
mov ebx, eax
mov r9d, ebx
lea r8, [0x1400207e4]
lea rdx, str.__s___server__portNumber_d
lea rcx, [rbp + 0x1d0]
call fcn.14000d140
lea r8, [rbp + 0x1d0]
lea rdx, str.Executing___s_
lea rcx, [0x140029b38]
call fcn.14000fab0
xor r14d, r14d
mov dword [rsp + 0x60], 0x18
mov r9d, ebx
mov qword [rsp + 0x68], r14
lea r8, str.vray__d_log.txt
mov dword [rsp + 0x70], 1
mov edx, 0x104
lea rcx, [rbp + 0x2e0]
call fcn.14000dc50
mov edx, 0x104
lea rcx, [rbp + 0xc0]
call fcn.14000d2d0
mov r8d, 0x104
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0xc0]
call fcn.14000d8e0
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x60]
mov dword [rsp + 0x28], 0x80
lea r8d, [r14 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
lea r8d, [r14 + 0x68]
lea rcx, [rbp - 0x80]
mov qword [0x1400238f8], rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x140023a54]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
mov ebx, 0x4000230
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x44], 0x100
test eax, eax
je 0x140009b67
cmp byte [0x140029b2c], r14b
jne 0x140009b62
mov rdx, qword [rdi + 0x20]
movabs rcx, 0x5555555555555555
mov rax, rdx
shr rax, 1
and rax, rcx
sub rdx, rax
movabs rax, 0x3333333333333333
mov rcx, rdx
and rdx, rax
shr rcx, 2
and rcx, rax
add rcx, rdx
lea rdx, [0x140015458]
mov r8, rcx
shr r8, 4
add r8, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and r8, rcx
movabs rcx, 0x101010101010101
imul r8, rcx
lea rcx, [rbp + 0x3f0]
shr r8, 0x38
call fcn.14000d140
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov eax, dword [0x140023a54]
mov ebx, 0x4000234
cmp eax, 2
jne 0x140009b79
lea rcx, str.VRAY_USE_CPU_GROUPS0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov qword [rsp + 0x48], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x1d0]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test eax, eax
je 0x140009c81
mov eax, dword [0x140023a54]
test eax, eax
je 0x140009d55
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi]
cmp eax, 2
jne 0x140009c3c
mov r10, qword [0x140029b30]
test r10, r10
je 0x140009c3c
movsxd rax, dword [rdi + 0x18]
test eax, eax
js 0x140009c3c
mov r9d, 0x10
mov qword [rsp + 0x50], rdx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x910], rsi
mov qword [rsp + 0x58], rax
lea edx, [r9 + 5]
call r10
mov esi, eax
test eax, eax
je 0x140009c2a
mov r8d, eax
lea rdx, [0x1400178d8]
lea rcx, [0x140029b38]
call fcn.14000fbe0
test esi, esi
mov ebx, r14d
mov rsi, qword [rsp + 0x910]
sete bl
jmp 0x140009c64
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov ebx, eax
test eax, eax
jne 0x140009c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetProcessAffinityMask_error_code:__u
lea rcx, [0x140029b38]
call fcn.14000fbe0
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test ebx, ebx
je 0x140009c7e
cmp eax, 1
jne 0x140009c7e
mov ebx, eax
jmp 0x140009d55
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp + 0x818]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, eax
mov ecx, 0x1300
mov qword [rbp + 0x818], r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rcx, qword [rbp + 0x818]
test rcx, rcx
je 0x140009ce9
mov rdx, rcx
mov r8d, 0xc8
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy]
mov rcx, qword [rbp + 0x818]
mov byte [rbp + 0xb7], r14b
jmp 0x140009ced
mov byte [rbp - 0x10], r14b
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x1400207e4]
lea rax, [rbp - 0x10]
lea rdx, str.Could_not_start_V_Ray_Maya_server:___s_._Error_code:__i._Error_string:__s
mov qword [rsp + 0x20], rax
lea rcx, [0x140029b38]
call fcn.14000fbe0
lea rax, [0x140015488]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [0x140023950]
lea r8, [0x1400207e4]
mov qword [rsp + 0x20], rax
lea rdx, str.Error_starting_V_Ray_Maya_server:___s_._System_error_message:__s_r_rAdvice:_rPlease_check_for_errors_the_INI_file:___s__rand_the_LOG_file:___s_
lea rcx, [rbp + 0x3f0]
call fcn.14000d140
neg ebx
mov rbx, qword [rsp + 0x920]
sbb eax, eax
neg eax
dec eax
add rsp, 0x8f0
pop r14
pop rdi
pop rbp
ret