Function at 0x1800561a0
Capabilities:
Create thread
Print debug messages
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x8e8]
sub rsp, 0x9d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rbp + 0x8c0], rax
mov rdi, rcx
mov qword [rbp + 0x8b0], rcx
xor edx, edx
mov rcx, qword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
setne al
xor esi, esi
test al, al
jne 0x180056679
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
mov dword [rbp + 0x80], eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
sub r8d, ecx
mov dword [rbp + 0x84], r8d
lea rdx, str.dwCurPid:__d__dwSleeptime:__d
lea rcx, [rsp + 0x70]
call fcn.180012550
mov rbx, rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x48], rax
lea r14, [fcn.180046ce0]
mov qword [rsp + 0x50], r14
lea r15, [0x180031ce0]
mov qword [rsp + 0x58], r15
cmp byte [rbx + 0x44], sil
je 0x180056274
mov rcx, rbx
call fcn.180024c60
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000b4a0
mov eax, dword [rbx + 0x3c]
inc eax
mov dword [rbx + 0x3c], eax
cmp qword [rbx + 0x30], 0
je 0x1800562d4
mov r10d, dword [rbx + 0x40]
cmp eax, r10d
jge 0x1800562d4
nop dword [rax]
movsxd r9, dword [rbx + 0x3c]
mov r8, r9
mov rcx, qword [rbx + 0x18]
mov rax, r9
shr rax, 5
lea rdx, [rcx + rax*4]
and r8d, 0x1f
mov ecx, r8d
mov eax, 1
shl eax, cl
test dword [rdx], eax
je 0x1800562d4
lea eax, [r9 + 1]
mov dword [rbx + 0x3c], eax
cmp eax, r10d
jl 0x1800562a0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
cmp byte [rbx + 0x44], 0
je 0x1800562f8
mov rcx, rbx
call fcn.180024c60
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000b4a0
mov eax, dword [rbx + 0x3c]
inc eax
mov dword [rbx + 0x3c], eax
cmp qword [rbx + 0x30], 0
je 0x180056354
mov r10d, dword [rbx + 0x40]
cmp eax, r10d
jge 0x180056354
nop dword [rax]
movsxd r9, dword [rbx + 0x3c]
mov r8, r9
mov rcx, qword [rbx + 0x18]
mov rax, r9
shr rax, 5
lea rdx, [rcx + rax*4]
and r8d, 0x1f
mov ecx, r8d
mov eax, 1
shl eax, cl
test dword [rdx], eax
je 0x180056354
lea eax, [r9 + 1]
mov dword [rbx + 0x3c], eax
cmp eax, r10d
jl 0x180056320
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.180010fb0
nop
cmp byte [rbp + 0x60], 0
je 0x180056391
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x18005638d
mov rax, qword [rcx]
call qword [rax + select]
test rax, rax
je 0x18005638d
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov byte [rbp + 0x60], 0
lea rax, vtable.boost::io::basic_altstringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.180025bc0
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x20], rax
mov rbx, qword [rbp + 0x40]
test rbx, rbx
je 0x1800563e9
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800563dc
mov rax, qword [rcx]
call qword [rax + select]
test rax, rax
je 0x1800563dc
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov edx, SafeArrayGetLBound
mov rcx, rbx
call fcn.180059820
mov rax, qword [rbp - 0x30]
cmp rax, 0x10
jb 0x18005643f
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x18005643a
test cl, 0x1f
je 0x18005640d
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18005641c
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x18005642b
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x180056437
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov qword [rbp - 0x30], SafeArrayGetLBound
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800564d2
mov rax, qword [rbp - 0x68]
sub rax, rcx
sar rax, 2
movabs rdx, 0x3fffffffffffffff
cmp rax, rdx
jbe 0x180056478
call fcn.1800837e4
int3
lea rax, [rax*4]
cmp rax, 0x1000
jb 0x1800564c1
test byte [rbp - 0x78], 0x1f
je 0x180056494
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800564a3
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800564b2
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x1800564be
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov qword [rbp - 0x78], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180056584
movzx r9d, byte [rsp + 0x40]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
call fcn.18000a380
mov rcx, qword [rbp - 0x80]
mov r8, qword [rsp + 0x70]
sub rcx, r8
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movabs rax, 0x1c71c71c71c71c7
cmp rdx, rax
jbe 0x180056531
call fcn.1800837e4
int3
lea rax, [rdx + rdx*8]
shl rax, 4
cmp rax, 0x1000
jb 0x18005657b
test byte [rsp + 0x70], 0x1f
je 0x18005654e
call fcn.1800837e4
int3
mov rax, qword [r8 - 8]
cmp rax, r8
jb 0x18005655d
call fcn.1800837e4
int3
sub r8, rax
cmp r8, 8
jae 0x18005656c
call fcn.1800837e4
int3
cmp r8, 0x27
jbe 0x180056578
call fcn.1800837e4
int3
mov r8, rax
mov rcx, r8
call fcn.1800591c4
nop
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0x10
cmovae rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
mov r8d, VarUI4FromDisp
lea rcx, [0x1800ff9f0]
call fcn.180078610
mov dword [0x1800ff9f0], 0x114
lea rcx, [0x1800ff9f0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [0x1800ffcab], 0
jne 0x180056612
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x180040c20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800ffca0], rax
test rax, rax
jne 0x18005660b
lea rcx, str.CreateThread_ThreadPipeServer_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1800ffcab], 1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbp + 0xa0]
cmp rax, 0x10
jb 0x180056679
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0x1000
jb 0x180056674
test cl, 0x1f
je 0x180056647
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180056656
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180056665
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x180056671
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
lea rcx, str.save_cur_url:_pipe
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800566ce
lea rcx, str.CreateFileA_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18005678b
xor edx, edx
mov r8d, 0x804
lea rcx, [rbp + 0xac]
call fcn.180078610
mov dword [rbp + 0xa8], 3
mov rcx, rdi
call fcn.180022ae0
mov r8, rax
mov edx, 0x400
lea rcx, [rbp + 0xac]
call fcn.180081fd4
mov dword [rbp + 0x80], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x80]
mov r8d, 0x808
lea rdx, [rbp + 0xa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18005673d
lea rcx, str.write_pipe_failed_n
jmp 0x18005677b
mov dword [rbp + 0x80], esi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x8b0], xmm0
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x80]
mov r8d, SafeArrayGetLBound
lea rdx, [rbp + 0x8b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180056781
lea rcx, str.read_pipe_failed_to_wait_check_end_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.180002870
mov rcx, qword [rbp + 0x8c0]
xor rcx, rsp
call fcn.180059260
lea r11, [rsp + 0x9d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret