Function at 0x140044480
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 [0x14022b078]
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 + 0x70], r12
mov qword [rsp + 0x78], 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 + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14004489d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14004489d
cmp qword [rsp + 0x78], r12
je 0x14004489d
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 + 0x78]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rax
mov qword [rbp], 0xffffffffffffffff
or dword [rbp - 0x14], 0x100
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8, r14
mov rdx, rsi
xor ecx, ecx
call fcn.140043e40
test al, al
je 0x140044870
mov edx, ebx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r12
cmp ebx, 0x102
jne 0x140044615
cmp byte [rbp + 0x2a0], r12b
je 0x140044615
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140044615
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14004482f
mov rbx, qword [rsp + 0x70]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x30]
call fcn.14015e120
lea rax, [0x1401d8010]
mov qword [rbp + 0x30], rax
lea rax, [0x1401d8008]
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.140027500
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.140027690
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 dword [rbp + 0x20], 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 0x140044708
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140044708
cmp eax, 0xff
ja 0x140044713
cmp rax, 0x100
jae 0x1400448c7
mov byte [rbp + rax + 0x130], 0
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x40]
call fcn.140044a90
jmp 0x1400446b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140044725
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x40]
call fcn.140044a90
jmp 0x1400446b1
movdqa xmm0, xmmword [0x1401da830]
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 0x140044776
mov rax, qword [rbp + 0x88]
mov rdx, qword [rax]
test rdx, rdx
je 0x140044776
mov rax, qword [rbp + 0x68]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0xb0]
cmovb rdx, qword [rbp + 0xb0]
sub rdx, r9
jmp 0x1400447a4
test cl, 4
jne 0x1400447d7
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400447d7
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 0x1400447ce
mov qword [rsp + 0x48], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14015dc80
mov word [rsp + rbx + 0x38], r12w
jmp 0x1400447d7
xor r8d, r8d
call fcn.140016ea0
nop
lea rcx, [rbp + 0x30]
call fcn.140025550
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001e0a0
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14004482f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004482a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400448c1
call fcn.14013f180
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140044847
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
mov qword [rsp + 0x70], rcx
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14004485e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x140044875
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test r15, r15
je 0x14004487d
mov qword [r15], r12
test rcx, rcx
je 0x14004488d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r12
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14004489d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.14013f550
add rsp, 0x340
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14016111c
nop
call fcn.14013fbc4
int3