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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r14
lea rbp, [r11 - 0x4e8]
sub rsp, 0x5c8
mov rax, qword [0x1401674b8]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov eax, dword [rdx + 0x14]
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x30], r13
mov r13, rdx
mov qword [rsp + 0x70], rcx
mov ecx, 0x20
mov qword [r11 - 0x38], r15
mov qword [rsp + 0x68], r8
test eax, eax
jns 0x1400c2cbb
mov ecx, 0x40
mov edx, 0x4000
cmp eax, 0xffffffff
jmp 0x1400c2cca
jle 0x1400c2ccd
mov ecx, 0x80
mov edx, 0x8000
cmp eax, 1
cmove ecx, edx
mov eax, ecx
or eax, 8
cmp byte [r13 + 0x10], 0
cmove eax, ecx
mov esi, eax
bts esi, 0x18
cmp byte [r13 + 0x13], 0
cmove esi, eax
xor r14d, r14d
mov ecx, r14d
mov dword [rsp + 0x60], esi
movzx r8d, r14w
cmp byte [r13 + 0x12], r14b
jne 0x1400c2d06
cmp byte [r13 + 0x11], cl
je 0x1400c2d0b
lea r8d, [r14 + 7]
mov ecx, 1
mov rdx, qword [r13 + 0x28]
mov rax, qword [r13 + 0x30]
test rdx, rdx
jne 0x1400c2d1d
test rax, rax
je 0x1400c2d21
bts ecx, 8
mov r9, qword [r13 + 8]
xorps xmm0, xmm0
mov dword [rbp - 0x34], ecx
shr ecx, 8
mov dword [rsp + 0x64], ecx
lea rcx, [rbp - 0x80]
mov word [rbp - 0x30], r8w
mov r8, qword [r13]
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rdx
lea rdx, str.__s___s
mov dword [rbp - 0x70], 0x68
mov qword [rbp - 0x68], r14
movdqa xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x80000000
mov dword [rbp - 0x4c], 0x80000000
mov dword [rbp - 0x48], 0x80000000
mov dword [rbp - 0x44], 0x80000000
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], r14d
mov word [rbp - 0x2e], r14w
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], rax
call fcn.14001edc0
mov ebx, r14d
mov qword [rsp + 0x50], r14
mov rdi, r14
mov r15d, r14d
mov dword [rsp + 0x5c], r14d
cmp qword [r13 + 0x18], rbx
je 0x1400c2ee0
bts esi, 0xa
mov dword [rsp + 0x60], esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400c2ee0
mov rsi, rax
mov qword [rsp + 0x5c0], r12
cmp word [rax], bx
je 0x1400c2e38
nop dword [rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r14, ebx
lea r12d, [rax + 1]
lea ebx, [r14 + r12]
mov dword [rsp + 0x58], ebx
cmp ebx, r15d
jle 0x1400c2e18
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.140019200
mov r15d, dword [rsp + 0x5c]
mov ebx, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
movsxd r8, r12d
lea rcx, [rdi + r14*2]
add r8, r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, r12d
cmp word [rsi + rax*2], 0
lea rsi, [rsi + rax*2]
jne 0x1400c2de0
mov rsi, qword [r13 + 0x18]
cmp word [rsi], 0
je 0x1400c2e9a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r14, ebx
lea r12d, [rax + 1]
lea ebx, [r14 + r12]
mov dword [rsp + 0x58], ebx
cmp ebx, r15d
jle 0x1400c2e7a
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.140019200
mov r15d, dword [rsp + 0x5c]
mov ebx, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
movsxd r8, r12d
lea rcx, [rdi + r14*2]
add r8, r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, r12d
cmp word [rsi + rax*2], 0
lea rsi, [rsi + rax*2]
jne 0x1400c2e42
mov r12, qword [rsp + 0x5c0]
lea esi, [rbx + 1]
mov dword [rsp + 0x58], esi
cmp esi, r15d
jle 0x1400c2ec3
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140019200
mov esi, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
xor r14d, r14d
movsxd rax, ebx
mov word [rdi + rax*2], r14w
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rcx, rdi
test esi, esi
jne 0x1400c2ee3
mov rcx, r14
mov rdx, qword [rbp - 0x80]
lea rax, [rbp]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rax, qword [r13 + 0x20]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r15, qword [rsp + 0x5b0]
mov r13, qword [rsp + 0x5b8]
mov rsi, qword [rsp + 0x608]
test eax, eax
jne 0x1400c2fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov word [rbp + 0xa0], r14w
mov ebx, eax
test eax, eax
jne 0x1400c2f5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp + 0xa0]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x200
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, eax
mov ecx, 0x1000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, 0xd
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x1400c2fa8
mov word [rax], r14w
mov edx, 0xa
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x1400c2fc2
mov word [rax], r14w
cmp ebx, 8
je 0x1400c2fcc
cmp ebx, 0xe
jne 0x1400c2fd5
lea rcx, [rbp + 0x20]
call fcn.1400c72e0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400c2fe2
mov dword [rax], r14d
mov rbx, qword [rsp + 0x70]
mov qword [rbx], r14
jmp 0x1400c3011
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c2ffb
mov eax, dword [rbp + 0x10]
mov dword [rcx], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbp]
mov qword [rbx], rax
test rdi, rdi
je 0x1400c301e
mov rcx, rdi
call fcn.1400443e0
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400c302c
call fcn.1400443e0
mov rax, rbx
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.14010f980
add rsp, 0x5c8
pop r14
pop rdi
pop rbx
pop rbp
ret