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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov ebx, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov r15, qword [rbp + 0x2a8]
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r12
mov dword [rbp - 0x68], SafeArrayCopy
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x58], 1
xor r9d, r9d
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14003e431
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14003e431
cmp qword [rsp + 0x70], r12
je 0x14003e431
xor r8d, r8d
lea edx, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov dword [rbp - 4], eax
mov dword [rbp - 0x50], 0x68
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rax
mov qword [rbp], 0xffffffffffffffff
or dword [rbp - 0x14], 0x100
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x80]
mov rdx, r14
mov rcx, rsi
call fcn.14003dad0
test al, al
je 0x14003e429
mov edx, ebx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x102
jne 0x14003e1e9
cmp byte [rbp + 0x2a0], r12b
je 0x14003e1e9
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14003e1e9
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14003e3fb
mov rbx, qword [rsp + 0x78]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x30]
call fcn.140140260
lea rax, [0x1401b3160]
mov qword [rbp + 0x30], rax
lea rax, [0x1401b3158]
mov qword [rbp + 0x40], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0xc8], rax
mov dword [rsp + 0x30], 5
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.140024fc0
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x48]
call fcn.140025150
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x48], rax
mov qword [rbp + 0xb0], r12
mov dword [rbp + 0xb8], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x20]
mov r8d, 0xff
lea rdx, [rbp + 0x130]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003e2d8
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x14003e2d8
cmp eax, 0xff
ja 0x14003e2e3
cmp rax, 0x100
jae 0x14003e45b
mov byte [rbp + rax + 0x130], 0
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x40]
call fcn.14003e630
jmp 0x14003e281
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14003e2f5
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x40]
call fcn.14003e630
jmp 0x14003e281
movdqa xmm0, xmmword [0x1401b5bd0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r12w
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayUnlock
mov ecx, dword [rbp + 0xb8]
test cl, 2
jne 0x14003e346
mov rax, qword [rbp + 0x88]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003e346
mov rax, qword [rbp + 0x68]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0xb0]
cmovb rdx, qword [rbp + 0xb0]
sub rdx, r9
jmp 0x14003e374
test cl, 4
jne 0x14003e3a7
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x14003e3a7
mov rax, qword [rbp + 0x60]
mov r9, qword [rax]
mov rax, qword [rbp + 0x98]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
sar rdx, 1
lea rcx, [rsp + 0x38]
cmp rdx, 7
ja 0x14003e39e
mov qword [rsp + 0x48], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14013fdf0
mov word [rsp + rbx + 0x38], r12w
jmp 0x14003e3a7
xor r8d, r8d
call fcn.140014f60
nop
lea rcx, [rbp + 0x30]
call fcn.140022d90
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001bb00
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14003e3fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e3f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e455
call fcn.1401218ec
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14003e40b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14003e41a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14003e429
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x14003e431
mov qword [r15], r12
mov rax, rdi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140121cc0
add rsp, 0x340
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401431fc
nop
call fcn.14012231c
int3