Function at 0x1400d2a40
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 [0x14035d6e8]
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 0x1400d2a9b
mov ecx, 0x40
mov edx, 0x4000
cmp eax, 0xffffffff
jmp 0x1400d2aaa
jle 0x1400d2aad
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 0x1400d2ae6
cmp byte [r13 + 0x11], cl
je 0x1400d2aeb
lea r8d, [r14 + 7]
mov ecx, 1
mov rdx, qword [r13 + 0x28]
mov rax, qword [r13 + 0x30]
test rdx, rdx
jne 0x1400d2afd
test rax, rax
je 0x1400d2b01
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.140020ee0
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 0x1400d2cc0
bts esi, 0xa
mov dword [rsp + 0x60], esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400d2cc0
mov rsi, rax
mov qword [rsp + 0x5c0], r12
cmp word [rax], bx
je 0x1400d2c18
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 0x1400d2bf8
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.14001c580
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 0x1400d2bc0
mov rsi, qword [r13 + 0x18]
cmp word [rsi], 0
je 0x1400d2c7a
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 0x1400d2c5a
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.14001c580
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 0x1400d2c22
mov r12, qword [rsp + 0x5c0]
lea esi, [rbx + 1]
mov dword [rsp + 0x58], esi
cmp esi, r15d
jle 0x1400d2ca3
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001c580
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 0x1400d2cc3
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 0x1400d2dcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov word [rbp + 0xa0], r14w
mov ebx, eax
test eax, eax
jne 0x1400d2d3f
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 0x1400d2d88
mov word [rax], r14w
mov edx, 0xa
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x1400d2da2
mov word [rax], r14w
cmp ebx, 8
je 0x1400d2dac
cmp ebx, 0xe
jne 0x1400d2db5
lea rcx, [rbp + 0x20]
call fcn.1400d7030
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400d2dc2
mov dword [rax], r14d
mov rbx, qword [rsp + 0x70]
mov qword [rbx], r14
jmp 0x1400d2df1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d2ddb
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 0x1400d2dfe
mov rcx, rdi
call fcn.14004db90
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400d2e0c
call fcn.14004db90
mov rax, rbx
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.14024f8b0
add rsp, 0x5c8
pop r14
pop rdi
pop rbx
pop rbp
ret