Function at 0x180004600
Capabilities:
Create pipe
Query environment variable
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rdi
mov rbx, rdx
mov r14, rcx
add rcx, 8
mov edx, 4
call fcn.180005650
xor r12d, r12d
test eax, eax
jne 0x18000490a
mov dword [rbp + 0x60], r12d
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.180002fe0
movsxd r8, dword [rbp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180002f20
nop
mov dword [rbp + 0x60], r12d
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.180002fe0
movsxd r8, dword [rbp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180002f20
nop
mov rcx, qword [rbx + 8]
mov edx, dword [rbx + 0x10]
cmp edx, 2
jge 0x18000469f
mov ecx, r12d
jmp 0x1800046ad
lea rax, [rcx + 2]
mov qword [rbx + 8], rax
lea eax, [rdx - 2]
mov dword [rbx + 0x10], eax
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
mov r13d, 0x2000
mov qword [rbp - 0x58], r13
lea r15d, [r13 + 1]
mov ecx, r15d
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
mov qword [rbp - 0x60], rax
mov r8d, r13d
lea rdx, [0x18000d222]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov byte [rdi + 0x2000], r12b
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
je 0x180004729
lea edx, [rax + 1]
cmp edx, r13d
jae 0x180004729
mov r8d, r13d
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov qword [rbp - 0x48], r13
mov rcx, r15
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
mov qword [rbp - 0x50], rax
mov r8, r13
lea rdx, [0x18000d222]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov byte [r15 + 0x2000], r12b
mov r9, r13
mov r8, rdi
mov rdx, r13
mov rcx, r15
call fcn.180006dd0
mov r9, r13
mov r13, qword [rsp + 0x70]
mov r8, r13
mov rdx, r9
mov rcx, r15
call fcn.180006dd0
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x3c]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x40], 0x68
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x80], 0x18
mov dword [rbp - 0x70], 1
lea rcx, [r14 + 0x18]
mov r9d, 0x100000
lea r8, [rbp - 0x80]
lea rdx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rbp - 4], 0x101
mov word [rbp], r12w
mov rax, qword [r14 + 0x10]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x10], r12
or r12, 0xffffffffffffffff
mov rax, r12
xor ecx, ecx
inc rax
cmp byte [r15 + rax], cl
jne 0x1800047fd
inc eax
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x14
lea rcx, [rsp + 0x48]
call fcn.180004554
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test ebx, ebx
je 0x180004888
mov rcx, qword [rsp + 0x30]
mov qword [r14 + 0x20], rcx
mov rax, qword [rsp + 0x38]
mov qword [r14 + 0x28], rax
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180004885
mov rdx, qword [rbp + 0x70]
mov rcx, r14
call fcn.180004928
mov r12d, eax
jmp 0x180004888
xor r12d, r12d
mov ebx, 0x2000
mov r8d, ebx
xor edx, edx
mov rcx, r15
call sub.msvcrt.dll_memset
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
nop
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop
test r13, r13
je 0x1800048de
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x1800048de
xor edx, edx
mov rcx, r13
call sub.msvcrt.dll_memset
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
nop
cmp qword [rsp + 0x20], 0
je 0x180004907
mov r8, qword [rsp + 0x28]
test r8, r8
je 0x180004907
xor edx, edx
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_free]
mov eax, r12d
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret