Function at 0x1400047b0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
movsxd r12, r8d
mov r14, rdx
mov rdi, rcx
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
xor r15d, r15d
xor r9d, r9d
mov dword [rbp - 0x80], 0x18
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x78], r15
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140004810
xor eax, eax
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x140], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x60]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x50]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x140004870
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140004a42
mov qword [rsp + 0x148], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rcx, [rbp - 0x60]
lea r8d, [rax + 0x68]
xor edx, edx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call sub.MSVCR120.dll_memset
mov rax, qword [rsp + 0x58]
or rsi, 0xffffffffffffffff
mov qword [rbp], rax
mov qword [rbp - 8], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], 0x100
mov dword [rsp + 0x20], 1
mov qword [rbp - 0x10], rsi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140004a21
mov r8, r12
xor edx, edx
mov rcx, r14
call sub.MSVCR120.dll_memset
lea rbx, [r12 - 1]
mov rdi, r14
add rbx, r14
cmp r14, rbx
jae 0x140004a0b
nop word [rax + rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0x2710
mov dword [rbp + 0x58], r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000499a
mov rcx, qword [rsp + 0x50]
mov r8d, r14d
lea r9, [rbp + 0x58]
sub r8d, edi
mov rdx, rdi
mov qword [rsp + 0x20], r15
add r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000499a
mov rax, rsi
nop
inc rax
cmp byte [rdi + rax], r15b
jne 0x140004970
add rdi, rax
cmp dword [rbp + 0x58], r15d
je 0x14000499a
mov edx, 0xa
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
jne 0x14000499a
cmp rdi, rbx
jb 0x140004930
cmp rdi, r14
je 0x140004a0b
mov edx, 0xa
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x1400049b6
mov byte [rax + 1], r15b
inc rsi
cmp byte [r14 + rsi], r15b
jne 0x1400049b6
cmp esi, 2
jl 0x1400049e1
movsxd rax, esi
cmp byte [rax + r14 - 2], 0xd
jne 0x1400049e1
cmp byte [rax + r14 - 1], 0xa
jne 0x1400049e1
mov word [rax + r14 - 2], 0xa
dec esi
test esi, esi
je 0x1400049f0
movsxd rax, esi
cmp byte [rax + r14 - 1], 0xa
je 0x140004a08
lea rcx, [r14 - 1]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x1400049f4
movzx eax, word [0x14000bab8]
mov word [rcx], ax
mov r15, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x148]
mov rax, r15
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret