Function at 0x140049330
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 [0x14023c048]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov ebx, r9d
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov rsi, 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 + 0x68], r12
mov qword [rsp + 0x70], r12
mov dword [rbp - 0x70], SafeArrayCopy
mov qword [rbp - 0x68], r12
mov dword [rbp - 0x60], 1
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400497ad
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400497ad
cmp qword [rsp + 0x70], r12
je 0x1400497ad
xor r8d, r8d
lea edx, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 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 + 0x28], rsi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8, r15
mov rdx, r14
xor ecx, ecx
call fcn.140048c40
test al, al
je 0x140049780
mov edx, ebx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r12
cmp ebx, 0x102
jne 0x1400494c9
cmp byte [rbp + 0x2a0], r12b
je 0x1400494c9
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400494c9
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14004973e
mov rbx, qword [rsp + 0x68]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x30]
call fcn.140167e60
lea rcx, [0x140000000]
lea rax, [rcx + 0x1e5db8]
mov qword [rbp + 0x30], rax
lea rax, [rcx + 0x1e5db0]
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
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.14002f320
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x3c], edx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x2c], edx
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.14002f4b0
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
nop dword [rax + rax]
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 0x140049617
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140049617
cmp eax, 0xff
ja 0x140049622
cmp rax, 0x100
jae 0x1400497d7
mov byte [rbp + rax + 0x130], 0
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x40]
call fcn.1400499a0
jmp 0x1400495c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140049634
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x40]
call fcn.1400499a0
jmp 0x1400495c0
movdqa xmm0, xmmword [0x1401e87c0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r12w
mov dword [rsp + 0x30], 0x45
mov ecx, dword [rbp + 0xb8]
test cl, 2
jne 0x140049685
mov rax, qword [rbp + 0x88]
mov rdx, qword [rax]
test rdx, rdx
je 0x140049685
mov rax, qword [rbp + 0x68]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0xb0]
cmovb rdx, qword [rbp + 0xb0]
sub rdx, r9
jmp 0x1400496b3
test cl, 4
jne 0x1400496e6
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400496e6
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 0x1400496dd
mov qword [rsp + 0x48], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.1401679c0
mov word [rsp + rbx + 0x38], r12w
jmp 0x1400496e6
xor r8d, r8d
call fcn.14001f490
nop
lea rcx, [rbp + 0x30]
call fcn.14002d230
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001c770
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14004973e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049739
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400497d1
call fcn.140148ec0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140049756
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14004976e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140049785
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
test rsi, rsi
je 0x14004978d
mov qword [rsi], r12
test rcx, rcx
je 0x14004979d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r12
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400497ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140149290
add rsp, 0x340
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14016ae5c
nop
call fcn.140149904
int3