Function at 0x14000ee00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140213010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor esi, esi
nop dword [rax]
mov ecx, dword [rbx + 0x10]
test ecx, ecx
je 0x14000ee53
sub ecx, 1
je 0x14000ee4a
cmp ecx, 1
jne 0x14000ee69
lea r8, str.ServeConnection:Waiting_for_next_connection__PipeState::kConnecting__n
jmp 0x14000ee5a
lea r8, str.ServeConnection:Waiting_for_next_connection__PipeState::kWriting__n
jmp 0x14000ee5a
lea r8, str.ServeConnection:Waiting_for_next_connection__PipeState::kReading__n
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.1400096e0
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffff
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp dword [rbx + 0xc], esi
je 0x14000ee8d
mov edx, eax
mov rcx, rbx
call fcn.14000dbc0
mov ecx, dword [rbx + 0x10]
test ecx, ecx
je 0x14000eecd
cmp ecx, 1
jne 0x14000ee30
mov rcx, rbx
call fcn.14000e940
test al, al
je 0x14000eeb0
cmp dword [rbx + 0x60], esi
je 0x14000ee30
mov qword [rbx + 0xc], rsi
jmp 0x14000ee30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000ee30
mov dword [rbx + 0xc], 1
jmp 0x14000ee30
mov rdx, qword [rbx + 0x28]
lea rax, [rbx + 0x38]
mov rcx, qword [rbx + 0x58]
lea r9, [rbx + 8]
mov r8d, 0x100000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ef0a
cmp dword [rbx + 8], esi
jbe 0x14000ee30
mov dword [rbx + 0xc], esi
mov dword [rbx + 0x10], 1
jmp 0x14000ee30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000ef23
mov dword [rbx + 0xc], 1
jmp 0x14000ee30
cmp eax, 0x6d
jne 0x14000f02a
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.ServeConnection:Pipe_is_broken._Will_atempt_to_create_a_new_one._n
mov qword [rbx + 0x58], 0xffffffffffffffff
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.1400096e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x34], esi
cmp rax, 0xffffffffffffffff
je 0x14000efab
lea rcx, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rcx + r8], sil
jne 0x14000ef80
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000efab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + 8]
test al, al
jne 0x14000ee30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], esi
cmp rax, 0xffffffffffffffff
je 0x14000f005
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov r8d, 0x25
lea rdx, str.Could_not_resuscitate_pipe._Bailing._n
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000f005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14019ce50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov r9d, eax
lea r8, str.ServeConnection:Error__d_on_read_attempt_n
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.1400096e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], esi
cmp rax, 0xffffffffffffffff
je 0x14000ee30
lea rcx, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], sil
jne 0x14000f070
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000ee30
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000ee30