def METHOD_NAME(cpu, tb, h):
    global recovered_buf, program_name
    if program_name not in panda.get_process_name(cpu):
        h.enabled = False
        return
    ptr, size, count, fptr = [panda.arch.get_arg(cpu,i) for i in range(4)]
    try:
        total_size = size*count
        buf = panda.virtual_memory_read(cpu, ptr, total_size)
        print(f"hook_fwrite {buf[:100]}")
        recovered_buf += buf
    except:
        print("couldn't read fwrite")