Function at 0x1400d2db0
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 [0x14035e6e8]
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 0x1400d2e0b
mov ecx, 0x40
mov edx, 0x4000
cmp eax, 0xffffffff
jmp 0x1400d2e1a
jle 0x1400d2e1d
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 0x1400d2e56
cmp byte [r13 + 0x11], cl
je 0x1400d2e5b
lea r8d, [r14 + 7]
mov ecx, 1
mov rdx, qword [r13 + 0x28]
mov rax, qword [r13 + 0x30]
test rdx, rdx
jne 0x1400d2e6d
test rax, rax
je 0x1400d2e71
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.140020fc0
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 0x1400d3030
bts esi, 0xa
mov dword [rsp + 0x60], esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400d3030
mov rsi, rax
mov qword [rsp + 0x5c0], r12
cmp word [rax], bx
je 0x1400d2f88
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 0x1400d2f68
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.14001c660
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 0x1400d2f30
mov rsi, qword [r13 + 0x18]
cmp word [rsi], 0
je 0x1400d2fea
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 0x1400d2fca
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.14001c660
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 0x1400d2f92
mov r12, qword [rsp + 0x5c0]
lea esi, [rbx + 1]
mov dword [rsp + 0x58], esi
cmp esi, r15d
jle 0x1400d3013
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001c660
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 0x1400d3033
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 0x1400d313c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov word [rbp + 0xa0], r14w
mov ebx, eax
test eax, eax
jne 0x1400d30af
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 0x1400d30f8
mov word [rax], r14w
mov edx, 0xa
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x1400d3112
mov word [rax], r14w
cmp ebx, 8
je 0x1400d311c
cmp ebx, 0xe
jne 0x1400d3125
lea rcx, [rbp + 0x20]
call fcn.1400d77f0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400d3132
mov dword [rax], r14d
mov rbx, qword [rsp + 0x70]
mov qword [rbx], r14
jmp 0x1400d3161
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d314b
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 0x1400d316e
mov rcx, rdi
call fcn.14004dcf0
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400d317c
call fcn.14004dcf0
mov rax, rbx
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.140250070
add rsp, 0x5c8
pop r14
pop rdi
pop rbx
pop rbp
ret