Function at 0x1800492d0
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 - 0x8d8]
sub rsp, 0x9c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rbp + 0x8b8], rax
mov rdi, rcx
mov qword [rbp + 0x8a8], 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 0x1800497a9
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.180012ec0
mov rbx, rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x48], rax
lea r14, [fcn.180038600]
mov qword [rsp + 0x50], r14
lea r15, [0x180032640]
mov qword [rsp + 0x58], r15
cmp byte [rbx + 0x44], sil
je 0x1800493a4
mov rcx, rbx
call fcn.180025730
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000bd70
mov eax, dword [rbx + 0x3c]
inc eax
mov dword [rbx + 0x3c], eax
cmp qword [rbx + 0x30], 0
je 0x180049404
mov r10d, dword [rbx + 0x40]
cmp eax, r10d
jge 0x180049404
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 0x180049404
lea eax, [r9 + 1]
mov dword [rbx + 0x3c], eax
cmp eax, r10d
jl 0x1800493d0
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 0x180049428
mov rcx, rbx
call fcn.180025730
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000bd70
mov eax, dword [rbx + 0x3c]
inc eax
mov dword [rbx + 0x3c], eax
cmp qword [rbx + 0x30], 0
je 0x180049484
mov r10d, dword [rbx + 0x40]
cmp eax, r10d
jge 0x180049484
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 0x180049484
lea eax, [r9 + 1]
mov dword [rbx + 0x3c], eax
cmp eax, r10d
jl 0x180049450
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.180011920
nop
cmp byte [rbp + 0x60], 0
je 0x1800494c1
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x1800494bd
mov rax, qword [rcx]
call qword [rax + select]
test rax, rax
je 0x1800494bd
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.180026a30
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 0x180049519
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18004950c
mov rax, qword [rcx]
call qword [rax + select]
test rax, rax
je 0x18004950c
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov edx, SafeArrayGetLBound
mov rcx, rbx
call fcn.18004b24c
mov rax, qword [rbp - 0x30]
cmp rax, 0x10
jb 0x18004956f
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x18004956a
test cl, 0x1f
je 0x18004953d
call fcn.18005c7f4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18004954c
call fcn.18005c7f4
int3
sub rcx, rax
cmp rcx, 8
jae 0x18004955b
call fcn.18005c7f4
int3
cmp rcx, 0x27
jbe 0x180049567
call fcn.18005c7f4
int3
mov rcx, rax
call fcn.18004b054
mov qword [rbp - 0x30], SafeArrayGetLBound
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180049602
mov rax, qword [rbp - 0x68]
sub rax, rcx
sar rax, 2
movabs rdx, 0x3fffffffffffffff
cmp rax, rdx
jbe 0x1800495a8
call fcn.18005c7f4
int3
lea rax, [rax*4]
cmp rax, 0x1000
jb 0x1800495f1
test byte [rbp - 0x78], 0x1f
je 0x1800495c4
call fcn.18005c7f4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800495d3
call fcn.18005c7f4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800495e2
call fcn.18005c7f4
int3
cmp rcx, 0x27
jbe 0x1800495ee
call fcn.18005c7f4
int3
mov rcx, rax
call fcn.18004b054
mov qword [rbp - 0x78], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1800496b4
movzx r9d, byte [rsp + 0x40]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
call fcn.18000a5c0
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 0x180049661
call fcn.18005c7f4
int3
lea rax, [rdx + rdx*8]
shl rax, 4
cmp rax, 0x1000
jb 0x1800496ab
test byte [rsp + 0x70], 0x1f
je 0x18004967e
call fcn.18005c7f4
int3
mov rax, qword [r8 - 8]
cmp rax, r8
jb 0x18004968d
call fcn.18005c7f4
int3
sub r8, rax
cmp r8, 8
jae 0x18004969c
call fcn.18005c7f4
int3
cmp r8, 0x27
jbe 0x1800496a8
call fcn.18005c7f4
int3
mov r8, rax
mov rcx, r8
call fcn.18004b054
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, [0x1800c5920]
call fcn.180050fe0
mov dword [0x1800c5920], 0x114
lea rcx, [0x1800c5920]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [0x1800c5bdb], 0
jne 0x180049742
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x18003a2f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800c5bd0], rax
test rax, rax
jne 0x18004973b
lea rcx, str.CreateThread_ThreadPipeServer_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1800c5bdb], 1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbp + 0xa0]
cmp rax, 0x10
jb 0x1800497a9
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0x1000
jb 0x1800497a4
test cl, 0x1f
je 0x180049777
call fcn.18005c7f4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180049786
call fcn.18005c7f4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180049795
call fcn.18005c7f4
int3
cmp rcx, 0x27
jbe 0x1800497a1
call fcn.18005c7f4
int3
mov rcx, rax
call fcn.18004b054
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 0x1800497fe
lea rcx, str.CreateFileA_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1800498c9
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xa8]
call fcn.180050fe0
lea r8, str.cur_url
mov edx, 0x400
lea rcx, [rbp + 0xa8]
call fcn.18005abac
mov rcx, rdi
call fcn.18003c9f0
mov r8, rax
mov edx, 0x400
lea rcx, [rbp + 0x4a8]
call fcn.18005abac
mov dword [rbp + 0x80], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x80]
mov r8d, 0x800
lea rdx, [rbp + 0xa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18004987b
lea rcx, str.write_pipe_failed_n
jmp 0x1800498b9
mov dword [rbp + 0x80], esi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x8a8], xmm0
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x80]
mov r8d, SafeArrayGetLBound
lea rdx, [rbp + 0x8a8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800498bf
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.180002860
mov rcx, qword [rbp + 0x8b8]
xor rcx, rsp
call fcn.18004b0f0
lea r11, [rsp + 0x9c0]
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